Installation

Follow the following installation steps to setup RCWT.

Step 1. Install your game server

The following games are supported by RCWT:

Battlefield series installation

Install the dedicated Battlefield 2 server. Adjust the following TCP and UDP ports to port-forward on your router:
Install and/or activate firewall and block outgoing UDP gamespy port: 29910

Call of Duty 2 installation

Install the Call of Duty server. Adjust the following TCP and UDP ports to port-forward on your router:

Farcry installation

Install the Farcry server.

Step 2. Enable Remote Console access on your game server

The RCon access must be enabled to let RCWT access your game server.
Repeat step 1 and this step 2 for all your game servers.

Enable RCon access for the Battlefield series

Modify or create the 'default.cfg' file located in the 'admin' directory. Add the following lines:
port = 4711
password = password
ip = 0.0.0.0
You may change the password for security reasons.

Enable RCon access for Call of Duty 2

Place the following line into the 'server.cfg' configuration file.
set rcon_password "password"
You may change the password for security reasons.

Enable RCon access for Farcry

Place the following line into the 'server.cfg' configuration file.
sv_rcon_password= "password"
You may change the password for security reasons.

Step 3. Install the web server

There are two options for installing a web server with python cgi support.
  1. Use the included web server 'webserver.py' python script.
    You need to download and install Python. There are some additional Linux installation steps:
    1. chmod +x *.py to give cgi scripts execute rights
    2. change endline indicator to linux instead windows/dos
  2. Another option is using the very popular Apache web server with mod_python extension.
    Move the RCWT htdocs directory into the Apache www directory after the installation.

Step 4. Announce your game server to RCWT

The best and easiest way is creating your own 'server.py' file.
That way you do not get a conflict when updating to a newer RCWT version.
Create e.g. a 'server.py' text file in the 'htdocs/cgi-bin' directory, add the following lines:
#! /usr/bin/env python

from bf2 import *
#from bf2sf import *
#from bf2142 import *
#from cod2 import *
#from farcry import *

if __name__ == '__main__':
    page = BF2Page(BF2Client(host='localhost', port=4711, password='password'))
    #page = BF2SFPage(BF2SFClient(host='localhost', port=4711, password='password'))
    #page = BF2142Page(BF2142Client(host='localhost', port=4711, password='password'))
    #page = CoD2Page(CoD2Client(host='192.168.1.1', port=28960, password='password'))
    #page = FarcryPage(FarcryClient(host='192.168.1.1', port=49001, password='password',
    #    mapFile ='profiles\\server\\mapcycle.txt'))

    page.show()
    del page
Use one of the import and page assign lines to select your game server type.
Use the '#' sign for commenting out all other import and page assign lines.
In case you select the farcry server an additional mapFile parameter must be added.
Verify that the password is equal to your RCon server password!
Repeat this step using a different 'server.py' filename to add all your game servers.

Step 5. Modify the RCWT user accounts

RCWT has the following default users, each user has a set of access rights:
Skip this step if you find these settings convenient.
You can modify the 'auth.py' file in the 'htdocs/cgi-bin' directory to change or add users; passwords and access rights. See the example below:
# users set of roles
defaultUser = 'guest'
users = {
    defaultUser: {'password' : '',
        'roles' : {
            'map.control' : False,
            'map.edit' : False,
            'player.control' : False,
            'settings.control': False,
            'sayall.control' : False}},
'admin' : {'password' : 'admin',
        'roles' : {
            'map.control' : True,
            'map.edit' : True,
            'player.control' : True,
            'settings.control': True,
            'sayall.control' : True}},
'member' : {'password' : 'member',
        'roles' : {
            'map.control' : True,
            'map.edit' : False,
            'player.control' : False,
            'settings.control': False,
            'sayall.control' : True}}}

Step 6. Start your game server

This step difference for each type of game server.

Start battlefield series game server

Start Call of Dute 2 game server

Start Farcry game server

Step 7. Start the web server

Depending on which web server, start the included web server 'webserver.py' or start the Apache program.
Check the installation by trying out this http://localhost link.
Check your firewall settings if it does not work! HTTP port 80 must be set open.

Step 8. Open RCWT web page

Each game can be directly accessed using one of the following links:
Change localhost into the system hostname or IP when accessing RCWT from another system. It is possible to open multiple windows to one or more game servers simultaneous. Also more windows to one game server is possible.