Skip to content

Game Server Configuration

Jokūbas M edited this page Feb 16, 2018 · 4 revisions

Game Server Configuration


0. Requirements

  • Compiled server binaries and a working MariaDB database server (if you do not have at least one yet, please go back to Building and installing page.
  • Text editor(Notepad++ recommended, although Wordpad and Notepad should work aswell, on Windows).

1. Configuration structure

By opening Game Server's configuration file with text editor, which is project_dir/cfg/gameserver_1_1.ini you can see some already commented options.

Each section will be explained below.

Network section

In this section all configuration related to the server is kept. That means here you can: change listen port, change log level and etc.

Note: There is no listen ip option. This is because all of the servers are listening on Ip.Any.

  • ip - even though servers are listening on Ip.Any, this ip is used to send to the client. It should be your public aka WAN ip.
  • port - it is listen port which default is 38111.
  • max_users - it will determine how much players this game server can hold.

Server section

In this section all configuration related to the server and game settings are kept. That means here you can: change type, rates, etc.

  • server_type - this setting determines server's type. For now, only normal type is supported(type = 0).

Master section

In this section all configuration related to the master server is kept. That means here you can: change master server's ip and port.

  • ip - ip of the master server
  • port - port of the master server

Clone this wiki locally