Tremulous Forum
Mods => Modding Center => Topic started by: aaron5367 on June 21, 2008, 12:49:35 am
-
I've starting modding Tremx, to iron out some bugs, and in an attempt to balance. Most of what I've done, I've either pulled out of my-- rear end, or I've had to ask on a forum (mostly the former). korx.googlecode.com , while my QVM modifications work fine, I've been trying to modify the UI. From what I know, the pk3's are renamed zip files, and in them hold some client side information. I've tried updating them after compling our changes, but I keep getting errors like 'client/server mismatch, base/tremx/'.
I've modified one of the top lines of g_main.c (I think) to make it korx, and have a new folder. While I can get tremx to run normally, I cannot get korx to run, I just get the error above, or 'client/server mismatch base/korx'. I'm pretty sure I'm missing something, and I need help, as this problem has frustrated me for 3 days. I think it might have something to do with the tremded. After it compiles, I get an error, 'Caught signal 11' and it just shuts down, nothing else.
Any help, guides, or references would be so appreciated, thanks.
-
Well signal 11 is segmentation fault -- your code has some sort of crash-worthy error
-
the game.qvm and cgame.qvm should be compiled from the same source tree.
-
Both of them are, I don't know if I implied that they aren't. The compiler wouldn't show me if there was an error with the tremded? I'm using the original tremx-kor tremded, which is what my source is based off of. I also can't compile a new client for a similar reason...
-
Actually the file I modified was bg_local.h, I changed the GAMEVERSION from "tremx" to "korx" but I still get the same error, when attempting to connect to a server ran with this:
./tremded +set dedicated 2 +exec server.cfg +set vm_game 0 +set fs_basepath /usr/share/.tremulous/korx/ +set fs_game korx
I have the appropriate pk3s (see them here : http://www.aaron5367.com/repo/base/korx/ ) downloaded on the client, in the right folder, but I still get this error:
Client/Server game mismatch : base/korx
and in the server console:
Client 0 connecting with 0 challenge ping
ClientConnect: 0 [192.168.2.136] (1EA4AAC8D5ED2AA943FE7553AA086C66) "^0|KoR|N|^!Aaron^55^33^66^77"
broadcast: print "^0|KoR|N|^!Aaron^55^33^66^77^7 connected\n"
Sending heartbeat to master.tremulous.net
broadcast: print "^0|KoR|N|^!Aaron^55^33^66^77^7 disconnected\n"
ClientDisconnect: 0 [192.168.2.136] (1EA4AAC8D5ED2AA943FE7553AA086C66) "^0|KoR|N|^!Aaron^55^33^66^77"
Sending heartbeat to master.tremulous.net
I know I'm doubleposting, by the way, but I really am frustrated with this constant error. I've fgreped my entire source tree, and I can't find what would make it look in the wrong place on either the client or server.
-
Both of them are, I don't know if I implied that they aren't. The compiler wouldn't show me if there was an error with the tremded? I'm using the original tremx-kor tremded, which is what my source is based off of. I also can't compile a new client for a similar reason...
Client/Server game mismatch : base/korx
Hmm
-
Why did you set this "+set vm_game 0" option?
Also, do you have autodownload enabled in your client?
-
./tremded +set dedicated 2 +exec server.cfg +set vm_game 0 +set fs_basepath /usr/share/.tremulous/korx/ +set fs_game korx
that SHOULD NOT be there.
-
./tremded +set dedicated 2 +exec server.cfg +set vm_game 0 +set fs_basepath /usr/share/.tremulous/korx/ +set fs_game korx
that SHOULD NOT be there.
YoU sToLeS mAh WoRdS!!!
But yeah, unless that is NOT the default search path for tremulous, that is completely unnecessary. Also, try having "+exec server.cfg" be the LAST thing in the command.
-
Why did you set this "+set vm_game 0" option?
Also, do you have autodownload enabled in your client?
Wow, thanks for the help.
Yes I do, I've downloaded the correct files from the server multiple times.
I've removed the +set vm_game 0 to no avail. I also removed the path, as you two said.
-
Have you tried my suggestion? To put it more plainly, try "./tremded +set fs_game korx +set dedicated 2 +exec server.cfg"
-
Have you tried my suggestion? To put it more plainly, try "./tremded.x86 +set fs_game korx +set dedicated 2 +exec server.cfg"
Just clarifying it for him. ;)
-
His example command line did NOT have the ".x86"...
-
Well it should, shouldn't it? Pardon the ignorance, I don't use Linux all that often.
-
At least on my box it is tremded.x86
-
@Aaron
Please post the changes you made to g_main.c
-
It depends.
Linux in general doesn't give a shit about about file names and extensions, so you can call it what ever you want.
The default installer and makefiles all have the .x86. If you install via apt then it doesn't.
-
Ohhh k. Thanks for clearing that up.
-
Sorry, I've been busy >_<. Okay, yes, my tremded is different from the default, so I have it renamed to tremded.
I'm going to say problem solved. As many of you know, Wireddd has a clan called KoR. I'm in that clan, and I've started helping him mod Tremx, into Tremx-KoR. So I don't need KoRx anymore. But thanks a ton, the help is appreciated greatly.
After much frustration, I was able to solve this problem by adding +set fs_game (mod here), ex:
./tremded.x86 +set dedicated 2 +set fs_game tremx-kor +exec server.cfg