-
Notifications
You must be signed in to change notification settings - Fork 106
XML Notes
New Additions 2017
The order of each XML element matters, and this guide presents them in their order of appearance!
###Windows: ####Pre-Start Commands: Comes after the <server_params> element. There can only be one <pre_start> element. It can run multiple lines of script that will be executed by the cmd batch environment.
This can be filled with lines of script that will be run in a batch script just before the game server is started. The script will always change directory into the home directory before your commands will run, so you can reference things locally.
<pre_start></pre_start>
####Environment Variables: Comes after <pre_start> element. There can only be one <environment_variables> element. It can contain multiple entries one per line.
<environment_variables>
</environment_variables>
Used for setting environment variables which may be needed by some servers. This is run in the batch environment, so please make sure you're using Windows commands for your environment SETS.
###Linux:
####Pre-Start Commands: Comes after the <server_params> element. There can only be one <pre_start> element. It can run multiple lines of script that will be executed by the bash shell.
This can be filled with lines of script that will be run in a bash script just before the game server is started. You do NOT need to provide the shebang "#!/bin/bash" in your commands. The script will always change directory into the home directory before your commands will run, so you can reference things locally.
<pre_start></pre_start>
Example (writes hiya to a file named testingPreStart in the home directory of the server):
<pre_start>
echo "hiya" >> testingPreStart
</pre_start>
####Environment Variables: Comes after <pre_start> element. There can only be one <environment_variables> element. It can contain multiple entries one per line.
<environment_variables>
</environment_variables>
Used for setting environment variables which may be needed by some servers such as Rust.
Example:
<environment_variables>
export LD_LIBRARY_PATH="{OGP_HOME_DIR}/RustDedicated_Data/Plugins/x86_64"
</environment_variables>
- Game Config
- Game Key
- Query Protocol
- LGSL Query Name
- GameQ Query Name
- Installer
- Game Name
- Server Executable Name
- Query Port
- CLI Template
- CLI Parameters
- Reserve Ports
- CLI Allowed Characters
- Maps Location
- Map List
- Console Log
- Executable Location
- Max User Amount
- Control Protocol
- Mods
- Replace Texts
- Server Params
- Custom Fields
- List Players Command
- Player Info Regex
- Player Info
- Player Commands
- Pre Install
- Post Install
- Pre Start Commands (Windows)
- Environment Variables (Windows)
- Pre Start Commands (Linux)
- Environment Variables (Linux)
- Locking / Protecting Additional Files
- Configuration Files