Skip to content

master075: classic masters keep our announce (cut strings, real player limit, mastercgi) - #40

Merged
itxtoledo merged 1 commit into
mainfrom
fix/master075-classic
Nov 29, 2026
Merged

itxtoledo merged 1 commit into
mainfrom
fix/master075-classic

Conversation

@itxtoledo

Copy link
Copy Markdown
Contributor

What

The 0.75 profile's announce to the classic masters (Legacy/Master075.c):

  • Name, mode and map cut to 31, 7 and 20 bytes, never inside a UTF-8 sequence. mastercgi (66.135.15.57, the default list of LSD) drops the whole announce, silently, when one of them is longer (net/read.c, read_str). The cut applies to every master, so the Build and Shoot row is cut too.
  • The real player limit: max_players from the config (at most 32) instead of 32 always; the player count stays within it.
  • config-075.toml lists mastercgi next to Build and Shoot: address = ["67.205.183.163:32886", "66.135.15.57:32886"]. The code's default (no config) is unchanged.
  • Manual (07-network.typ) updated.

Tested (local)

  • make server and make config-check (both profiles).
  • mastercgi's net/ daemon built on macOS and run on 127.0.0.1; the 0.75 server with the name [NGS] Classic CTF 0.75 — São Paulo teste longo and max_players = 20 was listed as "name":"[NGS] Classic CTF 0.75 — São", "players_max":20, "game_version":"0.75" (enet6 against mastercgi's classic ENet works).

Not covered

The old code was not run against mastercgi (the drop is read from its source), and the live mastercgi at 66.135.15.57 was not announced to.

…player limit, mastercgi in the 0.75 config

mastercgi (66.135.15.57, LSD's default list) drops an announce whose name,
mode or map is longer than 31, 7 or 20 bytes, without a word: the announce
cuts them to that, never inside a UTF-8 sequence, for every master. The
announce carries the server's own max_players (at most 32) instead of 32
always, and the player count stays within it. config-075.toml lists
mastercgi next to Build and Shoot.
@itxtoledo
itxtoledo merged commit 250a84f into main Nov 29, 2026
2 checks passed
@itxtoledo
itxtoledo deleted the fix/master075-classic branch November 30, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant