Game Server XML

The XML files are located in the panel website at
and they are what controls how the user will interact with the game server.

The XML files should be formatted with the following command:
$ tidy -q -i -xml -m -w *.xml

Ubuntu/Debian: apt-get install tidy libxml2-utils

The files can be validated with the following command:
$ xmllint --schema ../schema_server_config.xml --noout *.xml

The order of each XML element matters, and this guide presents them in their order of appearance!

Game Config:

This is the first element. There can only be one <game_config> element.

the whole XML file content here

All the following elements should be contained within <game_config> element.

Game Key:

Comes after <game_config> element (actually within <game_config> element as said above). There can only be one <game_key> element. Example:


This is a unique key used to identify this specific game server in OGP. You should not use spaces, nor any special character in it, only alpha-numeric value and underscores. It should contain a suffix related to the compatible OS. Available suffixes are _win32_win64_linux32_linux64, using one of these suffixes in the game_key will let OGP know which OS it is available on, making it visible or not when you install a new game server, depending on your OS architecture. _win and _linux work too, but we highly recommend to now use the previously listed suffixes.

Query Protocol:

Comes after <game_key> element. There can only be one <protocol> element. Example:


It defines the query protocol used by OGP. Available protocols are lgslgameqrcon (rcon2lcon?)

LGSL Query Name:

Comes after <protocol> element. There can only be one <lgsl_query_name> element. Example:


This is the unique key referencing this specific game server in the LGSL protocol file, used to query the game server.

GameQ Query Name:

Comes after <protocol> element. There can only be one <gameq_query_name> element. Example:


This is the unique key referencing this specific game server in the GameQ protocol files, used to query the game server.


Comes after <protocol> element (or comes after <lgsl_query_name> or <gameq_query_name> element when used). There can only be one <installer> element. Example:


Defines the use of SteamCMD tool to install the game server.

Game Name:

Comes after <installer> element. There can only be one <game_name> element. Example:

<game_name>Killing Floor 2</game_name>

This is the real game server name appearing in the list when installing a new game server.

Server Executable Name:

Comes after <game_name> element. There can only be one <server_exec_name> element. Example:


This is the server executable name used in the start command line.

Query Port:

Comes after <server_exec_name> element. There can only be one <query_port> element. Example:

<query_port type='add'>13</query_port>

Difference between the server port (%PORT%) and the query port (%QUERY_PORT%). In this example the variable %QUERY_PORT% will be 13 added to the port value.

CLI Template:

Comes after <server_exec_name> element. There can only be one <cli_template> element. Example:

<cli_template>-console %BASE_PATH% -ignorelastsession</cli_template>

This is the template that will generate the start command line placed after the server executable name. You can use these variables which are known to OGP:


These variable should be between % characters, the Panel will then replace them with the proper value when generating the start command line.

You can also use custom variables that you will define later in the XML.

CLI Parameters:

Comes after <cli_template> element. There can only be one <cli_params> element. Example:

 <cli_param id="MAP" cli_string="" />
 <cli_param id="IP" cli_string="-MultiHome=" options="q"/>
 <cli_param id="PORT" cli_string="-Port=" options="sq"/>
 <cli_param id="PID_FILE" cli_string="" />
 <cli_param id="GAME_TYPE" cli_string="" />
 <cli_param id="HOME_PATH" cli_string="" />

It defines the known variables used in <cli_template>. In this example we can imagine that for %MAP% it will generate the map name without space or quotes around it, because there is no options, for %IP% it will generate -MultiHome="" using the cli_string and adding only quotes around the game server IP value because of options="q", and %PORT% will generate -Port= "27015" using the cli_string and adding space and quotes around the game server port because of options="sq".

Reserve Ports:

Comes after <cli_template> or <cli_params> element. There can only be one <reserve_ports> element. Example:

		<port type="subtract" id="WEB_ADMIN_PORT" cli_string="-WebAdminPort=">5</port>
		<port type="add" id="STEAM_PORT" cli_string="-SteamPort=">19238</port>
		<port type="add" id="MY_CUSTOM_PORT">666</port>

You can add reserved ports here to use in the generated start command line. These ports will also be managed by OGP if OGP is used to manage the Agent machine firewall. Type can be add or subtract which is self explanatory. In this example when using the %WEB_ADMIN_PORT% variable in the <cli_template> it will generate -WebAdminPort=XXX, XXX being 5 subtracted to the Port set for this game server, when using the %STEAM_PORT% variable in the <cli_template> it will generate -SteamPort=XXX where XXX will be 19238 added to the Port set for this game server. As you can see, the variable %MY_CUSTOM_PORT% have no cli_string, this can be used this way to simply open this port (which here would be 666 added to the game server port) in the Agent machine firewall, when OGP is set to control the machine firewall (note: the firewall management may actually not open anything else than the game server port, to be verified).

