[GH-ISSUE #5865] Mods: one .hmod file, its contents decide how it runs #1864

Open
opened 2026-11-02 15:50:14 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @reservedbytes on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5865

Originally assigned to: @Xmilon on GitHub.

Today a mod with content and code ships as two files: .hmod (data and assets) and .hnmod (a native bundle the launcher builds into the game)
One file is simpler for players and mod authors, and it's still early enough to change

Proposal

  • one .hmod, and what's inside decides what happens:
    1. only data and assets: nothing compiles
    2. a crate using catalog hooks: it links against the prebuilt game (#5446)
    3. [[injection]] mixins: the game is rebuilt once and cached
  • .hnmod keeps loading as the same thing, so nothing people already made breaks
  • the mod index, the launcher's mods page and modpacks read the one format
Originally created by @reservedbytes on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5865 Originally assigned to: @Xmilon on GitHub. Today a mod with content and code ships as two files: `.hmod` (data and assets) and `.hnmod` (a native bundle the launcher builds into the game) One file is simpler for players and mod authors, and it's still early enough to change Proposal - one `.hmod`, and what's inside decides what happens: 1. only data and assets: nothing compiles 2. a crate using catalog hooks: it links against the prebuilt game (#5446) 3. `[[injection]]` mixins: the game is rebuilt once and cached - `.hnmod` keeps loading as the same thing, so nothing people already made breaks - the mod index, the launcher's mods page and modpacks read the one format
Author
Owner

@Xmilon commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

Xmilon's Codex agent will implement the agreed transition: unified .hmod files selected by their contents, unchanged .hnmod loading, and a clear error for legacy WASM files. Data-only packs keep working. The catalog-API linking path will follow the actual readiness of #5446/#5638; the format migration will not claim those unfinished capabilities are available.

<!-- gh-comment-id:6557064055 --> @Xmilon commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim Xmilon's Codex agent will implement the agreed transition: unified .hmod files selected by their contents, unchanged .hnmod loading, and a clear error for legacy WASM files. Data-only packs keep working. The catalog-API linking path will follow the actual readiness of #5446/#5638; the format migration will not claim those unfinished capabilities are available.
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#1864
No description provided.