[PR #3759] [MERGED] Launcher Multiplayer: Horizon Official, the official survival server, on top of the list once #5198

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/3759
Author: @ludovic111
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

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


📝 Commits (1)

  • 929e751 Launcher Multiplayer: Horizon Official on top of the list, once

📊 Changes

3 files changed (+143 additions, -25 deletions)

View changed files

📝 launcher/src/multiplayer_page.rs (+4 -1)
📝 launcher/src/server_list.rs (+72 -24)
📝 launcher/src/server_list/tests.rs (+67 -0)

📄 Description

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

What

The launcher's Multiplayer section puts Horizon Official (horizon.bunchy7s.dev, Horizon's official survival server, run by bunchy7s) at the top of the selected instance's server list, the way the game does (game PR alongside):

  • once: horizon_official_server.txt next to servers.dat records that it was offered. The game writes the same file, so a player who removes the server in either one never gets it back;
  • not duplicated: a list that already has the address (any case, with or without :25565) is left as it is;
  • nothing else changes: every other entry and field (hidden Direct Connection entries, acceptTextures, acceptedCodeOfConduct…) is written back as read, and a servers.dat that can't be read is never overwritten;
  • it looks like any other entry: the same row, the same name and address.

server_list::List::read tells a missing file (an empty list) apart from an unreadable one; load behaves as before.

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

server_list::tests::the_official_server_is_put_on_top_once: a fresh list, an existing list (on top, the player's entries unchanged), a second start, removed by the player (never back), already present under another name and spelling, an unreadable file (left alone, no marker).

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 7e42cc8ec, 11 min 45 s)

Check Result
Scope ✅ 3 files, +143 −25
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 416 passed (3 min 3 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (4 s)
launcher clippy ✅ (5 min 49 s)
launcher tests ✅ 273 passed (2 min 48 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
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/3759 **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-launcher` --- ### 📝 Commits (1) - [`929e751`](https://github.com/horizon-rust/horizon/commit/929e75181ba63a897f8bae8e48fb106f152140fa) Launcher Multiplayer: Horizon Official on top of the list, once ### 📊 Changes **3 files changed** (+143 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/multiplayer_page.rs` (+4 -1) 📝 `launcher/src/server_list.rs` (+72 -24) 📝 `launcher/src/server_list/tests.rs` (+67 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What The launcher's Multiplayer section puts **Horizon Official** (`horizon.bunchy7s.dev`, Horizon's official survival server, run by bunchy7s) at the top of the selected instance's server list, the way the game does (game PR alongside): - **once**: `horizon_official_server.txt` next to `servers.dat` records that it was offered. The game writes the same file, so a player who removes the server in either one never gets it back; - **not duplicated**: a list that already has the address (any case, with or without `:25565`) is left as it is; - **nothing else changes**: every other entry and field (hidden Direct Connection entries, `acceptTextures`, `acceptedCodeOfConduct`…) is written back as read, and a `servers.dat` that can't be read is never overwritten; - it looks like any other entry: the same row, the same name and address. `server_list::List::read` tells a missing file (an empty list) apart from an unreadable one; `load` behaves as before. ## 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 `server_list::tests::the_official_server_is_put_on_top_once`: a fresh list, an existing list (on top, the player's entries unchanged), a second start, removed by the player (never back), already present under another name and spelling, an unreadable file (left alone, no marker). **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 7e42cc8ec, 11 min 45 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +143 −25 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 416 passed (3 min 3 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (4 s) | | launcher clippy | ✅ (5 min 49 s) | | launcher tests | ✅ 273 passed (2 min 48 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | 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#5198
No description provided.