Scripts:MM MapAutoSizer
From BF2 Technical Information Wiki
Revision as of 20:05, 16 January 2006 by TheRealFritz (Talk | contribs)
Contents |
Introduction
After trying out Scripts:AutoMap and finding that it didn't do exactly what I wanted (and didn't seem to work with BF2 1.12), I decided to write a plugin for the popular ModManager package that comes with BF2CC. The idea is based on Scripts:AutoMap, but there are some important differences:
- no randomizer
- the map rotation is read directly out of the BF2 server and not from maplist.con. This allows you to use this script even when you're changing your map rotation on the fly, without messing things up. It also allows map voting to work properly.
- map size thresholds are configurable through the modmanager configuration file
Downloading
You can always find the most current version at the GloryHoundz Code Repository. As of this writing, the latest version is 1.0 to be found here: mm_mapautosizer.py.
Prerequisites
ModManager or BF2CC
Install
- copy the file to admin/modules in your Battlefield 2 server install.
- change your modmanager.con and include the following line:
modmanager.loadModule "mm_mapautosizer"
- The default threshold for 32-size maps is 16 players and for 64-size maps it's 32 players. You can set your own thresholds by adding two configuration lines to modmanager.con:
mm_mapautosizer.threshold_64 40 mm_mapautosizer.threshold_32 20
Bugs/Comments
If you encounter any problems, stop by the GloryHoundz Forums and post about it.
Changelog
v1.0 - 1/15/2006: Initial public release: fixed map voting support
v0.9 - 1/08/2006: Internal GloryHoundz.com release