[Solved] Load rotation based on g_gametype?
Please read the "Conditional rotation gotcha" from the documentation. It explains an issue with the rotation of the maps and what to do to avoid it.
The conclusion: You should have the same number of maps in all conditions. Add an else condition for being sure that the number of maps never change in the other situations.
_____________
epsislow
I thought you use custom maps also, anyway Epsi resolved issue I think ;]
did you put cvar: set xp_rotation "yourfile.txt" in your server cfg ?
And let the last command in your server.cfg be a map
Like :
seta xp_rotation "rotation_yourname.txt" // new rotation file with conditinal maps
// --------------------------------------------------------------------------
// Call to map is absolutly needed to get rotation on the road! Don't delete!
// --------------------------------------------------------------------------
map q3dm4 // or any map you want for starters
Great to hear it's working now.
Thanks for telling the solution.
Documentation is now updated thanks.
____________
epsislow
do as I say and not suffer, just/rcon xp_vote callvote.txt
Oh, I intend to use custom maps as soon as I get the rotation working.
I will be using maps from QL, Threewave CTF, some LvL packs and some others.
So just adding the same number of maps to the rotation should fix it?
I guess repeating some maps should be ok as long as there is the same number of lines in each rotation?
I will check when I get home from work and report back.
EDIT: I went over the code again and they all have the same number o maps already, but there is no "else" statement in the code only "else if". I believe this edited code might work, but I can not try it out until tonight when I get home.
EDIT 2: Nope, still will not rotate. Started my server remotely and it is still only loading the big box and ignores the maps specified in rotation.