[PR #162] [MERGED] Fix missing background in Classic menus #2364

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

📋 Pull Request Information

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

Base: main ← Head: t3code/fix-classic-ui-background


📝 Commits (2)

  • eebf562 Fix classic menu panorama resource preparation
  • aab8875 Keep title panorama optional during full resource preparation

📊 Changes

4 files changed (+191 additions, -23 deletions)

View changed files

📝 crates/horizon-prepare/src/lib.rs (+13 -3)
📝 crates/horizon-prepare/src/main.rs (+15 -7)
📝 crates/horizon-prepare/src/sounds.rs (+156 -12)
📝 docs/native-client.md (+7 -1)

📄 Description

Minecraft 26.3's client JAR contains 1×1 gray placeholder panorama textures; the full images live in the launcher's asset store. Horizon extracted the placeholders and only imported sounds from the store, leaving the Classic title screen with a solid gray background.

Import the six panorama faces and overlay from the pinned asset index after JAR extraction, verifying every source object's SHA-1 before replacing any placeholders. Full preparation treats this cosmetic import as optional: a missing or incomplete launcher installation logs Title panorama not imported: …; run horizon-prepare panorama later and continues with the placeholders. The horizon-prepare panorama repair command remains strict and requires the complete set, without running Java exporters.

Regression tests cover repeated placeholder replacement, corrupt/missing objects, incomplete indexes, separate sound imports, and full preparation's optional import step with a missing asset store, missing launcher installation, or missing final panorama object.

Validation:

  • cargo test --locked -p horizon-prepare — 16 tests passed.
  • cargo clippy --locked -p horizon-prepare --all-targets -- -D warnings.
  • cargo fmt --all -- --check, python3 tools/check_public_tree.py, and git diff --check.
  • Ran full preparation twice against an isolated copy of real 26.3 resources and verified all imported panorama hashes. All six faces became 1024×1024 instead of 1×1.
  • Ran full preparation from those cached JARs with a nonexistent Minecraft directory: preparation succeeded with the warning and retained all six 1×1 placeholders. The strict panorama subcommand failed as expected with the same directory.
  • Captured the Classic title screen before and after in the Vulkan client under Xvfb: the background changed from a single gray color to the autumn panorama. Checked the Classic options screens too.

🔄 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/162 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3code/fix-classic-ui-background` --- ### 📝 Commits (2) - [`eebf562`](https://github.com/horizon-rust/horizon/commit/eebf5621bf5c937e585639a17fb9e900b854b250) Fix classic menu panorama resource preparation - [`aab8875`](https://github.com/horizon-rust/horizon/commit/aab88753b6825e83d88f12b21895a681b2964e5d) Keep title panorama optional during full resource preparation ### 📊 Changes **4 files changed** (+191 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-prepare/src/lib.rs` (+13 -3) 📝 `crates/horizon-prepare/src/main.rs` (+15 -7) 📝 `crates/horizon-prepare/src/sounds.rs` (+156 -12) 📝 `docs/native-client.md` (+7 -1) </details> ### 📄 Description Minecraft 26.3's client JAR contains 1×1 gray placeholder panorama textures; the full images live in the launcher's asset store. Horizon extracted the placeholders and only imported sounds from the store, leaving the Classic title screen with a solid gray background. Import the six panorama faces and overlay from the pinned asset index after JAR extraction, verifying every source object's SHA-1 before replacing any placeholders. Full preparation treats this cosmetic import as optional: a missing or incomplete launcher installation logs `Title panorama not imported: …; run horizon-prepare panorama later` and continues with the placeholders. The `horizon-prepare panorama` repair command remains strict and requires the complete set, without running Java exporters. Regression tests cover repeated placeholder replacement, corrupt/missing objects, incomplete indexes, separate sound imports, and full preparation's optional import step with a missing asset store, missing launcher installation, or missing final panorama object. Validation: - `cargo test --locked -p horizon-prepare` — 16 tests passed. - `cargo clippy --locked -p horizon-prepare --all-targets -- -D warnings`. - `cargo fmt --all -- --check`, `python3 tools/check_public_tree.py`, and `git diff --check`. - Ran full preparation twice against an isolated copy of real 26.3 resources and verified all imported panorama hashes. All six faces became 1024×1024 instead of 1×1. - Ran full preparation from those cached JARs with a nonexistent Minecraft directory: preparation succeeded with the warning and retained all six 1×1 placeholders. The strict panorama subcommand failed as expected with the same directory. - Captured the Classic title screen before and after in the Vulkan client under Xvfb: the background changed from a single gray color to the autumn panorama. Checked the Classic options screens too. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:20 +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#2364
No description provided.