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:- UDP 16567 = BF2 game port
- UPD/TCP 29900 = gamespy port
- UDP 55123 = voip BF?
- UDP 55124 = voip BF server port
- UDP 55125 = voip server port
Call of Duty 2 installation
Install the Call of Duty server. Adjust the following TCP and UDP ports to port-forward on your router:- UDP 28960 = CoD2 game port
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 = 4711You may change the password for security reasons.
password = password
ip = 0.0.0.0
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.- Use the included web server 'webserver.py' python script.
You need to download and install Python. There are some additional Linux installation steps:
- chmod +x *.py to give cgi scripts execute rights
- change endline indicator to linux instead windows/dos
- 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 pythonUse one of the import and page assign lines to select your game server type.
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 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:- user 'admin', password 'admin'
- map.control: You can restart current map, start next map or select the next map.
- map.edit: You can add, delete or move maps.
- player.control: You can kick, ban and unban players.
- settings.control: You can change game server settings.
- sayall.control: You can sent a text message to all players.
- user 'member', password 'member'
- map.control: You can restart current map, start next map or select the next map.
- sayall.control: You can sent a text message to all players.
- user 'guest', default account with no password and no access rights. DO NOT CHANGE!
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
- Modify the corresponding "XXX_serverSettings.con" file to your needs
- Modify the corresponding "XXX_mapList.con" file to your needs
- Verify the "bfserver.py" file for correct selected settings and .con files
- Startup the server by executing the "bfserver.py" script
Start Call of Dute 2 game server
Start Farcry game server
- execute the following command in the server terminal:
SProfile_run Profiles/server/benaldi_server.cfg
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:- Battlefield 2: http://localhost/cgi-bin/bf2.py
- Battlefield 2 Special Forces: http://localhost/cgi-bin/bf2sf.py
- Battlefield 2142: http://localhost/cgi-bin/bf2142.py
- Call of Duty 2: http://localhost/cgi-bin/cod2.py
- Farcry: http://localhost/cgi-bin/farcry.py
- your own server: http://localhost/cgi-bin/server.py