[PR #3761] [MERGED] Multiplayer: Horizon Official, the official survival server, on top of the list once #5199

Closed
opened 2026-11-03 05:10:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/official-server-game


📝 Commits (1)

  • 77a6cf7 Multiplayer: Horizon Official, bunchy7s's survival server, listed once at the top

📊 Changes

3 files changed (+142 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -2)
📝 crates/horizon-client/src/multiplayer.rs (+70 -0)
📝 crates/horizon-protocol/src/servers.rs (+66 -1)

📄 Description

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

What

The game puts Horizon Official (horizon.bunchy7s.dev, Horizon's official survival server, run by bunchy7s) at the top of the Multiplayer list:

  • once: horizon_official_server.txt next to servers.dat records that it was offered, so a player who deletes it never gets it back (the launcher writes the same file, PR #3759);
  • not duplicated: a list that already has the address (any case, with or without :25565) is left as it is;
  • new and existing players: checked at startup when a person plays (the same condition as the heartbeat), not for a dedicated server, a benchmark, --offscreen or a run that quits by itself, so harnesses and tests never get it;
  • it's an ordinary entry, named "Horizon Official", so it looks like any vanilla server.

horizon_protocol::servers::prepend inserts at the root of the NBT, so hidden entries and fields the codec doesn't model (acceptedCodeOfConduct…) are kept, and a file that can't be read is never overwritten.

Why

Ludovic, 2026-10-29: bunchy7s's server is Horizon's official survival server, listed by default in the game and the launcher. It also has a channel on Discord (#official-server).

Tests

  • multiplayer::tests::the_official_server_is_added_once_at_the_top: a fresh list, an existing list (on top, order kept), a second start, already present under another name and spelling, deleted by the player (never back).
  • servers::tests::prepend_keeps_hidden_entries_and_unknown_fields: no file, a hidden entry with an unknown field kept as is, an unreadable file left alone.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 0a95d1c04, 27 min 44 s)

Check Result
Scope ✅ 3 files, +142 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 416 passed (2 min 46 s)
rustfmt ✅ (43 s)
clippy ✅ (9 min 2 s)
tests: horizon-client, horizon-protocol ✅ 945 passed (13 min 19 s)
doc tests ✅ 0 passed (1 min 15 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 22 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/3761 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/official-server-game` --- ### 📝 Commits (1) - [`77a6cf7`](https://github.com/horizon-rust/horizon/commit/77a6cf718203e3576ae22eb3913fcdaf786ce322) Multiplayer: Horizon Official, bunchy7s's survival server, listed once at the top ### 📊 Changes **3 files changed** (+142 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -2) 📝 `crates/horizon-client/src/multiplayer.rs` (+70 -0) 📝 `crates/horizon-protocol/src/servers.rs` (+66 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What The game puts **Horizon Official** (`horizon.bunchy7s.dev`, Horizon's official survival server, run by bunchy7s) at the top of the Multiplayer list: - **once**: `horizon_official_server.txt` next to `servers.dat` records that it was offered, so a player who deletes it never gets it back (the launcher writes the same file, PR #3759); - **not duplicated**: a list that already has the address (any case, with or without `:25565`) is left as it is; - **new and existing players**: checked at startup when a person plays (the same condition as the heartbeat), not for a dedicated server, a benchmark, `--offscreen` or a run that quits by itself, so harnesses and tests never get it; - it's an ordinary entry, named "Horizon Official", so it looks like any vanilla server. `horizon_protocol::servers::prepend` inserts at the root of the NBT, so hidden entries and fields the codec doesn't model (`acceptedCodeOfConduct`…) are kept, and a file that can't be read is never overwritten. ## Why Ludovic, 2026-10-29: bunchy7s's server is Horizon's official survival server, listed by default in the game and the launcher. It also has a channel on Discord (#official-server). ## Tests - `multiplayer::tests::the_official_server_is_added_once_at_the_top`: a fresh list, an existing list (on top, order kept), a second start, already present under another name and spelling, deleted by the player (never back). - `servers::tests::prepend_keeps_hidden_entries_and_unknown_fields`: no file, a hidden entry with an unknown field kept as is, an unreadable file left alone. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 0a95d1c04, 27 min 44 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +142 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 416 passed (2 min 46 s) | | rustfmt | ✅ (43 s) | | clippy | ✅ (9 min 2 s) | | tests: horizon-client, horizon-protocol | ✅ 945 passed (13 min 19 s) | | doc tests | ✅ 0 passed (1 min 15 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 34 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 22 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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 05:10:54 +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#5199
No description provided.