Scripts:RconCfg
Jump to navigation
Jump to search
Introduction
Here's a script that adds an rcon command called 'cfg'. It is intended for server admins that want to execute several commands at once. For example to easily change server settings for switching between public/match-settings. The script supports unlimited number of config-files.
Installation
- Place
cfg.py
in theBF2 Server Directory/admin/standard_admin/
directory. - Add a line in the
___init___.py
file in the same directory that saysimport cfg
. - Make a directory called
cfg
in theBF2 Server Directory/admin/
directory. - Place your configs there, with the file-extension
.cfg
, containing one command per line. - Restart server, login through rcon and type
rcon cfg <config name without .cfg>
For example: rcon cfg restart
(to execute BF2 Server Directory/admin/cfg/restart.cfg
.)
The Code
As you might see most of the script is copied from default.py
Updates
2005-08-03: First version posted