ereb-thanatos / cossacks3-lan-server

A cross-platform server for the RTS Cossacks 3, intended for use in local area networks.
MIT License
79 stars 17 forks source link

Cossacks 3 LAN Server by Ereb

A cross-platform server for the RTS Cossacks 3, intended for use in local area networks.

Installation

How to use

  1. Create a backup of the configuration file data/resources/servers.dat from your game directory.
  2. Open the configuration file data/resources/servers.dat in any text editor.
  3. Change the IP address and keep the port number as follows:
    • If you are the one who is running the server:
      section.begin
        * = 127.0.0.1:31523
      section.end
    • Otherwise, insert the IP address of whoever runs the server on your local network:
      section.begin
        * = 192.168.0.42:31523
      section.end
  4. Start the game
  5. Type your nickname in the game key field in the login form. The email and password fields are irrelevant and can be left empty.
  6. If you want to play on the official server again, restore the backup from step #1 and restart the game.

Notes

Compiling

To compile, execute the following command in the source code directory:

$ git submodule update --init --recursive
$ g++ src/*.cpp -DNDEBUG -I asio/asio/include -lpthread -o cossacks3-server

You should be able to compile without boost, since ASIO_STANDALONE is defined in the headers.

License

This project is licensed under the MIT License - see the LICENSE.MIT file for details.

Acknowledgments