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?

Comments

  • This is SO annoying. If I type those commands into the dedicated server window they work!
    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!
  • Hi!
    Have you opened the game type cs file to make changes directly rather than in serverprefs?
  • You mean edit the Huntersgame.cs file inside the vl2 file and resave? Can I do that? Will it consider my game a MOD that people have to download to play?
    Going to try this.. thanks .
  • You only have to download a mod to play when said mod contains clientside changes (new HUDs, new textures, new interiors, ...)
    Simply changing some code for how the server handles something doesn't mean the players have to download it.
  • Thanks guys!! it worked!! now if I could only figure out scripting so I could display the current record holder for number of flags returned on the LOAD screen..... It pops up in chat window but it's so small and goes away too fast. I wanna give the record holders credit on the load screen under where the game type rules are but I don't know how to make it show up. I changed the rules by typing //Froggod's Hunters server under where the other rules are, but how would I make it display the record holders? they are kept in the Huntersrecords.cs file..
  • First off, I use tribal IDE for all my editing, you may find it usefull as well:
    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
  • THANK YOU FOR THOSE LINK!!!!!!!!!!!!! ;D ;D ;D ;D ;D ;D ;D ;D
Sign In or Register to comment.