## GameServer Panel XML Notes / still W.I.P. _The order of each XML element matters, and this guide presents them in their order of appearance for the GSP (OGP fork)!_ ___ ### Linux and Windows: #### Game Config: This is the first element. There can only be one `` element. ``` the whole XML file content here ``` All the following elements should be contained within `` element. ___ #### Game Key: Comes after `` element (actually within `` element as said above). There can only be one `` element. Example: ``` space_engineers_win64 ``` 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 `` element. There can only be one `` element. Example: ``` lgsl ``` It defines the query protocol used by OGP. Available protocols are `lgsl`, `gameq`, `rcon` (`rcon2`? `lcon`?) ___ #### LGSL Query Name: Comes after `` element. There can only be one `` element. Example: ``` killingfloor2 ``` 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 `` element. There can only be one `` element. Example: ``` redorchestra2 ``` This is the unique key referencing this specific game server in the GameQ protocol files, used to query the game server. ___ #### Installer: Comes after `` element (or comes after `` or `` element when used). There can only be one `` element. Example: ``` steamcmd ``` Defines the use of SteamCMD tool to install the game server. ___ #### Game Name: Comes after `` element. There can only be one `` element. Example: ``` Killing Floor 2 ``` This is the real game server name appearing in the list when installing a new game server. ___ #### Server Executable Name: Comes after `` element. There can only be one `` element. Example: ``` SpaceEngineersDedicated.exe ``` This is the server executable name used in the start command line. ___ #### Query Port: Comes after `` element. There can only be one `` element. Example: ``` 13 ``` 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 `` element. There can only be one `` element. Example: ``` -console %BASE_PATH% -ignorelastsession ``` ``` %MAP%%GAMEMODE%%DIFFICULTY%%GAMELENGTH%%PLAYERS%%MUTATOR% %PORT% %IP% %WEB_ADMIN_PORT% %QUERY_PORT% ``` 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: ``` GAME_TYPE HOSTNAME IP MAP PID_FILE PLAYERS PORT QUERY_PORT BASE_PATH HOME_PATH SAVE_PATH OUTPUT_PATH CONTROL_PASSWORD ``` 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 `` element. There can only be one `` element. Example: ``` ``` It defines the known variables used in ``. 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="123.123.123.123"` 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 `` or `` element. There can only be one `` element. Example: ``` 5 19238 666 ``` 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 `` 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 `` 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 `` element. There can only be one `` element. Example: ``` ; ``` Used to allow some special characters in the command line. Escaped by default: ```\ " ' | & ; > < ` $ ( ) [ ]``` ___ #### Maps Location: Comes after `` element. There can only be one `` element. Example: ``` folder/maps ``` 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 ``. ___ #### Map List: Comes after `` element. There can only be one `` element. Example: ``` maplist.txt ``` 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 ``. ___ #### Console Log: Comes after `` element. There can only be one `` element. Example: ``` KFGame/Logs/Launch.log ``` 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 `` element. There can only be one `` element. Example: ``` Binaries/Win64 ``` It defines the path of the game server executable when not in the root folder. ___ #### Max User Amount: Comes after `` element. There can only be one `` element. Example: ``` 64 ``` It defines the maximum player number you will be able to set when creating the game server. ___ #### Control Protocol: Comes after `` element. There can only be one `` element. Example: ``` rcon2 ``` Can be `rcon`, `rcon2`, or `lcon` (legacy). Note that `rcon` can also have type option to define, which can be `old` or `new`. Example: ``` rcon old ``` ___ #### Mods: Comes after `` element. There can only be one `` element. Example: ``` none 237410 ``` 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 `` 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 `` Comes after ``. Contains multiple `` entries like so: ``` ServerAdminPassword=.* ServerAdminPassword= ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini sq SessionName=.* SessionName= ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini sq ``` `` within `` is what the line to replace starts with. `` within `` is the key for what should be kept when the line is replaced with the value entered by the user when replacing text occurs. `` within `` specifies the text file to make the replacement in. `` within `` specifies how to enter the user's value after the `` 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: `` Comes after ``. Contains multiple `` entries like so: ``` Server Password Players must know this password to connect. ns Difficulty This sets the server difficulty. Leave empty to configure this parameter in the config files or webadmin Cheats Enable the cheats to be used from the ingame Admin menu ``` `id` attribute on the `` specifies which variable to replace in the `` `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 `` 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 ``. The value entered can be modified to fit your needs by using the `