CLI Allowed Characters:

Comes after <reserve_ports> element. There can only be one <cli_allow_chars> element. Example:


Used to allow some special characters in the command line. Escaped by default: \ " ' | & ; > < ` $ ( ) [ ]

Maps Location:

Comes after <cli_template> element. There can only be one <maps_location> element. Example:


It sets the path of the map folder for this game server, which will be used to generate a selectable map list available before starting the game server. If folder contains map files it will use their name without the extension, if it contains sub folders with each map inside each own sub folder, it will generate the map list based on the folders names contained in the defined path. The selected map in the list will be used to replace the %MAP% variable in the <cli_template>.

Map List:

Comes after <cli_template> element. There can only be one <map_list> element. Example:


The map list file path used to generate the selectable map list available before starting the game server. In this example it will look for a file called maplist.txt inside the root of the game server. Map list should have one map per line. The selected map in the list will be used to replace the %MAP% variable in the <cli_template>.

Console Log:

Comes after <cli_template> element. There can only be one <console_log> element. Example:


It defines the path of the log file that will be shown in the LOG page of the game server. Most game servers, especially on Linux, will not need that, when in general, Windows game server will need it to properly show the output log.

Executable Location:

Comes after <console_log> element. There can only be one <exe_location> element. Example:


It defines the path of the game server executable when not in the root folder.

Max User Amount:

Comes after <exe_location> element. There can only be one <max_user_amount> element. Example:


It defines the maximum player number you will be able to set when creating the game server.

Control Protocol:

Comes after <max_user_amount> element. There can only be one <control_protocol> element. Example:


Can be rconrcon2, or lcon (legacy). Note that rcon can also have type option to define, which can be old or new. Example:



Comes after <control_protocol> element. There can only be one <mods> element. Example:

    <mod key="insurgency">

Used to define different mods for the game server, in this example there is only one mod available which will be the default installed one (actually the game server itself here). The <installer_name> here is the Steam appID that will be used to install and update the game server. (note: case RSync to explain? Case multi mods to explain?)

Replace Texts

<replace_texts> Comes after <mods>.

Contains multiple <text> entries like so:

	  <text key="control_password">
	  <text key="home_name">

<default> within <text> is what the line to replace starts with.

<var> within <text> is the key for what should be kept when the line is replaced with the value entered by the user when replacing text occurs.

<filepath> within <text> specifies the text file to make the replacement in.

<options> within <text> specifies how to enter the user’s value after the <var> key. Possible options are:

        nothing / no value = placed as is
        s = space / separated
        q = quoted
        sq = space and quotes
        sc = space and ends with a comma
        sqc = space, quoted, and ends with a comma

These replace text will be applied on server start and modify the specified config files with the values generated by the Panel.

Server Params:

<server_params> Comes after <replace_texts>.

Contains multiple <param> entries like so:

    <param id="SP" key="?ServerPassword=" type="text">
      <caption>Server Password</caption>
      <desc>Players must know this password to connect.</desc>
    <param id="DIFFICULTY" key="?Difficulty=" type="select">
      <option value=""></option>
      <option value="0">Normal</option>
      <option value="1">Hard</option>
      <desc>This sets the server difficulty. Leave empty to configure this parameter in the config files or webadmin</desc>
    <param key="-EnableCheats" type="checkbox_key_value">
      <desc>Enable the cheats to be used from the ingame Admin menu</desc>

id attribute on the <param> specifies which variable to replace in the <cli_template> key attribute specifies what will replace the variable defined by id attribute type attribute will define what kind of parameter it is, possible values are text select checkbox_key_value:

  • text will allow to write text value to be added during the replacement of the variables in startup command line. For example, %SP% in <cli_template> would be replaced with ?ServerPassword=XXX where XXX would be the value entered by the user in the text box, if nothing is entered the variable is not replaced but removed from <cli_template>. The value entered can be modified to fit your needs by using the <option> element within the <param> element.
  • select will create a selectable list to choose the parameter value. The %DIFFICULTY% variable in <cli_template> would be replaced with ?Difficulty=1 if Hard would have been selected before starting the server.
  • checkbox_key_value will add a simple checkbox that, if ticked before starting server, would add the parameter -EnableCheats at the end of the startup command line.

Valid options are for the <options> element within the <param> element within the <server_params> element are:

        ns = no space between key and value
        q = quotes wrapped around value after key (no space added)
        s = space added after key before value (no quotes added)
        anything else = space after key and quotes around the value 

