Tremulous Forum

Mods => Modding Center => Topic started by: aaron5367 on June 21, 2008, 12:49:35 am

Title: [SOLVED] Modding a Mod... Client Compatibility Issues
Post 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.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: daenyth on June 21, 2008, 02:03:12 am
Well signal 11 is segmentation fault -- your code has some sort of crash-worthy error
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: kevlarman on June 21, 2008, 02:09:32 am
the game.qvm and cgame.qvm should be compiled from the same source tree.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: aaron5367 on June 21, 2008, 02:39:29 am
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...
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: aaron5367 on June 24, 2008, 10:53:36 pm
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.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: daenyth on June 25, 2008, 12:59:18 am
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
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: Bissig on June 25, 2008, 02:55:27 am
Why did you set this "+set vm_game 0" option?

Also, do you have autodownload enabled in your client?
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: kevlarman on June 25, 2008, 03:15:37 am
./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.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: doomagent13 on June 25, 2008, 03:58:55 pm
./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.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: aaron5367 on June 25, 2008, 06:15:22 pm
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.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: doomagent13 on June 26, 2008, 03:29:22 am
Have you tried my suggestion?  To put it more plainly, try "./tremded +set fs_game korx +set dedicated 2 +exec server.cfg"
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: Bomb on June 26, 2008, 12:25:36 pm
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. ;)
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: doomagent13 on June 26, 2008, 04:41:46 pm
His example command line did NOT have the ".x86"...
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: Bomb on June 26, 2008, 09:53:20 pm
Well it should, shouldn't it? Pardon the ignorance, I don't use Linux all that often.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: Bissig on June 26, 2008, 11:51:19 pm
At least on my box it is tremded.x86
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: Bissig on June 26, 2008, 11:54:13 pm
@Aaron

Please post the changes you made to g_main.c
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: David on June 26, 2008, 11:55:33 pm
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.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: Bomb on June 27, 2008, 03:43:20 am
Ohhh k. Thanks for clearing that up.
Title: Re: Modding a Mod... Client Compatibility Issues
Post by: aaron5367 on June 30, 2008, 07:28:19 am
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