Skip to content

Game Properties File

seternate edited this page May 18, 2019 · 11 revisions

Games are added to the Server with .properties files from Java. All of the following explained fields have to be in the games .properties file. If any field is missing the game is not added to the Server.

Fields

file.server

This field refers to the filename of the packed gamefiles in the gamefolder of the Server. This can not be emtpy.

exe.file

This field refers the relative path of the .exe to start the game. The relative path must be within the gamefolder of the game to start.

exe.server

This field refers the relative path of the .exe to start a server. The relative path must be within the gamefolder of the game to start a server. If no extra executable is needed/available leave this field empty.

exe.param

This field refers to the passed command-line arguments of the game. They are only passed if the game is started or a client tries to connect to a server. For server command-line arguments see exe.server.param.

exe.server.param

This field refers to the passed command-line arguments for starting a server of the game. They are only passed if a server is started.

name

This field refers to the gamename. Do not use any special sign.

version.format

This field refers to the format, which is used to determine the version of the local available game on the Client system. There are 2 options available:

  • exe the version is determined through the games .exe-file. It is the same version that is found in the properties under windows.
  • file the version is determined through any file within the gamefolder. The file has to be a textfile.

version.query

If for the version.format field exe is used this field can be empty, because it is not used. If file is used, then this field will be used to query for the version. To query for the version, line after line is picked and searched for the query. If the query is found in a line, all information after the query in this line is used to determine the local version.

version

This field refers to the version of the game on the server. This information is used to update the games at the Clients.

connect.direct

This field refers to the ability of the game to connect directly to a server through command-line arguments. This field is either true or false.

connect.param

This field refers to the command-line argument used to connect directly to a server. This can be empty if connect.direct is false. The wildcard ? is used for the ip-address in the command-line argument.

openserver

This field refers to the ability of the game to start a server outside of the game through an extra .exe or command-line arguments. This field is either true or false.

cover.url

This field refers to an web URL of the cover to show for the Client. If the Server provides covers by itself (see Server Setup) this field can be empty.

'.properties'-File Example

Every field has to be on a sinlge line. This example shows the .properties-file for Call of Duty 2. More exmaples are provided under Game Properties File Examples.

  • file.server=cod2.7z
  • exe.file=CoD2MP_s.exe
  • exe.server=
  • exe.param=
  • exe.server.param=+set dedicated 1 +map mp_carentan
  • name=Call of Duty 2
  • version.format=file
  • version.file=version.inf
  • version.query=ExtVersion=
  • version=1.3
  • connect.direct=true
  • connect.param=+connect ?
  • openserver=true
  • cover.url=