Set map-specific bot_minplayers in map rotation file
11. October 2014 - 19:04
Hey guys,
as the title says, I'd like to create a map rotation that sets the bot_minplayers value for each map accordingly (depending on the mapsize).
so, for example I'd like to have something like this:
$timelimit = 20;$fraglimit = 15;$g_gametype = GT_FFA;$xp_config = "default"; bot_minplayers: 2 //this here corresponds to the line 24 from the error message (see below) q3dm9{ $timelimit = 20; $fraglimit = 25; bot_minplayers: 5} q3tourney3{ $g_gametype = GT_TOURNAMENT; //here the bot_minplayers value should default to 2, but I wouldnt mind writing it in manually.}
Now when starting the server I get this:
^1ERROR^7: Syntax error, expected <Statement> in rotation.txt on line 24 column 15 Near: : 2 q3dm9{ $timelimit = 20; $fra
Now I have tried only placing the "bot_minplayers: x" in the map-specific blocks, if tried terminating the statements with a semicolon (from the documentation it was not clear whether that was necessary), but the error stays the same (or moves to the appropriate lines).
Can anyone help me with this?
(for unknown reasons the rotation tags fouls up my formating. Wasn't able to fix it. I hope you guys can still read it.)
-Daniel
11. October 2014 - 19:55
#1
Re: Set map-specific bot_minplayers in map rotation file
Instead of
bot_minplayers: 2
write this maybe:
$bot_minplayers = 2;
__________
epsislowest
11. October 2014 - 22:43
#3
Re: Set map-specific bot_minplayers in map rotation file
Yes you are right, and this is how it was in an older version. The current updated version is incomplete in this regard. But the examples quoted are accurate.
Someone will correct the text, thanks for pointing this out.
____________
epsislow
That did it.The documentation said I had to add cvars (like bot_minplayers) with colons... confused me.
Thanks for the help.