Page 1 of 1

Script to set next map even after server crashes

Posted: 2015-04-26 15:42
by TOWtotheHEAD
I'm sure you all know how annoying it is when the server you're on crashes and if you rejoin then you're going to have to either play a default skirmish map or wait for an admin to load the map then change it and if that's already happened to some players once before just recently then the server stands a good chance of dying.

So, I was thinking it must be possible to edit the initial startup maps confing file with a script as the next map gets set. Maybe a script could set the next map and at the same time change the default maps / rotation config file just in case the server crashes?
mapList.configFile [new location for file] - Used to specify the location of the _mapList.con file. Default is \My Documents\Battlefield 2\ServerConfigs\
It could just set a different filename, so you would have muttrah.con, saarema.con, etc. One for each map, or the script could grab the mapname as a variable and just dump that to the top of the file. Then when the server crashes it will automatically load the map that was supposed to play next.