xp_rotatestep / random map rotation

No replies
Lir
lir's picture
Offline
Joined: Jul 2011
Posts:

Hey

I'm having trouble with the xp_rotatestep command for random map rotation on my serv.
I added it to crontab.txt
* * * * * /execstr set xp_rotateStep $(sv_serverid)

The issue : server seems indeed rotating on random new id ( the number changes on new map loading), thought it always restarts rotation back to first map, and for a random number of time.
But sometimes it randomly goes on another map, then next rotate call goes back to frst rotation map.

Example :
Assuming q3dm1 is top map in rotation list :
server will load 7x q3dm1 (or whatever random number, could be 3 or 10, it changes everytime), and 1x a random map whatever it is;
Then it goes back on q3dm1 , selfrotating xx amount of times before it goes on a different map once, then back q3dm1 xxxx times and etc etc

_ server uses a conditional rotation system such as
if ( xp_activeClients >= xx ) {
} else if ( xp_activeClients >= xx ) {} else {

It seems adding "* * * * * /execstr set xp_rotateStep $(sv_serverid) " stuff to crontab makes rotation/cfgs to crash and restart.
Does it actually work with a conditonal rotation system type ?
Or only with monoblock naked map listing?

So I guess I might have done something wrong; meanwhile I deactivated it and looking for a way to fix or another random rotation system.

Thanks for you help.

Ill post a log later on , did that early this morning i gtg now.

BLEH