How to change numhumansforrecord on my server???
Ok. I want to allow records for flag returns in a Hunters server with only 2 people playing (due to lack of people). I opened the Huntersgame.cs from the vl2 file to see how it's done in the game itself. The line is
%Game.numhumansforrecord = 4;
I wanted to put that line in my serverprefs.cs and change it to 2, but everytime I do. It deletes itself! so I tried to change it to match the serverprefs.cs type
$Host::numhumansforrecord = 2;
this time it stayed, but it didn't work..
well, not this specifically.. I figured it would be easier to change the %game.score_per_kill = 1; (easier for me to log in and see if the change took). I changed it to 3 and nothing happened ($Host::score_per_kill = 3;)
How can I change variables and settings like this on my server w/o having to MOD the whole game?
%Game.numhumansforrecord = 4;
I wanted to put that line in my serverprefs.cs and change it to 2, but everytime I do. It deletes itself! so I tried to change it to match the serverprefs.cs type
$Host::numhumansforrecord = 2;
this time it stayed, but it didn't work..
well, not this specifically.. I figured it would be easier to change the %game.score_per_kill = 1; (easier for me to log in and see if the change took). I changed it to 3 and nothing happened ($Host::score_per_kill = 3;)
How can I change variables and settings like this on my server w/o having to MOD the whole game?
Comments
But if the server restarts, they will revert to norm.
Where do I put these commands to make them always run? They get auto-deleted when I try to put them in the Serverprefs.cs file. I just need to know where they go.. HELP!
Have you opened the game type cs file to make changes directly rather than in serverprefs?
Going to try this.. thanks .
Simply changing some code for how the server handles something doesn't mean the players have to download it.
http://spinfusor.ch/tribes2/programs/Tribal IDE/
Secondly, a scripting tut is a good idea.
http://web.archive.org/web/20040519093400/http://scripts.tribes-universe.com/halide/tutorial.html#ch2