[GH-ISSUE #1076] Prepare: Prism's republished 26.3 asset index blocks the panorama and sounds #301

Closed
opened 2026-11-02 15:38:02 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @ItsPotatoTime on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1076

horizon-prepare refuses Prism's 26.3 asset index, so the title panorama and the sounds cannot be imported from a Prism install. The images themselves are fine: Prism's asset store holds all seven minecraft/textures/gui/title/background/panorama_*.png objects, and each one matches its SHA-1 in the index.

The stop is in launcher_assets in crates/horizon-prepare/src/sounds.rs, which requires assets/indexes/34.json to hash to the assetIndex.sha1 in the version JSON, e787e8af.... Prism's 34.json hashes to 0c8f43b2..., a republished index for the same id. horizon-prepare --prepare therefore keeps the gray 1x1 placeholders extracted from the client jar, horizon-prepare panorama fails with "is not the pinned asset index", and horizon-prepare sounds cannot import that version's sounds either. What players see is Horizon's flat backdrop colour (96, 110, 111) instead of the panorama.

There are two ways to unblock it, and the maintainers should pick one. Accept an index with the same id when every object being imported verifies against its own SHA-1 from that index; this no longer authenticates the index file itself. Or pin accepted index hashes in research-lock.json the way republished manifests already are, so a maintainer confirms each republication before it works.

This came up while investigating the washed colours fixed in #1075, but it is independent of that change and of this issue.

Originally created by @ItsPotatoTime on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1076 `horizon-prepare` refuses Prism's 26.3 asset index, so the title panorama and the sounds cannot be imported from a Prism install. The images themselves are fine: Prism's asset store holds all seven `minecraft/textures/gui/title/background/panorama_*.png` objects, and each one matches its SHA-1 in the index. The stop is in `launcher_assets` in `crates/horizon-prepare/src/sounds.rs`, which requires `assets/indexes/34.json` to hash to the `assetIndex.sha1` in the version JSON, `e787e8af...`. Prism's `34.json` hashes to `0c8f43b2...`, a republished index for the same id. `horizon-prepare --prepare` therefore keeps the gray 1x1 placeholders extracted from the client jar, `horizon-prepare panorama` fails with "is not the pinned asset index", and `horizon-prepare sounds` cannot import that version's sounds either. What players see is Horizon's flat backdrop colour (`96, 110, 111`) instead of the panorama. There are two ways to unblock it, and the maintainers should pick one. Accept an index with the same id when every object being imported verifies against its own SHA-1 from that index; this no longer authenticates the index file itself. Or pin accepted index hashes in `research-lock.json` the way republished manifests already are, so a maintainer confirms each republication before it works. This came up while investigating the washed colours fixed in #1075, but it is independent of that change and of this issue.
Author
Owner

@ItsPotatoTime commented on GitHub (Oct 21, 2026):

One more import is affected, and accepting or pinning the index will not fix it on its own. The default font's Unifont data never gets copied. The client jar ships an empty assets/minecraft/font/include/unifont.json, while the real provider list and unifont.zip, unifont_jp.zip and unifont_pua.zip (about 1.9 MB together) come from the asset index. horizon-prepare only copies assets out of the jar, so prepared resources have no Unifont glyphs. Servers that use a ▸ separator show a missing-glyph box instead, which is how this came up while fixing HUD text formatting. The launcher's own prepared version has the same empty include and no zips, so this is not specific to a dev checkout.

Whatever the index policy decision is, an import step for minecraft/font/* during --prepare (with a repair path like panorama) is needed separately. The five index objects are present here and match their SHA-1s.

<!-- gh-comment-id:6315148342 --> @ItsPotatoTime commented on GitHub (Oct 21, 2026): One more import is affected, and accepting or pinning the index will not fix it on its own. The default font's Unifont data never gets copied. The client jar ships an empty `assets/minecraft/font/include/unifont.json`, while the real provider list and `unifont.zip`, `unifont_jp.zip` and `unifont_pua.zip` (about 1.9 MB together) come from the asset index. `horizon-prepare` only copies assets out of the jar, so prepared resources have no Unifont glyphs. Servers that use a `▸` separator show a missing-glyph box instead, which is how this came up while fixing HUD text formatting. The launcher's own prepared version has the same empty include and no zips, so this is not specific to a dev checkout. Whatever the index policy decision is, an import step for `minecraft/font/*` during `--prepare` (with a repair path like `panorama`) is needed separately. The five index objects are present here and match their SHA-1s.
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

🤖 Agent: another report on Discord (pxpelillo, 2026-10-21): no sound in game, and during import the launcher says the game will be soundless. Same cause as this issue, it seems (the asset index used at import).

<!-- gh-comment-id:6317993356 --> @ludovic111 commented on GitHub (Oct 21, 2026): 🤖 Agent: another report on Discord (pxpelillo, 2026-10-21): no sound in game, and during import the launcher says the game will be soundless. Same cause as this issue, it seems (the asset index used at import).
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

Claimed by ludovic on Discord (GitHub: ludovic111), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1076).

<!-- gh-comment-id:6319358686 --> @ludovic111 commented on GitHub (Oct 21, 2026): Claimed by `ludovic` on Discord (GitHub: `ludovic111`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #1076). <!-- kira:work -->
Author
Owner

@ludovic111 commented on GitHub (Oct 21, 2026):

🤖 Agent: fix in #1091 (asset index) and #1092 (Unifont import, stacked on it). The cause is wider than Prism: Mojang republished the 26.3 version JSON again (live sha1 61fff131…, asset index 0c8f43b2…, only 142 translation files differ), so every install made since then failed the pinned-index check, official launcher included. #1091 pins the new hashes and, for a future republish, still uses an unknown index with a log line, since each copied object is checked against its own SHA-1. Thanks @ItsPotatoTime for the precise report and the Unifont find.

<!-- gh-comment-id:6320036309 --> @ludovic111 commented on GitHub (Oct 21, 2026): 🤖 Agent: fix in #1091 (asset index) and #1092 (Unifont import, stacked on it). The cause is wider than Prism: Mojang republished the 26.3 version JSON again (live sha1 `61fff131…`, asset index `0c8f43b2…`, only 142 translation files differ), so every install made since then failed the pinned-index check, official launcher included. #1091 pins the new hashes and, for a future republish, still uses an unknown index with a log line, since each copied object is checked against its own SHA-1. Thanks @ItsPotatoTime for the precise report and the Unifont find.
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#301
No description provided.