The configuration files are templates for the game servers configuration files. These files will contain cvars such as hostname, rcon password, etc.
||IP address that will be used in the game server|
||Max players allowed on the game server. This value is defined in the new server form.|
||Branded text that is defined in the game settings.|
||Name of the server. This value is defined in the new server form.|
||User rcon password. This value is defined in the new server form.|
||User private password to join server. This value is defined in the new server form.|
||Port 1 value. This value is defined in the game settings.|
||Port 2 value.|
||Port 3 value.|
||Port 4 value.|
||Port 5 value.|
||Port 6 value.|
||URL to download files from HTTP server (fastdownloads).|
For such files SGM offers two options:
Plain Text files as the name implies has a text editor where you edit the configuration as in any text editor by typing commands and values. This option is more susceptible to errors especially to less experienced users.
Form files, the administrator defines all the commands that the user will be able to change.and so the user must adjust the values to your will.
In order to create a plain text config templates, simply follow the next steps.
Add the desired content to the file.
In order to create a Form config template in the New file form, select the Type Form.
Due to the large amount of data that is sometimes necessary to use in these configuration files you can create and organize the commands into categories. In this example we will create two categories.
Edit the recent created file and press New Caregory.
Assign the name you want, in this example we will use Base.
Once created the desired categories we now create the commands inside these categories.
There are four types of commands that you can create and which we will explain.
This type of command is most useful for commands with values of type string, like the hostname or rcon password.
This type of command is ideal for ommands that accept only the values of 0 or 1. This one will be shown to the user as a switch (checkbox).
This type of command is usefull when you want the user to choose a value from a pre-defined list.
This command type is very similar to the Text command except that it will only accept numbers.
The result of a configuration file created with the Form type will be something like this.
Powered by WHMCompleteSolution