Randomize the map-list
Posted: Mon Jul 27, 2009 8:56 pm
We currently run GG5 with the built in mapvote. I've set the source to maplist.txt - so I can edit that list to whatever maps I want the server to run, instead of deleting maps from the folder, etc.
Now with that being set, the vote system automatically lists it in the order I've typed them in the maplist.txt file. So everytime the vote comes up, the same map will be on the first option and everyone will 1-spam and re-cycle the same maps over and over. I've found a small, less effective solution, by setting gg_dont_show last_maps to 12, but once the 12 maps are cycled through, they will reappear on the top of the list.
Another problem is when players don't wish to play on a certain map because it's been overplayed, they will select 2 on the votelist. Surely after the game is over on the next map, the same map that was on 1 will appear on 1 once again. Eventually enough 1-spammers will lead to server into the map that no one really wanted.
My question leads to; is there a way to randomize the map list when the vote comes up?
Now with that being set, the vote system automatically lists it in the order I've typed them in the maplist.txt file. So everytime the vote comes up, the same map will be on the first option and everyone will 1-spam and re-cycle the same maps over and over. I've found a small, less effective solution, by setting gg_dont_show last_maps to 12, but once the 12 maps are cycled through, they will reappear on the top of the list.
Another problem is when players don't wish to play on a certain map because it's been overplayed, they will select 2 on the votelist. Surely after the game is over on the next map, the same map that was on 1 will appear on 1 once again. Eventually enough 1-spammers will lead to server into the map that no one really wanted.
My question leads to; is there a way to randomize the map list when the vote comes up?