Scripts:RconCfg

From BF2 Technical Information Wiki
Revision as of 15:27, 22 June 2018 by Pireax (talk | contribs) (Created page with "__TOC__ == 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 exampl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

  1. Place cfg.py in the BF2 Server Directory/admin/standard_admin/ directory.
  2. Add a line in the ___init___.py file in the same directory that says import cfg.
  3. Make a directory called cfg in the BF2 Server Directory/admin/ directory.
  4. Place your configs there, with the file-extension .cfg, containing one command per line.
  5. 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

Download link for the script


Updates

2005-08-03: First version posted