Silent Mod Installation: Difference between revisions

From MyGamingTalk
Jump to navigation Jump to search
Line 1: Line 1:
= Installation Guide  =
= Installation Guide  =


This document describes the installation of a Silent Mod on a server.
This document describes the installation of a silEnT Mod to an already installed Enemy Territory server.


= Download silEnT =
= Download silEnT =

Revision as of 13:40, 16 August 2012

Installation Guide

This document describes the installation of a silEnT Mod to an already installed Enemy Territory server.

Download silEnT

Download the latest copy of the silEnT mod from here

Quick Install

Rented Game Server Hosting

1. Unzip the file on your local PC.

2. Upload all the contens of silent folder to your server FTP next to etmain folder.

3. Go to the game server control panel and change the fs_game setting to silent. Change the executed config to silent.cfg.

VPS and Dedicated Server with Shell Access

1. Backup old etmain and silent folders if you have them but do not delete the etmain folder.

2. Upload the silent.zip found from inside the silent-0.x.x.zip to the root of the ET installation. Next to etded.

3. Unzip the silent.zip.

4a. Start your Windows server with command line "etded +set dedicated 2 +set fs_game silent +exec silent.cfg".

4b. Start your Linux server with command line "etded +set dedicated 2 +set fs_game silent +set fs_homepath /path/to/your/et/ +exec silent.cfg".

Advanced

Important Command Line Parameters

fs_basepath This is the path to the installation of the Enemy Territory. From this path, the etded.x86/etded.exe is found.
fs_homepath This is the path where the Enemy Territory will save your config files and downloaded pk3 files. For Linux server, this path is often set to the same location as fs_basepath. In Windows, the fs_basepath and fs_homepath points always to the same location. For silEnT database, it is important that this is set so that the database path can be constructed to the valid location.
fs_game This is the the mod folder under the fs_basepath from where the mod files are loaded.
dedicated This value tells the type of the server to spawn. Value 2 means dedicated internet server. Value 1 means dedicated LAN server.
com_hunkMegs This value tells how much memory the spawned ET server should allocate for it's use. Note that this value is latched and can not be changed when the server is running.
net_ip This is the IP address of the server. If you don't set this value, it will be localhost by default. The difference between the localhost and defined IP address is that if this value is set to localhost, it will receive and send the game packets from all the interfaces of the server. And it will bind the game server port defined with net_port to all of these interfaces for the use of the game server. This affects your server if you have multiple interfaces with multiple IP addresses.
net_port This is the port the game server sends and receives game packets. By default this is set to 27960 and if this port is taken, the server will attempt to find a free one stepping up one by one until it has failed with the port 27969.

Config Files

With silEnT mod there are many config files. Some of the config files are important to get the server running and fully operational. Other config files are only ment for customizing the server to your and your communitys needs. Note, If you are experienced with configuring your own Enemy Territory servers, you can of course create your own config file structure. This document only describes what is available in the default installation.


silent.cfg

The silent.cfg will set all the settings for the Enemy Territory server and for the silEnT mod. After all the settings are done, the config file executes mapvotecycle.cfg or objectivecycle.cfg. The latter config files include the map command which will launch the mod and load the specified map. The cvars that are set inside this config file can be mostly found from the chapters silEnT Mod Server Cvar and Generic Server Cvar and will not be handled in this document.

You can place this file in either the etmain folder or in the silent folder. The etmain folder was chosen for the default installation based on the current practices of the time. However, do not place this file to both of the folders because that will make it harder to know which version is being executed.


objectivecycle.cfg

This config file defines the map rotation on your server. The default content of the config file is

set d1 "set g_gametype 2 ; map oasis ; set nextmap vstr d2"
set d2 "set g_gametype 2 ; map battery ; set nextmap vstr d3"
set d3 "set g_gametype 2 ; map goldrush ; set nextmap vstr d4"
set d4 "set g_gametype 2 ; map radar ; set nextmap vstr d5"
set d5 "set g_gametype 2 ; map railgun ; set nextmap vstr d6"
set d6 "set g_gametype 2 ; map fueldump ; set nextmap vstr d1"
vstr d1


Commands used in the config file:

set This command sets the value of a cvar. If the cvar does not exist, the cvar will be created. Created cvars are custom cvars that do not mean anything to the mod or to the game. But they can be usefull for configuring the server. In this case the cvars from d1 to d6 are custom cvars.
map This command starts the silEnT mod to play the specified map. The map name used with the command must be the raw bsp name of the map. For custom maps, you can find the map name by unzipping the pk3 file (pk3 files are infact just zipped files with changed file ending) and looking inside the maps folder.
vstr This command expands the value of a cvar when executed. This feature is necessary to be able to create automatic map rotation.


Each lines that define cvars from d1 to d6 are infact one map. The g_gametype is set to objective, the map is launched and the inbuilt cvar nextmap is set to contain the vstr of the next map in the rotation. Note that the vstr is important here because it allows creating a loop for the nextmap rotating back to the beginning. Even without the loop, trying to expand the d1 to d6 by hand would not look good.


mapvotecycle.cfg

This config file is otherwise similar to the objectivecycle.cfg, except that it sets the g_gametype to 6. Which is the map voting game type.

Notes

  • In linux, the fs_homepath is by default a hidden folder at the user home directory. If this path is not set to the server installation, the silEnT will not be able to function fully. This value is usually set to have the same value as the fs_basepath.
  • Often the default com_hunkMegs setting (56) is not enough for a customized server. Increase this value to avoid problems.