Giter Site home page Giter Site logo

vadim-loginov / cossacks3-lan-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ereb-thanatos/cossacks3-lan-server

0.0 0.0 0.0 27 KB

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

License: MIT License

C++ 100.00%

cossacks3-lan-server's Introduction

Cossacks 3 LAN Server by Ereb

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

Installation

  • Windows: Download the latest GitHub release and follow the instructions in the readme.txt file.

    • Архив также содержит инструкцию на русском языке (readme_rus.txt).
  • Linux: You will need to compile the server from source. See below for instructions.

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

  • The PC running the server must be reachable on TCP port 31523. Adjust your firewall and router settings accordingly. Turn your firewall off if nothing else helps.
  • The server must be running during the entire game.
  • The server provides room host transition functionality. This means that the game will continue even after the room host leaves.
  • This server adheres to the official server's nickname limitations. Since the game key form field is more permissive, your nickname will be adjusted by the server during login if necessary. The rules are:
    • 4 to 16 characters
    • lowercase and uppercase letters from a to z
    • digits from 0 to 9
    • special characters ( ) + - _ . [ ]
    • no spaces
  • This server is meant to be used in a LAN environment only. If you try to use it over the internet, from behind a NAT, through VPN, Hamachi or with some other network setting and encounter problems doing it, then you are on your own. It might work, or it might not, depending on your networking skills.

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

  • GSC Game World for giving us the long awaited reboot of the classic Cossacks RTS.

cossacks3-lan-server's People

Contributors

ereb-thanatos avatar povilasb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.