Author Topic: [SOLVED] Modding a Mod... Client Compatibility Issues  (Read 10691 times)

aaron5367

  • Posts: 16
  • Turrets: +0/-0
[SOLVED] Modding a Mod... Client Compatibility Issues
« 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.
« Last Edit: July 02, 2008, 06:47:59 pm by Lava Croft »

daenyth

  • Posts: 230
  • Turrets: +21/-26
Re: Modding a Mod... Client Compatibility Issues
« Reply #1 on: June 21, 2008, 02:03:12 am »
Well signal 11 is segmentation fault -- your code has some sort of crash-worthy error
Quote from: Bullislander05
It's like trying to take apple seeds out of a zebra to plant a giraffe tree.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Modding a Mod... Client Compatibility Issues
« Reply #2 on: June 21, 2008, 02:09:32 am »
the game.qvm and cgame.qvm should be compiled from the same source tree.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

aaron5367

  • Posts: 16
  • Turrets: +0/-0
Re: Modding a Mod... Client Compatibility Issues
« Reply #3 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...

aaron5367

  • Posts: 16
  • Turrets: +0/-0
Re: Modding a Mod... Client Compatibility Issues
« Reply #4 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.

daenyth

  • Posts: 230
  • Turrets: +21/-26
Re: Modding a Mod... Client Compatibility Issues
« Reply #5 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
Quote from: Bullislander05
It's like trying to take apple seeds out of a zebra to plant a giraffe tree.

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Modding a Mod... Client Compatibility Issues
« Reply #6 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?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Modding a Mod... Client Compatibility Issues
« Reply #7 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.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Modding a Mod... Client Compatibility Issues
« Reply #8 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.

aaron5367

  • Posts: 16
  • Turrets: +0/-0
Re: Modding a Mod... Client Compatibility Issues
« Reply #9 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.

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Modding a Mod... Client Compatibility Issues
« Reply #10 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"

Bomb

  • Guest
Re: Modding a Mod... Client Compatibility Issues
« Reply #11 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. ;)

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Modding a Mod... Client Compatibility Issues
« Reply #12 on: June 26, 2008, 04:41:46 pm »
His example command line did NOT have the ".x86"...

Bomb

  • Guest
Re: Modding a Mod... Client Compatibility Issues
« Reply #13 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.
« Last Edit: June 26, 2008, 09:55:19 pm by Bomb »

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Modding a Mod... Client Compatibility Issues
« Reply #14 on: June 26, 2008, 11:51:19 pm »
At least on my box it is tremded.x86

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Modding a Mod... Client Compatibility Issues
« Reply #15 on: June 26, 2008, 11:54:13 pm »
@Aaron

Please post the changes you made to g_main.c

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Modding a Mod... Client Compatibility Issues
« Reply #16 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.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Bomb

  • Guest
Re: Modding a Mod... Client Compatibility Issues
« Reply #17 on: June 27, 2008, 03:43:20 am »
Ohhh k. Thanks for clearing that up.

aaron5367

  • Posts: 16
  • Turrets: +0/-0
Re: Modding a Mod... Client Compatibility Issues
« Reply #18 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
« Last Edit: July 04, 2008, 11:19:54 pm by aaron5367 »