Support Teeworlds 0.7 game and master servers - #23
Merged
Conversation
0.7 uses a token handshake before answering connless requests, varint packed ints in server info, and masters on port 8283. Every server and master is polled with both protocols and responses merge into the unified game server info, version staying a plain attribute. Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Teerank only spoke the 0.6 protocol, so 0.7 servers were invisible. 0.7 changed the wire format: masters moved to port 8283, every connless request now needs a token handshake first, and server info packs ints as varints with new fields. The worker now polls every master and game server with both protocols — the 0.7 request fires as soon as the token reply arrives — and merges responses into the unified game server info, keeping version as a plain attribute with no schema change. Verified end to end against the real masters and game servers: 0.7 masters return 774+ servers, dual-stack DDNet servers merge without duplicating clients, and pure 0.7 vanilla servers produce snapshots. Adds unit tests for varint decoding, the token handshake, and 0.7 info/list parsing.
🤖 Generated with Claude Code