Map Rotation

BWAdmin Version 5.0

Introduction:

The BWAdmin Map Rotation will randomly select and run maps based on the preferences you define in the server settings. The server admin rates maps on their popularity and the code then selects maps according to a definable ratio and sequence.

With BWAdmin Map Rotation enabled, there are no more repetitive map cycles where for example, everyone votes for Dangerous Crossing, which is followed by a map everyone hates, which gets voted off in favour of ... you've guessed it..Dangerous Crossing. Variety of game missions and also game types is generally the order of the day, although this can also work on servers which only run one type of mission.

 

Setting up Map Ratings

The Map Rotation code is enabled with the $bwadmin::MRenabled = "true"; setting and if you do this you will need to set up some favourites, or be at the mercy of the TPG of Australia who have made some rather excellent default choices for you.

Here is an example of a map rating:

bwadmin::MRsetRating ("DangerousCrossing",  "verypopular");

To change the rating of a map, just change the field after the maps name. To enter a new map, simply copy insert a new call to bwadmin::MRsetRating ("newMap", "rating");

Possible ratings are:

verypopular
popular
average
unpopular
neverplay

Any map that isn't given a rating is automatically assigned "average".

 

Setting up the Rotation String

$bwadmin::MRratioString allows you to choose what map rating will be played when $bwadmin::MRratioString="1 1 2 4"; This will play two verypopular maps, then one popular map, then one unpopular map. It will then start again.

The default setup is:

verypopular= 9 or 50%
popular= 3 or 25%
average= 2 or 16%
unpopular= 1 or 9%

Obviously you can change them to whatever you please:

$bwadmin::MRratioString="1 1 2 1 1 3 1 1 3 1 2 4 1 1 2";

 

Mission-specific Servers

If you wish to make a CTF only server you can specify your favourite CTF maps in the 'verypopular' category, your not so favourite ones into the 'popular' category and restrict the server. You can to play only 'verypopular' and 'popular' maps by editing $bwadmin::MRratioString to be something like:

$bwadmin::MRratioString="1 1 2 1 2"; 

Your favourites are now played more often than the not so favourite maps!

 

Limiting the Mission List

We have included the ability to "limit" the mission list displayed to players on public servers. By setting

$bwadmin::FullPublicMapList = "false";

General players and admins will only be able to vote or change to maps that are in the mission list. ie. If Broadside has a rating of "neverplay", then no-one can vote for it.

The exception to this rule is players with AdminReferee or AdminServerSetting access who, of course, can use the complete mission list.