wastedgames/wasted-code
7
27
Fork
You've already forked wasted-code
5
4 Online
franzbonanza edited this page 2024年09月20日 08:02:34 +00:00
Table of Contents

Online Multiplayer Management

The online is nothing fancy. We rely on the old LAN system from STK. That means reachable servers are the ones that have open ports to external traffic.

HOSTS.txt

This file basically holds inside all the official servers added by us. Those addresses are reached by Wasted when going into the multiplayer section. The game will try to send a broadcast packet and the server should reply back with all the info about the server (Gamemode, name, players..).

We check also our checksum against the one of the file saved in the /data/ folder. If they don't match, the game refuses to ping those servers contained in the list. A player can request that his server is added to the official server list by opening a PR.

WINDOWS WORKAROUND

Currently only LAN-ipv4 server discovery is enabled because otherwise our server discovery system won't work on Windows. If you want to enable the ipv6 option please change the option in your config.xml file in your user folder and set Lan-ipv6 = true.

early development stages