Difference between revisions of "DedicatedServer"

From Onset Developer Wiki
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
===System requirements===
 
===System requirements===
 
* Ubuntu 18.04, Debian 9, CentOS 7
 
* Ubuntu 18.04, Debian 9, CentOS 7
 +
===Setup===
 +
* Make sure you run the server on a user without superuser rights. We recommend to add a new user for this step.
 +
* Create a new folder on your users home directory. ''mkdir onset && cd onset''
 +
* Edit the server_config.json file ''nano server_config.json''. Info on the config file: [[server_config]]. Once you are done with editing press ''CTRL+X'' and then ''Y'' to save the config file.
 +
* Run ''./start_linux.sh'' to start your server. The shell file sets the environment path so the server finds the required SteamAPI files.
 +
 +
==Game Compatibility Version Number==
 +
The parameter "--version" displays server version information. The compatibility number determines what clients can connect.
 +
Game and server must have the same compatibility number for the connection to succeed. The version number does not matter in this case.
 +
 +
[[File:ServerCommandlineVersion.PNG]]
 +
 +
==Command line arguments==
 +
The parameter "--help" displays available command line options.
 +
 +
[[File:ServerCommandlineHelp.PNG]]
  
 
==Network Ports==
 
==Network Ports==

Revision as of 16:58, 7 September 2019

Windows Server

System requirements

  • Development: Windows 10
  • Production: Windows Server 2012 or later

Linux Server

We recommend Linux for production servers.

System requirements

  • Ubuntu 18.04, Debian 9, CentOS 7

Setup

  • Make sure you run the server on a user without superuser rights. We recommend to add a new user for this step.
  • Create a new folder on your users home directory. mkdir onset && cd onset
  • Edit the server_config.json file nano server_config.json. Info on the config file: server_config. Once you are done with editing press CTRL+X and then Y to save the config file.
  • Run ./start_linux.sh to start your server. The shell file sets the environment path so the server finds the required SteamAPI files.

Game Compatibility Version Number

The parameter "--version" displays server version information. The compatibility number determines what clients can connect. Game and server must have the same compatibility number for the connection to succeed. The version number does not matter in this case.

ServerCommandlineVersion.PNG

Command line arguments

The parameter "--help" displays available command line options.

ServerCommandlineHelp.PNG

Network Ports

The dedicated server requires 3 network ports to be open.

  • UDP 7777 - Game
  • UDP 7776 - Server query
  • TCP 7775 - HTTP server, file downloads

Ports can be changed in the server_config.