offtime.py

offtime.py is a Battlefield 2 server script that allows having seperate server settings for when there are or aren't enough people to start a game.

Download Link

offtime.py

How to Install

  1. Browse to admin/standard_admin in your server directory
  2. Edit __init__.py so it looks similar to the following. The import offtime and offtime.init() lines are what you need to add.
    import autobalance
    import tk_punish
    import offtime
    
    autobalance.init()
    tk_punish.init()
    offtime.init()
  3. Put the script in the admin/standard_admin folder.
  4. Run your server. If offtime.py loaded comes up in your server console it should work from there.

Usage

To change the settings, edit the two dictionaries in the script. They look like this:

settingsNotStarted = {
	'sv.soldierFriendlyFire': '0',
	'sv.soldierSplashFriendlyFire': '0',
	'sv.vehicleFriendlyFire': '0',
	'sv.vehicleSplashFriendlyFire': '0',
	'sv.spawnTime': '0',
	'sv.manDownTime': '0',
}

settingsStarted = {
	'sv.soldierFriendlyFire': '25',
	'sv.soldierSplashFriendlyFire': '25',
	'sv.vehicleFriendlyFire': '25',
	'sv.vehicleSplashFriendlyFire': '25',
	'sv.spawnTime': '13',
	'sv.manDownTime': '13',
}

Both the setting names and values must be strings.