Setting up a server on Linux: Difference between revisions

No edit summary
Line 23: Line 23:
</syntaxhighlight>
</syntaxhighlight>
Upon first running, the game will create a file '''Commander_Wars.ini'''. This file contains the configuration needed to run the server. In particular these are relevant to the configuration of the server:
Upon first running, the game will create a file '''Commander_Wars.ini'''. This file contains the configuration needed to run the server. In particular these are relevant to the configuration of the server:
<syntaxhighlight lang="ini">
[Network]
GamePort=9001
SecondaryServerAdress=127.0.0.1
Server=true
ServerAdress=127.0.0.1
ServerListenAdress=
ServerPort=9002
ServerSecondaryListenAdress=
SlaveDespawnTime=86400
SlaveHostOptions="127.0.0.1&&10000&20000;127.0.0.1&&50000&65535"
SlaveListenAdress=
SlaveServerPort=9003
</syntaxhighlight>

Revision as of 04:03, 19 January 2023

As of January 2023, the server code cannot be properly run under most common distributions, in a server environment. The reason behind this has to do, with the bleeding edge dependencies the server code uses, particularly Qt dependencies.

This guide will assume an Arch Linux environment.

Download

Download the server version of the latest compilation of the game. You may find the download under the Releases page


Installing the dependencies

Install the Qt dependencies of the game, such as:

sudo pacman -Syu qt6-base
sudo pacman -Syu qt6-multimedia
sudo pacman -Syu openssl

Depending on the version of the game server you are trying to run, these dependencies might change or require more installations. Consult the source code and on Github, in case you run into issues.

Running the server

Once you have installed the server's dependencies, you may run the executable. As of January 2023, the location of the binary is at

~/Commander_Wars_Release/bin/

Upon first running, the game will create a file Commander_Wars.ini. This file contains the configuration needed to run the server. In particular these are relevant to the configuration of the server:

[Network]
GamePort=9001
SecondaryServerAdress=127.0.0.1
Server=true
ServerAdress=127.0.0.1
ServerListenAdress=
ServerPort=9002
ServerSecondaryListenAdress=
SlaveDespawnTime=86400
SlaveHostOptions="127.0.0.1&&10000&20000;127.0.0.1&&50000&65535"
SlaveListenAdress=
SlaveServerPort=9003