Tremulous Forum

Mods => Modding Center => Topic started by: NewCreation on February 22, 2012, 05:06:50 pm

Title: Force client to use correct cgame QVM...
Post by: NewCreation on February 22, 2012, 05:06:50 pm
Never mind, solved. Thanks.
Title: Re: Force client to use correct cgame QVM...
Post by: /dev/humancontroller on February 22, 2012, 06:25:34 pm
Just working on a server here, Trem 1.2. Compiled QVM all nicely, looking good, but anyone who has the vms zip from the "Sir" clan server and connects can't do some things because the client loads the cgame.qvm from the other .pk3 instead of from the .pk3 used by my server.
in case the server is in pure mode, a client will load the cgame.qvm file from the pk3 found on the server, period; otherwise, the client is kicked for loading the cgame module from the wrong pk3 file. btw, the server doesn't use the cgame.qvm file.
I'm looking into it on searches and stuff and haven't found much. How do I force the client game to use the correct cgame.qvm?
putting the pk3 file in the non-base fs_game directory will force clients (that have downloading enabled) to download the pk3 file, whether it contain data or QVMs files. the server forces clients to use the cgame.qvm from the first pk3 in which the cgame.qvm is found (also, the server forces the download of that pk3 file). the server first searches pk3 files in the fs_game directory, and then in the base directory. inside a directory, if more than one pk3 file contains vm/cgame.qvm, then the alphabetically-latest pk3 file takes precedence.

EDIT: for the purposes of archiving problems and solutions, do not delete the question, you n00b.