Custom Fields:

Comes after <server_params> element. There can only be one <custom_fields> element. Example:

    <field key="sv_maxrate" type="text">
      <desc>Max bandwidth rate allowed on server ( bytes per second ), 0 == unlimited.</desc>
	<field key="sv_minrate" type="text">
      <desc>Min bandwidth rate allowed on server ( bytes per second ), 0 == unlimited.</desc>
    <field key="sv_maxcmdrate" type="text">
      <desc>If sv_mincmdrate is > 0, this sets the maximum value for cl_cmdrate.</desc>
    <field key="sv_mincmdrate" type="text">
      <desc>This sets the minimum value for cl_cmdrate. 0 == unlimited.</desc>
    <field key="sv_maxupdaterate" type="text">
      <desc>Maximum updates per second that the server will allow.</desc>
    <field key="sv_minupdaterate" type="text">
      <desc>Minimum updates per second that the server will allow.</desc>

Custom Fields available when you go to Custom Fields button from the game server page. These custom fields will be applied on every server start and will replace the specific values in the specified config files.

List Players Command:

Comes after <custom_fields> element. There can only be one <list_players_command> element. Example:


This is the command to list the players on the server when using control_protocol.

Player Info Regex:

Comes after <list_players_command> element. There can only be one <player_info_regex> element. Example:


Regex used for player info when using control_protocol.

Player Info:

Comes after <player_info_regex> element. There can only be one <player_info> element. Example:

    <index key="1">userid</index>
    <index key="2">Name</index>

Defines the different keys for player infos when using control_protocol.

Player Commands:

Comes after <player_info> element. There can only be one <player_commands> element. Example:

    <command key="Kick" type="hidden">
	  <string>kick "%Name%"</string>
    <command key="Ban" type="select">
	  <option value="0">Permanent</option>
	  <option value="15">15m</option>
	  <option value="30">30m</option>
      <option value="60">1h</option>
	  <option value="1440">1D</option>
	  <option value="10080">1W</option>
	  <option value="43200">30D</option>
	  <string>banid %input% %userid% kick</string>
	<command key="Change Nick" type="text">
	  <default>new nick</default>
	  <string>sm_rename #%userid% "%input%"</string>

Defines the commands available when using control_protocol.

Pre Install:

Comes after <player_commands> element. There can only be one <pre_install> element. It can contain multiple entries one per line. Example:


Script executed before installing the game server.

Post Install:

Comes after <pre_install> element. There can only be one <post_install> element. It can contain multiple entries one per line. Example:

cp linux64/ ./
echo &apos;#!/bin/bash
./bin/AvorionServer $@&apos; &gt;
chmod +x

Script executed after installing or updating the game server, similar to pre_install (which pre_install is executed before installation/update obviously). In this example, after installation or update of the game server, it will copy the file linux64/ to ./ and generate a bash script in the file and then make this bash script executable.
! Note that the bash script must be written to be properly interpreted by the XML (see the " character replaced by &apos;> replaced by &gt;, and so on.. if you write plain bash script it will break the XML in Panel, so keep that in mind and replace special characters with their XML readable counterpart.

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 shell or 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.


Environment Variables:

Comes after <pre_start> element. There can only be one <environment_variables> element. It can contain multiple entries one per line.


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.

Special entries:

{OGP_HOME_DIR} will be replaced by the home directory for the game server.

Locking / Protecting Files:

Comes after <environment_variables> element. There can only be one <lock_files> element. It can contain multiple entries one per line.


Used for protecting additional game server files by using the system program chattr. This is a Linux only element. You can use relative (paths are relative to the home directory for the game server) or absolute paths.



The above example adds chattr +i to the bin/AvorionServer executable. This prevents the user from changing it. When SteamCMD or Rsync is run to update the files, everything is unlocked, but the files specified here will be locked post update / install. These files are also locked again (just to make sure) before the server is restarted and started. Entries here will not BREAK or AFFECT the steamcmd or Rsync update process.

Special entries:

{OGP_HOME_DIR} will be replaced by the home directory for the game server. However, if you’re using this variable, you should just use a local path.

Configuration Files:

Comes after <lock_files> element. There can only be one <configuration_files> element. There can be multiple <file> entries within <configuration_files> element, the description in the <file> element is not mandatory. Example:

 <file description="The Main config file">Path/To/Config/File.ini</file>
 <file description="Another Config file">FolderX/GameEngine.ini</file>

It defines the files directly editable from Panel even without access to the server files directly. This requires the EditConfigFiles extra module.

Spread the word. Share this post!

Leave Comment

Your email address will not be published. Required fields are marked *