[PR #5285] [MERGED] Official server: play.playhorizon.dev from links.json; launcher and game move old entries, count follows SRV #6188

Closed
opened 2026-11-03 06:15:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5285
Author: @ludovic111
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feat/official-server-from-links


📝 Commits (5)

  • 43a8edd Launcher: official server address from links.json, moved lists follow it
  • 855206f Merge origin/main; official count follows SRV, game moves old entries too
  • cc080bf Launcher: Cargo.lock for horizon-protocol
  • a84512a Merge origin/main (one Attack arm fix)
  • 043d3ff Launcher: live test of the official count through SRV (ignored by default)

📊 Changes

17 files changed (+547 additions, -72 deletions)

View changed files

📝 crates/horizon-client/src/multiplayer.rs (+103 -9)
📝 crates/horizon-protocol/src/lib.rs (+1 -0)
📝 crates/horizon-protocol/src/resolver.rs (+7 -0)
📝 crates/horizon-telemetry-server/README.md (+2 -2)
📝 crates/horizon-telemetry-server/src/lib.rs (+1 -1)
📝 crates/horizon-telemetry/src/server_status.rs (+26 -5)
📝 docs/smp.md (+1 -1)
📝 docs/telemetry.md (+1 -1)
📝 launcher/Cargo.lock (+45 -0)
📝 launcher/Cargo.toml (+2 -0)
📝 launcher/links.json (+1 -1)
📝 launcher/src/backend.rs (+26 -6)
📝 launcher/src/main.rs (+6 -1)
📝 launcher/src/multiplayer_page.rs (+6 -2)
📝 launcher/src/server_list.rs (+60 -14)
📝 launcher/src/server_list/tests.rs (+212 -22)
📝 launcher/src/telemetry.rs (+47 -7)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

The official server moves to play.playhorizon.dev (A 162.141.166.25, SRV _minecraft._tcp → 24454). The launcher and the game now move players to it by themselves, and in the launcher a later move is a links.json edit, no release.

One source. horizon_telemetry::server_status::OFFICIAL_ADDRESS (since #5235) is now play.playhorizon.dev, with OFFICIAL_PREVIOUS = ["horizon.bunchy7s.dev"] beside it. The game, the launcher's built-in defaults and the telemetry server all use them. launcher/links.json gets official_server / official_server_previous, read through backend::Links, which override the built-in values at runtime.

servers.dat (launcher server_list::add_official, game multiplayer::add_official_server). The marker file already records the address offered. When the marker names another address, the list moves once:

  • entries for an earlier address (any case, with or without :25565) get the new one, keeping the player's name, picture and fields;
  • no duplicate: if the new address is already listed, the old entry goes;
  • a player who removed the server is not offered it again;
  • an old address the player adds back afterwards is left alone;
  • another port is another server: left alone.

In the launcher, the Home list runs it again when links.json arrives.

Official player count. Port 25565 on the new host is a different server (a Paper server with 0 players; the official one answers on 24454 with 9 online). So the launcher's count now follows the SRV record, as the game does: horizon_protocol::server_redirect (newly public, reusing the client's resolver) plus server_status::players_at (connects to the target, and the handshake still names the address). It uses the links address. The telemetry server does no SRV lookups, so its default is OFFICIAL_STATUS_ADDRESS = "play.playhorizon.dev:24454". If HORIZON_TELEMETRY_OFFICIAL_SERVER is set on Railway, it needs the same value.

A later move: in links.json, set official_server and append the old address to official_server_previous. Update OFFICIAL_ADDRESS / OFFICIAL_PREVIOUS / OFFICIAL_STATUS_ADDRESS in the next release.

Checks: see the comment below.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5285 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/official-server-from-links` --- ### 📝 Commits (5) - [`43a8edd`](https://github.com/horizon-rust/horizon/commit/43a8eddf0aa321d540a0f8246a7270712259e17a) Launcher: official server address from links.json, moved lists follow it - [`855206f`](https://github.com/horizon-rust/horizon/commit/855206f9140b6650a36e52df6b1f88af4dd1c440) Merge origin/main; official count follows SRV, game moves old entries too - [`cc080bf`](https://github.com/horizon-rust/horizon/commit/cc080bf72ab07e03a9b7551636b3c284238b0532) Launcher: Cargo.lock for horizon-protocol - [`a84512a`](https://github.com/horizon-rust/horizon/commit/a84512a757d7f2a82e37743acd4ac7c6342abc46) Merge origin/main (one Attack arm fix) - [`043d3ff`](https://github.com/horizon-rust/horizon/commit/043d3ff075b98a353a2825aaea02f40815efa734) Launcher: live test of the official count through SRV (ignored by default) ### 📊 Changes **17 files changed** (+547 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/multiplayer.rs` (+103 -9) 📝 `crates/horizon-protocol/src/lib.rs` (+1 -0) 📝 `crates/horizon-protocol/src/resolver.rs` (+7 -0) 📝 `crates/horizon-telemetry-server/README.md` (+2 -2) 📝 `crates/horizon-telemetry-server/src/lib.rs` (+1 -1) 📝 `crates/horizon-telemetry/src/server_status.rs` (+26 -5) 📝 `docs/smp.md` (+1 -1) 📝 `docs/telemetry.md` (+1 -1) 📝 `launcher/Cargo.lock` (+45 -0) 📝 `launcher/Cargo.toml` (+2 -0) 📝 `launcher/links.json` (+1 -1) 📝 `launcher/src/backend.rs` (+26 -6) 📝 `launcher/src/main.rs` (+6 -1) 📝 `launcher/src/multiplayer_page.rs` (+6 -2) 📝 `launcher/src/server_list.rs` (+60 -14) 📝 `launcher/src/server_list/tests.rs` (+212 -22) 📝 `launcher/src/telemetry.rs` (+47 -7) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The official server moves to `play.playhorizon.dev` (A 162.141.166.25, SRV `_minecraft._tcp` → 24454). The launcher and the game now move players to it by themselves, and in the launcher a later move is a `links.json` edit, no release. **One source.** `horizon_telemetry::server_status::OFFICIAL_ADDRESS` (since #5235) is now `play.playhorizon.dev`, with `OFFICIAL_PREVIOUS = ["horizon.bunchy7s.dev"]` beside it. The game, the launcher's built-in defaults and the telemetry server all use them. `launcher/links.json` gets `official_server` / `official_server_previous`, read through `backend::Links`, which override the built-in values at runtime. **servers.dat (launcher `server_list::add_official`, game `multiplayer::add_official_server`).** The marker file already records the address offered. When the marker names another address, the list moves **once**: - entries for an earlier address (any case, with or without `:25565`) get the new one, keeping the player's name, picture and fields; - no duplicate: if the new address is already listed, the old entry goes; - a player who removed the server is not offered it again; - an old address the player adds back afterwards is left alone; - another port is another server: left alone. In the launcher, the Home list runs it again when links.json arrives. **Official player count.** Port 25565 on the new host is a **different** server (a Paper server with 0 players; the official one answers on 24454 with 9 online). So the launcher's count now follows the SRV record, as the game does: `horizon_protocol::server_redirect` (newly public, reusing the client's resolver) plus `server_status::players_at` (connects to the target, and the handshake still names the address). It uses the links address. The telemetry server does no SRV lookups, so its default is `OFFICIAL_STATUS_ADDRESS = "play.playhorizon.dev:24454"`. If `HORIZON_TELEMETRY_OFFICIAL_SERVER` is set on Railway, it needs the same value. **A later move:** in links.json, set `official_server` and append the old address to `official_server_previous`. Update `OFFICIAL_ADDRESS` / `OFFICIAL_PREVIOUS` / `OFFICIAL_STATUS_ADDRESS` in the next release. **Checks:** see the comment below. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:15:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6188
No description provided.