![]() For example, making the server state and game events available via WebSockets in real-time, instead of the UDP-based extinfo protocol, and integrating a third-party auth system (spanning multiple servers). I started this mainly as a challenge to myself and because I have ideas to improve the integration of Sauerbraten servers with other services and interfaces. While you can use auth keys generated with Sauerbraten's /genauthkey command, genauth provides better output ( auth.cfg line for the player, JSON object for this server's users.json file). In cmd/genauth, there is a command to generate auth keys for users. Protocol definitions (like network message codes) can be found in pkg/protocol. pkg/game/ has game mode logic like teams, timing, flags, and so on. ![]() Detailed packet handling can be found in /pkg/server/ along with other server logic like managing the current game. configuration file parsing, initialization of all components, and preliminary handling of incoming packets. cmd/waiter/ contains the actual command to start a server, i.e. in case a player re-connectsĪll functionality is organized into packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |