EnemyTerritory Gameserver
At the end of this tutorial you will have a working Enemy Territory server with 20 slots, set up for competitive matches.
Contents |
Installation
Here we go. I guess you are already logged in (using ssh or something like that), so create a directory where ET's files will be stored:
mkdir etserver1 cd etserver1
Now we're going to download the server files, changing the usage rights and installing it using the installer.
wget ftp://ftp.idsoftware.com/idstuff/et/linux/et-linux-2.60.x86.run chmod u+x et-linux-2.60.x86.run ./et-linux-2.60.x86.run
The installer asks for the install dir; use ~/etserver1/enemy-territory.
A last step we need to take to finish the installation: doing a little update to version 2.60b.
For that we just have to copy the new .x86 files over the existing ones.
wget ftp://ftp.idsoftware.com/idstuff/et/ET-2.60b.zip unzip ET-2.60b.zip cp Enemy\ Territory\ 2.60b/linux/et* ~/etserver1/enemy-territory/ chmod u+x ~/etserver1/enemy-territory/etded.x86
Ok, that's it. The ET server files are installed and ready to use... but we're going into it further.
Getting the competition mod ETpro
Alright. We need to download the mod first
cd ~/etserver1/enemy-territory/ wget http://bani.anime.net/etpro/etpro-3_2_6.zip unzip etpro-3_2_6.zip mv etpro-3_2_6.zip ~/
Setting it up
As Enemy Territory has a default config file, we're going to copy it to etpro/ and edit it for our needs.
cp etmain/server.cfg etpro/server.cfg nano server.cfg
Please note: instead of nano you can use any texteditor you want!
Just for the first start we need to edit the following parts:
set dedicated "2" set net_ip "YOUR IP HERE" set net_port "YOUR PORT HERE" //standard one is 27960 set sv_maxclients "20" set g_password "" //enter a server password here! set rconpassword "" //enter the rcon and ref password here. as an ET player set refereePassword "" //you should know what rcon and ref is. set sv_hostname "MY ET server" pb_sv_enable set com_watchdog_cmd "exec server.cfg" //at the very bottom you have to define a map. otherwise the server wont start. map oasis
Your server is now configured with the standard options. We'll now starting it up for the first time. WOOOHOO!
Starting the server
We need to get the server to run as a background process; else it will stop as soon as you disconnect the ssh session! I'm going to use screen for it. So, here is the start-command:
screen -dmS my_et_server ~/etserver1/enemy-territory/etded.x86 +set vm_game 0 +set m_cgame 2 +set vm_ui 2 +set com_zoneMegs 32 +set com_hunkMegs 128 +set net_ip ''YOUR_IP_HERE'' +set net_port ''YOUR_PORT_HERE'' +set fs_basepath ~/etserver1/enemy-territory/ +set fs_homepath ~/etserver1/.etwolf +set sv_punkbuster 1 +set fs_game etpro +exec server.cfg
A little explanation:
- +set com_zoneMegs 32 +set com_hunkMegs 128 will set the amount of RAM that ET may use
- +set fs_basepath ~/etserver1/enemy-territory/ will set the path ET will gonna look for maps/mods/etc
- +set fs_homepath ~/etserver1/.etwolf will set the path where ET puts it logfiles
- +set sv_punkbuster 1 enables PunkBuster (anti-cheat tool)
- +set fs_game etpro is set, so ET knows what mod is used
Final words
So, all in all it wasnt that hard, was it? ;)
Now you can get configs, maps and stuff that will be needed in the specific leagues.
Upload the maps to ~/etserver1/enemy-territory/etmain and the configs to ~/etserver1/enemy-territory/etpro/configs.
Ok, you're all set by now! Have fun with your server!!