[PR #1640] [MERGED] Launcher: Horizon modpacks from the registry, each its own profile #3654

Closed
opened 2026-11-03 04:11:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-horizon-modpacks


📝 Commits (3)

  • dbdc038 Launcher: Horizon modpacks from the registry, each its own profile
  • 5680da9 Merge feat/launcher-horizon-tab (main merged) into feat/launcher-horizon-modpacks
  • ceff5a2 Launcher: installing a taken-down registry mod says it was taken down, and why

📊 Changes

9 files changed (+509 additions, -19 deletions)

View changed files

📝 docs/mod-browser.md (+8 -1)
📝 launcher/src/browser/horizon.rs (+64 -14)
➕ launcher/src/browser/horizon/pack.rs (+294 -0)
📝 launcher/src/browser/horizon/tests.rs (+3 -3)
📝 launcher/src/cli.rs (+39 -1)
📝 launcher/src/main.rs (+3 -0)
📝 launcher/src/modpacks.rs (+8 -0)
📝 launcher/src/modpacks_page.rs (+80 -0)
📝 launcher/src/mods_page.rs (+10 -0)

📄 Description

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

Stacked on #1638 (the Mods page's Horizon source); review that first.

What

Horizon modpacks (.hpack) from the registry, each played as its own profile (browser/horizon/pack.rs).

  • Under Modpacks with the Horizon source, a registry pack shows with its mods and what each may do.
  • Install puts it in horizon-packs/<id>/: the checked pack, pack.json, and home/, the profile's game folder. Each of its mods is downloaded and checked like any registry mod, pinned to the pack's version and SHA-256, and turned on or off as the pack says. Its overrides are copied on the first install only, so the player's changes survive updates. A pack whose mod was taken down installs nothing and leaves nothing behind.
  • The Modpacks tab lists installed registry packs with Play and Remove (confirmed). They play through modpacks::apply_profile, with their own HORIZON_HOME, taken-down mods turned off first.
  • CLI: mods install --source horizon <pack>; modpack list|play|remove see registry packs.

Based on main with #1576 (virtualized mod lists): the registry packs sit above the imported packs' culled report, which is measured again whenever the Modpacks tab reads its lists.

Checked

  • Launcher tests: 124 pass (2 new: a pack installs as a profile with its mods turned as it says, its overrides once and not over the player's changes; a pack with a taken-down mod installs nothing).
  • Isolated folders, a local registry built by cargo horizon-mod registry build from the real coords-hud and a pack of it:
$ mods search --source horizon --kind modpack
Cozy  (cozy)  Horizon
  Coordinates and a calm render distance.
  Unsigned: the launcher checks its checksum only
$ mods install --source horizon cozy
Cozy 1.0.0 is installed as its own profile, with coords_hud 0.1.0.
Play it: horizon-launcher modpack play cozy
$ modpack list
Cozy 1.0.0  (cozy, from Horizon's registry)
  coords_hud 0.1.0
$ (profile)
horizon-packs
horizon-packs/cozy
horizon-packs/cozy/cozy-1.0.0.hpack
horizon-packs/cozy/downloads
horizon-packs/cozy/home
horizon-packs/cozy/home/horizon-mods
horizon-packs/cozy/home/horizon-mods.txt
horizon-packs/cozy/home/horizon-mods/coords_hud.hmod
horizon-packs/cozy/home/mod-browser
horizon-packs/cozy/home/mod-browser.json
horizon-packs/cozy/home/mod-browser/downloads
horizon-packs/cozy/home/options.txt
horizon-packs/cozy/pack.json
mod.coords_hud:true
renderDistance:8
$ mods list (main game folder)
Nothing installed from the browser yet: horizon-launcher mods search <text>
$ modpack remove cozy && modpack list
No modpack imported yet: horizon-launcher modpack import <pack>
  • The isolated launcher's Modpacks tab with the pack installed (screenshot in the agent's report).

pr_ready (tools/pr_ready.py --quick --base feat/launcher-horizon-tab on ludovics-mac-mini, against feat/launcher-horizon-tab at f602ad6fe, 2 min 48 s)

Check Result
Scope ⚠️ 9 files, +497 −16; 504 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (4 s)
launcher clippy ✅ (23 s)
launcher tests ✅ 124 passed (52 s)
Parity ➖ no harness affected
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/1640 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-horizon-modpacks` --- ### 📝 Commits (3) - [`dbdc038`](https://github.com/horizon-rust/horizon/commit/dbdc0389fe9ce9d46911f7f0b8bff12b83eb7607) Launcher: Horizon modpacks from the registry, each its own profile - [`5680da9`](https://github.com/horizon-rust/horizon/commit/5680da9834b259735ffa32d030c13f5c34bcf94b) Merge feat/launcher-horizon-tab (main merged) into feat/launcher-horizon-modpacks - [`ceff5a2`](https://github.com/horizon-rust/horizon/commit/ceff5a2110bfcaf460898909f08e532f19f767e2) Launcher: installing a taken-down registry mod says it was taken down, and why ### 📊 Changes **9 files changed** (+509 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `docs/mod-browser.md` (+8 -1) 📝 `launcher/src/browser/horizon.rs` (+64 -14) ➕ `launcher/src/browser/horizon/pack.rs` (+294 -0) 📝 `launcher/src/browser/horizon/tests.rs` (+3 -3) 📝 `launcher/src/cli.rs` (+39 -1) 📝 `launcher/src/main.rs` (+3 -0) 📝 `launcher/src/modpacks.rs` (+8 -0) 📝 `launcher/src/modpacks_page.rs` (+80 -0) 📝 `launcher/src/mods_page.rs` (+10 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #1638 (the Mods page's Horizon source); review that first. ## What Horizon modpacks (`.hpack`) from the registry, each played as its own profile (`browser/horizon/pack.rs`). - Under Modpacks with the Horizon source, a registry pack shows with its mods and what each may do. - **Install** puts it in `horizon-packs/<id>/`: the checked pack, `pack.json`, and `home/`, the profile's game folder. Each of its mods is downloaded and checked like any registry mod, pinned to the pack's version and SHA-256, and turned on or off as the pack says. Its overrides are copied on the first install only, so the player's changes survive updates. A pack whose mod was taken down installs nothing and leaves nothing behind. - The Modpacks tab lists installed registry packs with **Play** and **Remove** (confirmed). They play through `modpacks::apply_profile`, with their own `HORIZON_HOME`, taken-down mods turned off first. - CLI: `mods install --source horizon <pack>`; `modpack list|play|remove` see registry packs. Based on main with #1576 (virtualized mod lists): the registry packs sit above the imported packs' culled report, which is measured again whenever the Modpacks tab reads its lists. ## Checked - Launcher tests: 124 pass (2 new: a pack installs as a profile with its mods turned as it says, its overrides once and not over the player's changes; a pack with a taken-down mod installs nothing). - Isolated folders, a local registry built by `cargo horizon-mod registry build` from the real coords-hud and a pack of it: ``` $ mods search --source horizon --kind modpack Cozy (cozy) Horizon Coordinates and a calm render distance. Unsigned: the launcher checks its checksum only $ mods install --source horizon cozy Cozy 1.0.0 is installed as its own profile, with coords_hud 0.1.0. Play it: horizon-launcher modpack play cozy $ modpack list Cozy 1.0.0 (cozy, from Horizon's registry) coords_hud 0.1.0 $ (profile) horizon-packs horizon-packs/cozy horizon-packs/cozy/cozy-1.0.0.hpack horizon-packs/cozy/downloads horizon-packs/cozy/home horizon-packs/cozy/home/horizon-mods horizon-packs/cozy/home/horizon-mods.txt horizon-packs/cozy/home/horizon-mods/coords_hud.hmod horizon-packs/cozy/home/mod-browser horizon-packs/cozy/home/mod-browser.json horizon-packs/cozy/home/mod-browser/downloads horizon-packs/cozy/home/options.txt horizon-packs/cozy/pack.json mod.coords_hud:true renderDistance:8 $ mods list (main game folder) Nothing installed from the browser yet: horizon-launcher mods search <text> $ modpack remove cozy && modpack list No modpack imported yet: horizon-launcher modpack import <pack> ``` - The isolated launcher's Modpacks tab with the pack installed (screenshot in the agent's report). **pr_ready** (`tools/pr_ready.py --quick --base feat/launcher-horizon-tab` on ludovics-mac-mini, against feat/launcher-horizon-tab at f602ad6fe, 2 min 48 s) | Check | Result | | --- | --- | | Scope | ⚠️ 9 files, +497 −16; 504 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (4 s) | | launcher clippy | ✅ (23 s) | | launcher tests | ✅ 124 passed (52 s) | | Parity | ➖ no harness affected | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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-03 04:11:11 +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#3654
No description provided.