[PR #2595] [MERGED] Game: vanilla's --quickPlaySingleplayer and --quickPlayMultiplayer #4456

Closed
opened 2026-11-03 04:17:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/game-quick-play


📝 Commits (1)

  • d12dc5d Game: vanilla's --quickPlaySingleplayer and --quickPlayMultiplayer

📊 Changes

1 file changed (+12 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+12 -2)

📄 Description

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

Clean room: designed from the feature list in briefs/launcher-features-1.md; no other launcher's code, docs or assets were read.

What

The game now takes vanilla's quick-play flags, so a launcher can start it straight into a world or a server with the names vanilla uses:

  • --quickPlaySingleplayer <folder> opens an existing world of saves/. Like vanilla's Minecraft.joinSingleplayerWorld (which only opens a level that exists), a missing folder is not created: the game says so on stderr and shows the title screen.
  • --quickPlayMultiplayer <address> is the same as --server <address>.

--world (which creates the world when missing) and --server are unchanged; the launcher keeps passing those, since every released game understands them.

Proof

Run with the real game on the Mac mini (fresh mktemp -d homes):

  • --quickPlaySingleplayer Missing → title screen, horizon-ctl state has no player.
  • --world Made creates the world; then --quickPlaySingleplayer Made opens it (player position present).
pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at f5b7bdba1, 4 min 25 s)
| Scope | ✅ 1 files, +12 −2 |
| Cargo.lock | ✅ unchanged |
| Public tree | ✅ |
| Python tests | ✅ 321 passed (27 s) |
| rustfmt | ✅ (3 s) |
| clippy | ✅ (53 s) |
| tests: horizon-client | ✅ 1281 passed (2 min 25 s) |
| doc tests | ✅ 0 passed (33 s) |
| Parity | ➖ 30 affected, to run in CI |

The change is argument parsing only (Options before the game starts); the harnesses it selects run in CI.

🤖 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/2595 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/game-quick-play` --- ### 📝 Commits (1) - [`d12dc5d`](https://github.com/horizon-rust/horizon/commit/d12dc5d1e185762fd939d545bcb1d6fab326a8e0) Game: vanilla's --quickPlaySingleplayer and --quickPlayMultiplayer ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+12 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Clean room: designed from the feature list in briefs/launcher-features-1.md; no other launcher's code, docs or assets were read. ## What The game now takes vanilla's quick-play flags, so a launcher can start it straight into a world or a server with the names vanilla uses: - `--quickPlaySingleplayer <folder>` opens an existing world of `saves/`. Like vanilla's `Minecraft.joinSingleplayerWorld` (which only opens a level that exists), a missing folder is not created: the game says so on stderr and shows the title screen. - `--quickPlayMultiplayer <address>` is the same as `--server <address>`. `--world` (which creates the world when missing) and `--server` are unchanged; the launcher keeps passing those, since every released game understands them. ## Proof Run with the real game on the Mac mini (fresh `mktemp -d` homes): - `--quickPlaySingleplayer Missing` → title screen, `horizon-ctl state` has no player. - `--world Made` creates the world; then `--quickPlaySingleplayer Made` opens it (player position present). ``` pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at f5b7bdba1, 4 min 25 s) | Scope | ✅ 1 files, +12 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 321 passed (27 s) | | rustfmt | ✅ (3 s) | | clippy | ✅ (53 s) | | tests: horizon-client | ✅ 1281 passed (2 min 25 s) | | doc tests | ✅ 0 passed (33 s) | | Parity | ➖ 30 affected, to run in CI | ``` The change is argument parsing only (`Options` before the game starts); the harnesses it selects run in CI. 🤖 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 04:17:17 +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#4456
No description provided.