[bfprog] Changing map before mapload on server restart

"Einar S. Idsø" esi at itk.ntnu.no
Sat Jul 16 12:03:30 PDT 2005


We are looking for a way to autorotate the maplist upon server-crashes.
Currently we have a Py-script which upon pregame writes the current and
next map numbers to a file. We then start the servers with a bash-script
which first looks for this file, picks out the numbers and shuffles the
maplist.con file into order so that the next-map before the server
crashed becomes the current map when the server restarts.

This solution works, but since it requires the use of bash it is not
very elegant. Is there an event we may be able to hook on to and change
the maplist from Py before the map starts loading upon server restart?
Any other interesting techniques we could try?

Cheers,
Einar


More information about the BFProg mailing list