Code Monkey home page Code Monkey logo

sc4mp-server's Issues

Reserved tiles

Add the ability for server owners to reserve tiles and reject all claims on them. Would be useful for blocking claims on all-water tiles.

Add claims timeout

Default 1 hour or None

Would restrict new claims on a server until this duration elapsed from the last new claim.

Include city name in server-side savegame filenames

Right now, savegame filenames on the server use the format <x_coordinate>_<y_coordinate>.sc4

It would be easier to identify savegames if they used a format such as (<x_coordinate>, <y_coordinate>) <city_name>.sc4.

This however would require the DBPF class to read the city name string from incoming saves.

Automatic creation of firewall rules

Create inbound firewall rules automatically when starting the server. This would most likely only be needed on Windows, as the Windows firewall is rather annoying. Other Windows applications create firewall rules automatically, so this is something good to look into.

Server host/port doesn't update if the old host/port are being used to host a server with a different `server_id`

�[90m [01:11:05] [SC4MP/Thread-6] (ServerList) [INFO] - "flann_02_namteam" already found in our server list
�[93m [01:11:05] [SC4MP/Thread-6] (ServerList) [WARNING] Resolving server_id conflict...
�[93m [01:11:05] [SC4MP/Thread-6] (ServerList) [WARNING] - keeping the old server!
�[90m [01:11:05] [SC4MP/Thread-6] (ServerList) [INFO] - requesting to be added to their server list...
�[90m [01:11:05] [SC4MP/Thread-6] (ServerList) [INFO] - receiving their server list...
�[90m [01:11:06] [SC4MP/Thread-6] (ServerList) [INFO] - done.```

API docs

Finish the API docs, so that people can make server browsers or even their own custom clients.

Ensure server always exits safely

At the moment there's no safe way to shutdown the server. So far it hasn't caused any problems, but there is a chance that the server could be in the middle of an important operation when the process is killed.

The best way to ensure the server always exits safely might be to handle the keyboard interrupt and have it trigger the server to cleanup and shutdown.

Note: pretty sure the keyboard interrupt wouldn't work on Windows distributions, but that seems like a Windows problem...

ServerList server_queue fills with repeated server entries

ServerList.server_list() should check if a server is in the queue before adding. This behavior is likely responsible for slow synchronization of servers as the requests to add to the queue either end up at the end of a long queue and may be purged from that queue when it's randomly pruned, or they may not be added to the queue at all if its full when the request is handled.

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.