[PR #893] [MERGED] horizon-server: find game files prepared without sounds #2892

Closed
opened 2026-11-02 15:59:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/server-find-resources


📝 Commits (1)

  • 44fba3b horizon-server: find game files prepared without sounds

📊 Changes

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

View changed files

📝 crates/horizon-server/src/engine.rs (+18 -2)

📄 Description

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

What

horizon-server init and run recognised a prepared folder by asset-index.json. horizon-prepare writes that file only with the optional sounds (horizon-prepare sounds), so a server prepared the usual way (no sounds, which a server never plays) was never found. init printed "no prepared game files" and then listed the very folder that held them. Prepared folders are now recognised by horizon-resources.json, the manifest every preparation writes and the one the game reads itself.

How it was found

The end-to-end install check from docs/server.md §10 on the Mac mini:

  1. curl -fsSL .../packaging/server/install.sh | sh -s -- --dir /tmp/sh8/horizon --bin /tmp/sh8/bin installed v2026.10.18.15 (the asset's SHA-256 matched).
  2. horizon-prepare --root <dir>/current (the release's own preparer, with an imported copy of the owner's Minecraft) prepared <dir>/game-files/horizon-client/26.3 in 6 min 22 s.
  3. horizon-server init --eula ... --yes listed <dir>/current/.local/horizon-client/26.3 as a place it had looked and found nothing there: the folder has horizon-resources.json but no asset-index.json.

With this branch's binary in the same release folder, init finds the files (Game files: /tmp/sh8/horizon/current/.local/horizon-client/26.3). After that, start, a Horizon client join, a vanilla protocol client join, backup, restore and the panel all worked (see card#29).

Self-check

cargo fmt --all -- --check                                      ok
cargo clippy -p horizon-server --all-targets -- -D warnings     ok (no crate depends on horizon-server)
cargo test -p horizon-server                                    25 passed (new: resources_prepared_without_sounds_are_found)

No harness covers horizon-server's lookup. The engine is unchanged.

No skip-release label: server owners get this only through a release (install.sh installs the latest one). Until then they can set [engine] resources in server.toml.

🤖 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/893 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/server-find-resources` --- ### 📝 Commits (1) - [`44fba3b`](https://github.com/horizon-rust/horizon/commit/44fba3bf9d8b2b96c6c21855fc7970107a8d8b8b) horizon-server: find game files prepared without sounds ### 📊 Changes **1 file changed** (+18 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-server/src/engine.rs` (+18 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `horizon-server init` and `run` recognised a prepared folder by `asset-index.json`. `horizon-prepare` writes that file only with the optional sounds (`horizon-prepare sounds`), so a server prepared the usual way (no sounds, which a server never plays) was never found. `init` printed "no prepared game files" and then listed the very folder that held them. Prepared folders are now recognised by `horizon-resources.json`, the manifest every preparation writes and the one the game reads itself. ## How it was found The end-to-end install check from docs/server.md §10 on the Mac mini: 1. `curl -fsSL .../packaging/server/install.sh | sh -s -- --dir /tmp/sh8/horizon --bin /tmp/sh8/bin` installed v2026.10.18.15 (the asset's SHA-256 matched). 2. `horizon-prepare --root <dir>/current` (the release's own preparer, with an imported copy of the owner's Minecraft) prepared `<dir>/game-files/horizon-client/26.3` in 6 min 22 s. 3. `horizon-server init --eula ... --yes` listed `<dir>/current/.local/horizon-client/26.3` as a place it had looked and found nothing there: the folder has `horizon-resources.json` but no `asset-index.json`. With this branch's binary in the same release folder, `init` finds the files (`Game files: /tmp/sh8/horizon/current/.local/horizon-client/26.3`). After that, start, a Horizon client join, a vanilla protocol client join, backup, restore and the panel all worked (see card#29). ## Self-check ``` cargo fmt --all -- --check ok cargo clippy -p horizon-server --all-targets -- -D warnings ok (no crate depends on horizon-server) cargo test -p horizon-server 25 passed (new: resources_prepared_without_sounds_are_found) ``` No harness covers `horizon-server`'s lookup. The engine is unchanged. No skip-release label: server owners get this only through a release (install.sh installs the latest one). Until then they can set `[engine] resources` in server.toml. 🤖 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-02 15:59: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#2892
No description provided.