Start Parameters

Many game servers require start parameters, these are command-line options that are set with the servers executable when the server starts.

Using game server configs over parameters is prefered, however, sometimes this is not an option. When this is the case only parameters or a mixture of game server config and parameters will be used.

Parameters being used by the game server can be found in ./gameserver details. To alter them, you will need to edit LinuxGSM config files.

Predefined Parameters

LinuxGSM often uses predefined parameters that can be edited. This makes adjusting common settings easier and allows them to be displayed in ./gameserver details.

## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
defaultmap="map_name"
gamemode="game_mode"
maxplayers="42"
port="27015"
sourcetvport="27020"
clientport="27005"

Additional Parameters

Additional command-line parameters can be added to the parms setting.

Anything added will be appended to the server executable binary.

Basic Example

Parms variable

Executable

parms="-game nmrih"

./srcds_run -game nmrih

Full Example

## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
fn_parms(){
parms="-game nmrih -strictportbind -ip 91.121.72.41 -port 27015 +clientport 27017 +tv_port 27016 +map nmo_broadway +servercfgfile nmrih-server-1.cfg -maxplayers 8"
}

Parameters reference