[PR #1091] [MERGED] Prepare: accept Mojang's republished 26.3 asset indexes (no sound, no panorama) #3040

Closed
opened 2026-11-02 16:01:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/republished-asset-index


📝 Commits (1)

  • 3ac4d26 Prepare: accept Mojang's republished 26.3 asset indexes (sounds, panorama)

📊 Changes

4 files changed (+108 additions, -22 deletions)

View changed files

📝 crates/horizon-prepare/src/artifacts.rs (+15 -5)
📝 crates/horizon-prepare/src/sounds.rs (+77 -12)
📝 research-lock.json (+9 -2)
📝 tools/lab.py (+7 -3)

📄 Description

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

What

Players who installed Minecraft 26.3 recently get no sound and no title panorama: the import stops with …/assets/indexes/34.json is not the pinned asset index and the launcher says the game will be silent. Reported by @ItsPotatoTime in #1076 (Prism Launcher), by pxpelillo on Discord, and very likely behind johhnyjefferson34133's and mrpatitas' no-sound reports in #1035 and #666.

Why

Mojang republished the 26.3 version JSON a fourth time. Its live copy (61fff131…) points at asset index 34 0c8f43b2…; the lock pinned 11f1aefe… → index e787e8af…. The two indexes differ only in 142 minecraft/lang/*.json objects (non-English translations), exactly like the three earlier republishes. A launcher keeps one indexes/34.json, the last it downloaded, so:

  • official launcher, fresh install: its 26.3.json (61fff131) was unknown to the lock, so the launcher linked the pinned JSON from Mojang, whose index SHA-1 no longer matched the 34.json on disk;
  • Prism Launcher (no versions/26.3/26.3.json): same mismatch.

This is not specific to Prism: every install made since the republish is affected.

How

  • research-lock.json: accept the live version JSON (61fff131), and add accepted_asset_index_sha1 with the indexes of every accepted 26.3 version JSON (abfaa525, 1e4e4a68, 0c8f43b2), all read from Mojang's piston-meta.
  • horizon-prepare (sounds.rs launcher_assets): an index the lock knows is used quietly; an index it doesn't know (the next republish) is still used, with one log line, because every object copied from it is checked against its own SHA-1 (launcher_object / import_copy). The sounds import now requires minecraft/sounds.json in the index, so a bogus index fails loudly instead of "importing" nothing.
  • tools/lab.py: the same rule for the dev tools.

Of the two options in #1076 this does both: the pin list keeps known republishes silent and documented, and the fallback keeps sound working for players between a Mojang republish and a Horizon release. Ludovic: if you'd rather keep unknown indexes strict, drop the fallback branch in launcher_assets; the pins alone fix today's case.

The Unifont part of #1076 is the stacked PR on top of this one.

Proof

Real data: a launcher folder built from Mojang's live 34.json and the real 26.3 sound files (4962 objects, each verified against the index):

launcher folder lock result
Prism-like (pinned 26.3.json, live 34.json) this branch Sound assets ready: 4962 files, 377.3 MB
same main's lock, this code the "does not know yet (sha1 0c8f43b2…)" line, then Sound assets ready: 4962 files
official (live 26.3.json 61fff131) this branch Sound assets ready: 4962 files, 377.3 MB
same main error: …26.3.json is a 26.3 version file Horizon does not know yet (sha1 61fff131…)

Self-check (Mac mini):

cargo fmt --all --check                                         OK
set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings   OK (exit 0)
cargo test -p horizon-prepare                                   23 passed (new: republished_asset_indexes_still_give_sounds, the_index_must_hold_the_sounds)
python3 -m unittest tests.test_lab                              16 passed
tools/parity.py ambient_sound fire_starter_sound music situational_music sound_engine sound_event
                                                                6 passed (ambient_sound 101s, fire_starter_sound 82s, music, situational_music, sound_engine, sound_event)

tools/parity.py --changed origin/main selects all 325 harnesses (every harness reads research-lock.json); the lock change only adds entries to two accepted lists and leaves manifest_sha1 alone, so the full set is left to CI's parity job.

Needs Ludovic

  • The policy choice above (fallback on or off).
  • Players get this with the next game release (the version's own horizon-prepare and lock do the import).

Part of #1076; likely fixes the no-sound reports in #1035 and #666 (asked the reporters to confirm).

🤖 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/1091 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/republished-asset-index` --- ### 📝 Commits (1) - [`3ac4d26`](https://github.com/horizon-rust/horizon/commit/3ac4d26cd0439b204e5d837d8b728ee9ee8d433b) Prepare: accept Mojang's republished 26.3 asset indexes (sounds, panorama) ### 📊 Changes **4 files changed** (+108 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-prepare/src/artifacts.rs` (+15 -5) 📝 `crates/horizon-prepare/src/sounds.rs` (+77 -12) 📝 `research-lock.json` (+9 -2) 📝 `tools/lab.py` (+7 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Players who installed Minecraft 26.3 recently get **no sound and no title panorama**: the import stops with `…/assets/indexes/34.json is not the pinned asset index` and the launcher says the game will be silent. Reported by **@ItsPotatoTime** in #1076 (Prism Launcher), by **pxpelillo** on Discord, and very likely behind **johhnyjefferson34133**'s and **mrpatitas**' no-sound reports in #1035 and #666. ## Why Mojang republished the 26.3 version JSON a fourth time. Its live copy (`61fff131…`) points at asset index 34 `0c8f43b2…`; the lock pinned `11f1aefe…` → index `e787e8af…`. The two indexes differ only in 142 `minecraft/lang/*.json` objects (non-English translations), exactly like the three earlier republishes. A launcher keeps one `indexes/34.json`, the last it downloaded, so: - official launcher, fresh install: its `26.3.json` (`61fff131`) was unknown to the lock, so the launcher linked the pinned JSON from Mojang, whose index SHA-1 no longer matched the `34.json` on disk; - Prism Launcher (no `versions/26.3/26.3.json`): same mismatch. This is not specific to Prism: every install made since the republish is affected. ## How - `research-lock.json`: accept the live version JSON (`61fff131`), and add `accepted_asset_index_sha1` with the indexes of every accepted 26.3 version JSON (`abfaa525`, `1e4e4a68`, `0c8f43b2`), all read from Mojang's piston-meta. - `horizon-prepare` (`sounds.rs` `launcher_assets`): an index the lock knows is used quietly; an index it doesn't know (the next republish) is still used, with one log line, because every object copied from it is checked against its own SHA-1 (`launcher_object` / `import_copy`). The sounds import now requires `minecraft/sounds.json` in the index, so a bogus index fails loudly instead of "importing" nothing. - `tools/lab.py`: the same rule for the dev tools. Of the two options in #1076 this does both: the pin list keeps known republishes silent and documented, and the fallback keeps sound working for players between a Mojang republish and a Horizon release. **Ludovic:** if you'd rather keep unknown indexes strict, drop the fallback branch in `launcher_assets`; the pins alone fix today's case. The Unifont part of #1076 is the stacked PR on top of this one. ## Proof Real data: a launcher folder built from Mojang's live `34.json` and the real 26.3 sound files (4962 objects, each verified against the index): | launcher folder | lock | result | |---|---|---| | Prism-like (pinned `26.3.json`, live `34.json`) | this branch | `Sound assets ready: 4962 files, 377.3 MB` | | same | main's lock, this code | the "does not know yet (sha1 0c8f43b2…)" line, then `Sound assets ready: 4962 files` | | official (live `26.3.json` `61fff131`) | this branch | `Sound assets ready: 4962 files, 377.3 MB` | | same | main | `error: …26.3.json is a 26.3 version file Horizon does not know yet (sha1 61fff131…)` | Self-check (Mac mini): ``` cargo fmt --all --check OK set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings OK (exit 0) cargo test -p horizon-prepare 23 passed (new: republished_asset_indexes_still_give_sounds, the_index_must_hold_the_sounds) python3 -m unittest tests.test_lab 16 passed tools/parity.py ambient_sound fire_starter_sound music situational_music sound_engine sound_event 6 passed (ambient_sound 101s, fire_starter_sound 82s, music, situational_music, sound_engine, sound_event) ``` `tools/parity.py --changed origin/main` selects all 325 harnesses (every harness reads `research-lock.json`); the lock change only adds entries to two accepted lists and leaves `manifest_sha1` alone, so the full set is left to CI's parity job. ## Needs Ludovic - The policy choice above (fallback on or off). - Players get this with the next game release (the version's own `horizon-prepare` and lock do the import). Part of #1076; likely fixes the no-sound reports in #1035 and #666 (asked the reporters to confirm). 🤖 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 16:01:00 +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#3040
No description provided.