WIP: feat(mods): the Mods page and its store, a Home that plays with a Versions tab, profiles that carry the game's settings #268

Draft
HumanBean wants to merge 157 commits from HumanBean/LongshotLauncher:mods/launcher-pr into main
Owner

Longshot's mod API needs a launcher that can install, switch and trust mods per profile, and players asked for a launcher
that plays first and manages second. This pull request adds the mods side on top of #259's profiles (**Profile > Version

  • Save**): each profile's mods in its profile.json, the Mods page with its store and repositories, trust per profile,
    a simpler Home front page with a Save picker, and a cleaner look with a few MagicBean brand accents.

Stacked on #259 (feat/longshot-build, here at
yrosrqpp). Review from the commit after it: 129 commits. The profile basics (the profile folders, the Profiles,
Versions and Saves pages, Who's playing? and the migration) moved to #259; this pull request keeps the mods layer over
them. The game side is Longshot #2434 (mods, trust) on
#2286 (--profile, LONGSHOT_PROFILE).

What changed for players

Profiles and mods

  • The profile basics are #259's: a profile is a folder (profiles/<id>/ with profile.json, mods/, settings.ini,
    saves/), and Play on a builder's version is Longshot.exe --profile <folder>.
  • This pull request adds the mods layer: the profile's mods (order and on/off) in profile.json's mods, every per-mod
    key (granted, version, unknown ones) kept on rewrite; trust per profile in trust.json beside it (an older
    profile-trust.json is renamed once); copying a slot or backing up a save carries its mods data (modstore/).
  • Older (make_game.py) versions keep their per-version mod lists as before.

Home and Versions

  • Home is a front page, not a dashboard: the profile is in the title bar; Home holds the logo band, a Version
    dropdown, a Save dropdown and the buttons: Build (no version), Build vX again (its game is missing),
    Play and Update side by side and the same size (an update exists), or Play. One status line appears only
    when needed (the shared-saves warning, a refused save folder, a failed start).
  • Save picker: the profile's slots, with the last-played (or newest) selected, then Manage saves…; "New game" when
    there are none (Play opens the title screen); hidden on a version without start_slot, with one quiet line instead.
  • Versions (a tab): one card per version, with its channel, state, size and date, which profiles played it, and
    Update / Build it again / Set as default / Open folder / Delete; Add a build folder, Check for updates and Build another
    version.

Mods

  • A row per mod (tile, name, author, chips, switch); updates beside Refresh (Update all…).
  • Browse and install from the signed index; code is accepted only through the game's own warning, by SHA-256.
  • Edit repos…: add git or web repositories of mods. A repo serves index.json and its Ed25519 signature, checked
    against the key given when adding it; packages are checked by SHA-256 and go through the same install and trust flow.
    Ours is the default, listed always and can be turned off. Mods from another repo carry its name and the same warnings.
  • Add from file, Import from an emulator (under More ways to add), remove across profiles, a content-addressed store
    (pnpm-like), the dependency resolver at Play, Safe start, launch.json for longshot mod run, the modding docs offline
    and a game data reference made from the player's own game.
  • Built-in mods are no longer listed here: the game's own Mods tab shows them.

Look

  • The old clean dark launcher, with the brand as accents only: one stripe line at the top, lime for versions and good
    states, gold for focus, green for Play; Noto Sans Black (OFL, bundled) for each page's one big title. Flat cards, no
    glows.
  • NFC, Storage and the mod repos live under Settings, "On this PC, for every profile".
  • Polish: pages scroll to the window's foot; lists start under their tabs; long names wrap; long paths are cut in the
    middle with the full path in a tooltip; dropdowns in the launcher's colours; "versions", not "instances".

The builder's mods list

  • IBuilder.ModsList: make_game.py gets --mods; longshot-builder gets a list the launcher writes
    (.longshot-builder-mods/, --user) beside #259's flags, so only the code patches the Mods page shows on are built in.

Translations

  • German has every text. The other eleven full catalogs have every new text of this PR; their older untranslated texts
    (mostly the Mods page's) still show in English. Unused texts are dropped.

Testing

python3 -I tests/test_launcher_core.py --strict --longshot <Longshot main>, as CI runs it, on 9674064b:

  • dotnet build LongshotLauncher.slnx and the screenshots tool: 0 errors, 0 warnings.
  • Launcher core: 4497 checks passed (the profile mods layer, trust.json, the Save picker, PadChecks and every source
    check). Upscale ONNX: 25 passed. translations.py reports no faults.
  • Skipped, because Longshot main does not have their files yet: save editor fixtures, mod permissions, upscale
    recipes.
  • No game was built or run for these changes. Renders from the screenshot tool (1200x760 and 960x560, English and German,
    and the TV view) were checked each round.

Checklist

  • Each commit subject is a Conventional Commit, one concern per commit.
  • A change to the core comes with its check.
  • One package added, Microsoft.ML.OnnxRuntime 1.31.1 (MIT), for the upscale recipes' runner; one font added, Noto
    Sans Black (SIL OFL 1.1), with its licence. Lock files updated; a --locked-mode restore passes.
  • Windows and Linux from the same code: paths through Path, UTF-8 catalogs.
  • No game files, keys or anything made from them: the tests use fake tags, saves and SDKs.
  • Docs updated: README, docs/mods.md, docs/saves.md, docs/controller.md.
  • The three skipped contract checks pass. (They need the mod API's files on Longshot main.)
  • Rebased onto #259's newest head (yrosrqpp).
  • Played through the launcher against a game built from Longshot #2286 and #2434. (Not yet run.)

Why WIP

The three contract checks need the mod API on Longshot main, and the mods and save-slot paths have not yet been played
against a game built from Longshot #2286 and #2434.

🤖 Generated with Claude Code

Longshot's mod API needs a launcher that can install, switch and trust mods per profile, and players asked for a launcher that plays first and manages second. This pull request adds the mods side on top of #259's profiles (**Profile > Version + Save**): each profile's mods in its `profile.json`, the Mods page with its store and repositories, trust per profile, a simpler Home front page with a Save picker, and a cleaner look with a few MagicBean brand accents. **Stacked on [#259](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/259)** (`feat/longshot-build`, here at `yrosrqpp`). Review from the commit after it: 129 commits. The profile basics (the profile folders, the Profiles, Versions and Saves pages, Who's playing? and the migration) moved to #259; this pull request keeps the mods layer over them. The game side is Longshot [#2434](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2434) (mods, trust) on [#2286](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2286) (`--profile`, `LONGSHOT_PROFILE`). ## What changed for players ### Profiles and mods - The profile basics are #259's: a profile is a folder (`profiles/<id>/` with `profile.json`, `mods/`, `settings.ini`, `saves/`), and Play on a builder's version is `Longshot.exe --profile <folder>`. - This pull request adds the mods layer: the profile's mods (order and on/off) in `profile.json`'s `mods`, every per-mod key (`granted`, `version`, unknown ones) kept on rewrite; trust per profile in `trust.json` beside it (an older `profile-trust.json` is renamed once); copying a slot or backing up a save carries its mods data (`modstore/`). - Older (make_game.py) versions keep their per-version mod lists as before. ### Home and Versions - **Home is a front page, not a dashboard:** the profile is in the title bar; Home holds the logo band, a **Version** dropdown, a **Save** dropdown and the buttons: **Build** (no version), **Build vX again** (its game is missing), **Play** and **Update** side by side and the same size (an update exists), or **Play**. One status line appears only when needed (the shared-saves warning, a refused save folder, a failed start). - **Save picker:** the profile's slots, with the last-played (or newest) selected, then Manage saves…; "New game" when there are none (Play opens the title screen); hidden on a version without `start_slot`, with one quiet line instead. - **Versions** (a tab): one card per version, with its channel, state, size and date, which profiles played it, and Update / Build it again / Set as default / Open folder / Delete; Add a build folder, Check for updates and Build another version. ### Mods - A row per mod (tile, name, author, chips, switch); updates beside Refresh (Update all…). - Browse and install from the signed index; code is accepted only through the game's own warning, by SHA-256. - **Edit repos…:** add git or web repositories of mods. A repo serves `index.json` and its Ed25519 signature, checked against the key given when adding it; packages are checked by SHA-256 and go through the same install and trust flow. Ours is the default, listed always and can be turned off. Mods from another repo carry its name and the same warnings. - Add from file, Import from an emulator (under More ways to add), remove across profiles, a content-addressed store (pnpm-like), the dependency resolver at Play, Safe start, `launch.json` for `longshot mod run`, the modding docs offline and a game data reference made from the player's own game. - Built-in mods are no longer listed here: the game's own Mods tab shows them. ### Look - The old clean dark launcher, with the brand as accents only: one stripe line at the top, lime for versions and good states, gold for focus, green for Play; Noto Sans Black (OFL, bundled) for each page's one big title. Flat cards, no glows. - NFC, Storage and the mod repos live under Settings, "On this PC, for every profile". - Polish: pages scroll to the window's foot; lists start under their tabs; long names wrap; long paths are cut in the middle with the full path in a tooltip; dropdowns in the launcher's colours; "versions", not "instances". ### The builder's mods list - `IBuilder.ModsList`: make_game.py gets `--mods`; `longshot-builder` gets a list the launcher writes (`.longshot-builder-mods/`, `--user`) beside #259's flags, so only the code patches the Mods page shows on are built in. ### Translations - German has every text. The other eleven full catalogs have every new text of this PR; their older untranslated texts (mostly the Mods page's) still show in English. Unused texts are dropped. ## Testing `python3 -I tests/test_launcher_core.py --strict --longshot <Longshot main>`, as CI runs it, on `9674064b`: - `dotnet build LongshotLauncher.slnx` and the screenshots tool: 0 errors, 0 warnings. - Launcher core: 4497 checks passed (the profile mods layer, trust.json, the Save picker, PadChecks and every source check). Upscale ONNX: 25 passed. `translations.py` reports no faults. - **Skipped**, because Longshot main does not have their files yet: save editor fixtures, mod permissions, upscale recipes. - No game was built or run for these changes. Renders from the screenshot tool (1200x760 and 960x560, English and German, and the TV view) were checked each round. ## Checklist - [x] Each commit subject is a Conventional Commit, one concern per commit. - [x] A change to the core comes with its check. - [x] One package added, Microsoft.ML.OnnxRuntime 1.31.1 (MIT), for the upscale recipes' runner; one font added, Noto Sans Black (SIL OFL 1.1), with its licence. Lock files updated; a `--locked-mode` restore passes. - [x] Windows and Linux from the same code: paths through `Path`, UTF-8 catalogs. - [x] No game files, keys or anything made from them: the tests use fake tags, saves and SDKs. - [x] Docs updated: README, `docs/mods.md`, `docs/saves.md`, `docs/controller.md`. - [ ] The three skipped contract checks pass. *(They need the mod API's files on Longshot main.)* - [x] Rebased onto #259's newest head (`yrosrqpp`). - [ ] Played through the launcher against a game built from Longshot #2286 and #2434. *(Not yet run.)* ## Why WIP The three contract checks need the mod API on Longshot main, and the mods and save-slot paths have not yet been played against a game built from Longshot #2286 and #2434. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
feat(translations): the longshot-build texts in the launcher's twelve full catalogs
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 6s
1799bcd254
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
feat(build): longshot-build's deltas applied with ZstdSharp (zstd patch-from, long window), the bases kept by the prune
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
d066db917a
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
feat(perf): a longshot-build version's performance statistics sent by its longshot-build perf-report, not perf_report.py
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 8s
dd2dcdebde
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
fix(build): longshot-build gets the licences the player accepted (a refusal shows the licence and builds again) and none of the PC's LONGSHOT_, RX_, A64_ variables; its name in one place
Some checks failed
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Failing after 44s
a78d73f1ae
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
refactor(build): the new builder is longshot-builder, as Longshot #2286 renamed it: its files, manifest, record, cache and texts
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 5s
00f01e9e6f
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
fix(storage): the shader caches and store are kept while longshot-builder runs, and Remove everything waits for a build
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 10s
15311afc35
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e2TsN4jgNUFQPfkAq8
translation_damaged (Longshot #2286, from #2305): a unit the compiler refused came out
different when made again from the same translation, so the PC's memory, processor or
drive changed what the build made. The builder compiled it again and went on; the
launcher now keeps the warnings a build said (BuildProgress.Warnings) and the Ready page
says this one in its own words (Problems.FromWarning). The other warnings stay in the
details, as before.

The error codes checked against build-events.md: game_folder_busy (another build
writing the same game folder), game_files_overlap (the game folder and the game files
one inside the other) and dump_damaged get the launcher's words; game_folder_link,
which the builder never says, is dropped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
The running check (Saves.RunningFrom) already compares the process name case-
insensitively: Windows' image name with .exe taken off, Linux's comm and argv[0]'s file
name, lowercased against the known names. So longshot-builder's game folder, which runs
longshot (Linux) and longshot.exe (Windows), is found as the 2.x Builder's Longshot.exe
was, and longshot-builder never counts as the game. These checks pin that for both
names on both systems.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
Longshot #2286 (xlkopyst, "a launcher's build settings are flags") takes them on every
command, a flag winning over LONGSHOT_CACHE, LONGSHOT_BUILDER_EXE and LONGSHOT_NGX_SDK,
which it reads for one more release. build, update and check now pass --cache (the
build files folder's longshot-builder/) and --builder-exe (the launcher), and a build
with DLSS --ngx-sdk when an earlier build fetched the SDK, in place of the three
variables. The environment scrub stays: every LONGSHOT_, RX_ and A64_ variable of the
PC is dropped, so a stray one of the three never reaches the builder either.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
chore(lang): the catalogs' left-over texts removed
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 15s
727613930b
Twelve catalogs (de, es, fr, it, ja, ko, nl, pl, pt-BR, ru, zh-Hans, zh-Hant) still
held four texts the launcher no longer shows ("Details" and three about the old
folder layout), which scripts/translations.py refuses. Only those entries are taken
out; every other line is as it was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SkKpc592GgxftLP8o
The launcher's side of Longshot's mods (Modding API plan M12, piece 1) starts in the core:

- Core/ModsList.cs: mods.json read and written byte for byte as Longshot's host/mods_list.c does (the same strict
  reading, field names, order and switch rules; unknown keys, entries of mods that are gone and cheats that are no
  switch kept as written), and the game's read_state/write_state ordering: a change of the launcher's goes onto the
  file as it is now, so a change the game's Mods tab made meanwhile stays.
- Core/Mods.cs: where the list is (beside the settings: the user folder given with --user, else the game folder; the
  game folder's list carried, longshot_mods.txt imported once, a file that is not a list kept as mods.json.bad), the
  mods folder found as host/mods.c finds it (one to four levels, - and _ left out, the game's order of names), each
  mod's kinds (files, code patches, code modules, cheats) and its patches against the build's exefs_patches.txt, to
  say when a build is needed. ModsPlace keeps the list's folder apart from the game folder, ready for a list per
  profile.
- Core/ModsAdd.cs: Add from file, a folder or a plain .zip of an emulator mod copied in as it is, the .zip refused
  whole for absolute paths, .., drives, links, encrypted or twice-named entries and past a size cap.
- Safe start: GamePlay.StartInfo(noMods) points HOS_MODS at a folder that is not there for one start.
- tests/launcher_core/ModsChecks.cs checks all of it with fake mods made of text files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mods on a version's row opens the page: the mods of its mods folder in the order the game loads them, each with
its switch, Move up and down, what it holds (files, code patches, a code module, cheats) and, for a mod that
changes the game's code, that it is built into the game and takes effect after the next build. Add a folder or a
.zip copies an emulator mod in (a first version until the game's archive reader is shared); Play without mods
starts the version once with every mod off, the list left as it is. The README says how it works.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The game on Longshot's #134 keeps mods.json beside the settings, in the --user folder every instance shares. The
launcher keeps each instance's list in its own game folder instead (ModsPlace.ForInstance), so the Mods page, Add from
file and Safe start act on the selected instance only, and names that list to the game at each start with
HOS_MODS_LIST, which the game has to read (a host change still to make). An update renames the same folder and keeps
both; Delete takes both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nothing in today's game reads HOS_MODS_LIST: it keeps mods.json beside the settings in the --user folder every
instance shares and copies a game folder's mods.json there once, so an instance's own list leaked into the shared
one and was then ignored. The launcher now knows what a build's game takes from its stamp: make_game.py writes
"mods_switches=HOS_MODS_LIST,HOS_NO_MODS" into longshot_version.txt for a game that reads them
(ModsCapabilities). Such an instance gets its own mods.json in its game folder, named to the game at each start;
any other edits the shared list the game reads (ModsPlace.For, Shared). Safe start uses HOS_NO_MODS=1 where the
game names it, else HOS_MODS at a folder that is not there. No list is written into an instance folder that was
deleted meanwhile. The README says how it is today, and its Core row reads again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AddFolder and AddZip turn every failure into a ModsFailure (the checks and the temporary folder were outside the
try), and the page's fire-and-forget commands catch everything, pickers included, clearing the problem after a
successful add. A .zip is refused for Windows device names, names ending in a dot or a space and < > | ? * ", and
for an entry that unpacks past 200 times its packed size, counted while unpacking; both adds check the drive has
room. A folder is checked again after the copy (links are left out), and neither an add nor Open makes a deleted
instance's folder again. The page says when the list is the one every instance shares. tests/fixtures/mods holds
mods.json texts with what host/mods_list.c writes of them, and the checks compare the launcher's output byte for
byte.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Profiles (Modding API M6): each profile of an instance is its own mods.json over its
one mods folder (Core/ModsProfiles.cs): the default's is the instance's mods.json,
the others' mods-profiles/<id>.json, named by an id a rename keeps (the game keys a
mod's profile storage by the list's path). The selected profile's list is named to
the game with HOS_MODS_LIST and given to a build with --mods, only for a game whose
stamp names the list switch. The Mods page shows and switches profiles: New (every
mod off), Copy, Rename, Delete.

The code warning: a mod with exefs code is off until the player accepts the game's
own warning, word for word; Accept writes "accepted": "fnv1a64:<hex>", the hash of
its code files as Longshot's code_hash makes it (vectors made by the game's own
code), and the build-before-asking migration is followed.

Browse and install (Modding API M12): the portal's index.json is checked as
LongshotMods' docs/verifying.md says (Ed25519 over the prefixed exact bytes, in pure
C# since .NET has none; trusted keys in ModPortalTrust and the settings; serial floor,
expiry and the last trusted index per instance). The portal's address is a setting,
empty by default, and the page says the portal is not open yet. Install resolves
with the game's resolver (ported, passing Longshot's tests/mod_vectors), shows the
set with permissions and the warning, fetches each package from the mirrors or the
portal, checks its hash and size, unpacks it with the checked unpacker into
mods/<owner>/<name> and turns it on in the profile's list. Updates are offered,
pins respected, withdrawn versions said. Folder mods are known by their mod.json.

Tests written for profiles, the hash vectors, RFC 8032 and a signed test index, the
manifest and resolver vectors, install planning and installing from a fake portal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the cold review of the profiles, code warning and portal commit:

- --mods is given only when the make_game.py about to run takes it, never because of the
  old build's stamp (a go-back to a builder before --mods would stop at the flag). The
  first switch to a list of its own carries the shared list into the instance's default
  profile, switches and "accepted" with it. One build list carries the code mods every
  profile accepted (mods-profiles/build.json), so changing profile is a restart.
- The migration from builds before the warning follows host/mods.c built_before exactly:
  any "# exefs_patches.txt " header, the more-than-four-tabs check on every line, lines
  keyed by mod, file and hash. Atmosphere patch sets are mods, their patch files hashed
  in place; links to nothing are no files. Vectors made by the game's own code.
- Plan and Updates take this game's release and Modding API version (from its stamp) and
  a "longshot" dependency, so no update replaces a working version with one the game
  turns off.
- Installs are all or nothing: every package fetched and checked, then unpacked, then
  put in place, and taken out again on any failure; a restore that fails keeps the old
  version and says where. The package's own mod.json, read strictly, must ask for and
  need what the index says; the index's manifests are read strictly too, and a string
  that is not whole characters is a refusal (the last trusted index is used).
- Unpacking counts the bytes read against the size each entry claims, its CRC-32, a cap
  (4 GiB for a package) and the drive's room, and refuses entries over the same bytes.
- Profiles: the store is saved before a list is deleted; a profile whose list is gone is
  dropped and said; a rebuilt store keeps the names the lists hold.
- The page reads and changes the list off the window's thread, one change at a time,
  with switches and the profile held during an install, and Stop for a read or install.
- Ed25519 keys not canonical or of small order are never trusted; revoked keys apply
  to the settings' keys too.

Tests written for each (not run).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The game's manifest rules gained "exports" (JavaScript names, not "default", at most 256,
a script's only) and "net" ("*" or wss:// and https:// origins, at most 64, a script's
only), each origin a net:<origin> permission unless optionalPermissions lists it; and a
net: permission over ws:// or http:// is refused. Ported from host/mod_manifest.c, with
Longshot's updated manifest and resolver vectors copied from mods/together (475d4d2e).
The install confirmation, a version's page and the update offer name the servers a mod
will talk to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The game's manifest rules gained an optional "author" and declared "settings" (toggle,
choice, slider, number, text, keybind and color, with help, restart, scope global,
profile or save, secret, and a keybind's {key, pad} default): ported from
host/mod_manifest.c with their value rules and the JSON text the game keeps, and
Longshot's manifest and resolver vectors copied from mods/settings (2e3d147b).

The Mods page shows a mod's author, and its settings of scope global and profile can be
changed there, each in the store the game keeps it in (host/modapi/storage.c: the
"<owner>/<name>+settings" store under the user folder's modstore, global/ or
profile/<list>/, <list> keyed by the list's path), written as the game writes it, with
Default to put one back. A secret's value is never shown, a setting of scope save is the
game's to change, a file a newer mod wrote is left alone, and nothing is changed while
that instance's game runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The check wanted "a______c" for a 9-character name, dropping the b; each of < > | ? * " becomes one _, so it is a_b_____c.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Longshot's mods/api-full (7a5d999d) renamed camera.control to camera.write, and its reader refuses a mod whose origins
together (net and the net: permissions, optional ones too) pass 64, and one holding raw game data (romfs.read,
memory.read) beside a way off the PC (net:, net.lan, session). The launcher's reader does the same, over the vectors
copied again from there. The install confirmation now says each permission in the words the game's prompt tells the
player (modapi/schema/api.toml's told), a server by its origin, and one with no words yet by its name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The launcher's manifest reader and Mods page lagged Longshot's final Modding API (mods/final, 347ef5e5). The reader now
passes its vectors (copied again): content modules with content.add (not "local", no entry needed), a system/ id refused
outside the system mods' own reading, and content.add, native, mods.inspect and mods.control known. Every permission the
game's prompt tells about is in Core/ModPermissions.cs with its words, risk and system flag (tests/test_launcher_core.py
compares it, and the reader's list, with a Longshot checkout that has modapi/schema/api.toml); a mod the player installs
with a system-only permission says so on its row in the game's words and is never installed or switched on by a plan.

A folder with mod.json now brings no code by its exefs or cheats folders, as in the game. Its code is its own: sites.toml
and native/, hashed as host/mods.c manifest_code_hash does (native_code_hash.json, made by the game's
nx2/mod_sites.py code_hash), with the game's warning and notes for native code and hook sites word for word, and Accept
writing that hash as "accepted". The test portal's test/code carries a sites.toml instead of an exefs folder.

The game folder's system_mods/ are shown first, under Built in, before Your mods: on as their manifest's "system" object
says until switched, an entry in mods.json only once the player switches one, never moved, and no switch for a required
one or one that does not read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The build now stamps the system mods its game trusts into longshot_version.txt (Longshot mods/lsync,
docs/dev/reference/mods.md). With the line, the Built in group shows the mods it names, in its order: each one
whose folder hashes to the line's tree hash (host/modapi/system.c tree_hash: dot files count; a link, no file,
more than 256 files, more than 8 folders deep or a file over 4 MB is never trusted) with the line's defaults, one
that does not as a row that never loads, and a folder it does not name not at all. A folder stamped before the
line keeps the manifests' defaults and decides nothing. system_tree_hash.json is made by nx2/system_mods.py.

From Longshot mods/gaps (45bdae89): the permission content.read with its words, and the manifest's saveFlags (at
most 256, switch or counter, storage needed) read as host/mod_manifest.c does, over its vectors copied again.
SOURCE.md no longer says the game's two native hashes differ: they agree since mods/lsync acf1cc80, whose vector
is this one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Jobs are read as Longshot's host/texture_packs.c writes them (modcache/upscale/<owner>__<name>/<key>/job.json),
each mod's newest; done.json is written last as upscale_done reads it. The model comes from its https link only
(a redirect away from https refused, HttpFetcher.RedirectRefusal), hashed as it comes and kept by its SHA-256,
hashed again before each run; the player is asked once per model, with its size. The job runs in the launcher's
own process again (--upscale-worker) at below-normal priority, one at a time, with progress and Cancel on the Mods
page; tiles overlap so no seam is drawn, alpha separate, model or keep. ONNX only (safetensors refused, said).
Microsoft.ML.OnnxRuntime 1.31.1 is pinned for App and tests/upscale_onnx (CPU build). A job needs each texture's
decoded picture ("in"), which the game does not write yet: such a job is shown and refused, said.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Longshot's mods/discord adds the system-only permission presence and system/discord, "enabled": "with-presence"
(the stamp's system_mods= flag 8, MODRT_SYSTEM_PRESENCE); mods/settingsreg adds the system-only settings.engine and
system/settings ("off", flags 0). Both branches, from mods/final-r3, also have gfx.world in api.toml.

- ModPermissions: gfx.world, presence and settings.engine in the game's words and risk, the last two system-only;
  ModResolver's reader knows presence and settings.engine. check_permissions takes a checkout that has not yet the
  system-only ones another branch adds (each is last in its branch), and nothing else differing.
- ModsSystem: SystemModEnabled.WithPresence from "with-presence" (listed with presence, never required, as
  modapi/generate.py takes it) and from flag 8 alone (9 to 15 refused, as test_mods_api_stamp.py's rule). The
  Discord status's mod is shown with no mod of the player's too, off whatever mods.json says (put_systems), with no
  switch and the game's row note "Runs while Discord runs on this PC and the Insert menu's Gameplay > Discord status
  is on." (host/modapi/loader.c); SetSystemEnabled refuses it. The row's note moves to SystemModShown.Note so the
  checks reach it.
- The shared vectors in mods/discord's and mods/settingsreg's tests/mod_vectors are the ones here, unchanged.
- Checks: both permissions refused for a mod the player installs (listed or optional), flag 8's parse, "with-presence"
  defaults, and the Discord row's text and its lack of a switch, stamped or not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
ModsEmulators scans Eden and the forks sharing its folder, Lichii, Eglantine, yuzu, suyu, sudachi,
citron, torzu (load/<title id>/<mod>/, qt-config.ini's load_directory, sdmc/atmosphere/contents) and
Ryujinx (mods/contents/<title id>/<mod>/, sdcard/atmosphere/contents), for title 0400486024DEC000 only,
without following links. Each mod says what it holds, its switch in the emulator (DisabledAddOns,
Ryujinx's games/<title id>/mods.json) and whether Longshot has it (its name, or the same files).
Import copies through ModsAdd.AddFolder under the emulator's name, keeps an emulator's off mod off,
and leaves code mods asking for their warning. ModsAdd.AddPackageFile takes a .lsmod by its own
mod.json (the game's rules); AddPath dispatches a folder, .zip or .lsmod.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
A third tab lists the emulators' mods for this game with their ticks, Scan again and Import; Add from
file takes a downloaded .lsmod beside a .zip; a folder, .zip or .lsmod dropped on the Mods page is
added. README says what is found and how it is imported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Longshot's mods/ipc (af15d41f) took the Discord status out of the engine: the
system-only permission ipc (unsafe) took presence's place, a manifest's "ipc"
holds endpoint patterns, a system mod's setting may name a "legacyOption",
"with-presence" (flag 8) is gone and 8 reserved, and system/discord is an
"always" system mod (flags 3) with its own settings.

- ModPermissions: presence dropped, ipc added in its place with the game's words.
- ModManifest: "ipc" checked as host/mod_manifest.c and host/ipc_endpoint.h do
  (system mods only, 1 to 32 patterns, a runtime, the permission ipc, which
  needs them); ModSetting: "legacyOption" for a system mod's toggle, text or
  number. A player's mod naming either is refused by the reader.
- ModsSystem: flag 8 is no build's again; the Discord row is an "always"
  system mod with its switch (no special row, no switchless case).
- HookshotSettings keeps carrying discord_status=: the retired key's line is
  what system/discord's "enabled" takes once through its legacyOption.
- tests: system_discord.json (the game's mod.json), IpcChecks, the system mod
  and trust checks updated; mod_vectors checked against mods/ipc (unchanged).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Longshot's settings registry (mods/settingsreg, system/settings and its system-only settings.engine) is a pull request
of its own, after the Modding API's; the launcher takes its permission there. This one keeps the Discord status's
(system/discord, ipc) and nothing of the registry's:

- ModPermissions: settings.engine's row and its words go; ipc is the last system-only permission.
- ModResolver's reader no longer knows settings.engine: a mod naming it is refused as for any unknown permission,
  as the game without the registry refuses it.
- The checks: the system-only refusal is shown with mods.control, the system-only list is mods.inspect,
  mods.control and ipc, and the "off" system mod of the checks holds ui.window alone.
  tests/test_launcher_core.py check_permissions says why a checkout with settings.engine is the registry's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Longshot's mods/oxc (b91de913) compiles a mod's TypeScript as it loads it (oxc, host/modapi/ts.c): a mod ships its
src/ and no dist/, mod.json's entry and content name the .ts, .tsx or .mts sources, a library carries its published
declarations as mod.d.ts beside mod.json, and a system mod's src/ is shipped and hashed into the build's trust table.

- ModManifest: a content module may be .ts, .tsx or .mts too, refused otherwise in the game's words; the entry is
  kept, and TypeScript says the mod's script is sources the game compiles.
- The Mods page: a TypeScript script mod's chip says so, and a library's says whether it has its types (mod.d.ts:
  FoundMod.HasTypes). Add from file, a .lsmod and the portal's install take such a package as it is (their checks
  never looked at file types); a check installs one with src/main.ts, a .tsx, a .mts content module and mod.d.ts.
- System mods: TreeHash already hashes all an installed folder holds, src/ now among it; its vectors gain a
  TypeScript system mod's case from mods/oxc's nx2/system_mods.py, the other hashes unchanged.
- The shared vectors: resolve.json from mods/oxc (entries src/main.ts). Its manifest.json still wants content.ts
  refused, which its own reader takes: here that case is content.jsx, refused by both; Longshot's copy needs the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Longshot's mods/ipc (cdce343a) makes system mods libraries: any mod names one in its dependencies
("? system/discord >= 0.3.0"), a required one keeps the mod off while the player has it off (dependency-disabled), an
optional one runs either way with its calls refused (not-running), a range is against the system mod's own version,
and a system/ dependency is never fetched. The launcher now decides what the game's next start will, with the game's
resolver (ModResolver, which passes mods/ipc's resolve.json, its system cases among them):

- ModsDeps: the resolver's input as host/modapi/loader.c modrt_resolve and host/mods.c put_systems make it (the
  folder's manifest mods, the first folder of an id by name; the trusted system mods first in the list with their
  switches; then the player's mods that are on, a mod whose code waits for its warning off, pins as the list says),
  each dependency's state, what switching a mod on with what it needs would do (Fix: installed mods and system
  mods, dependencies first; what is missing, not shipped, waiting for its warning, locked or at a version that does
  not fit), and which mods need a system mod that is off.
- The Mods page: the load order, a box of the mods that are on and will not load (the game starts without them), and
  on each such row why in the resolver's words, "Switch on what it needs" (ModsState.SetManyEnabled, one write) and
  "Get what it needs…" (the portal's install with the mod kept at its version); a built-in mod that is off says
  which mods need it; an optional dependency on one says what runs without it.
- Play says first which mods that are on will not load. The game never refuses a start over a dependency, so
  neither does the launcher.
- Installs (ModsInstall.Plan): a required system/ dependency is switched on when it is off and the player may
  switch it, and said when this version does not ship it or not at a version that fits; an optional one is left;
  the last check resolves with the system mods as the game will. A system mod's step writes only its switch.
- System mods' legacySwitch (mods/ipc): system/discord's old discord_status line of longshot_options.ini is its
  switch while mods.json has no entry for it, as put_systems takes it (the first line that is 0, false, 1 or true);
  the page says when it is, and the "system" object takes the key as modapi/generate.py does. ModsPlace carries
  the settings file the game reads (LauncherService.OptionsFileOf).
- A folder mod in an owner's folder that is not where its id goes is no mod (host/modapi/loader.c folder_matches),
  so a dependency on its id is missing, as in the game.
- The shared vectors: resolve.json is mods/ipc's with mods/oxc's entries (the two branches touch different cases;
  merged line by line), and system_discord.json is mods/ipc's at cdce343a (version 0.3.0, its exports, the switch's
  legacySwitch in place of the "enabled" setting, modsMaySet).

Not decided here, and said where it matters: a .lsmod left in the mods folder (the game reads it; the launcher always
unpacks), a hook-site mod held for another game build, and the features this game's build has (the game checks at
its start).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The game takes a mod's code acceptance only as "sha256:" in the trust file beside its list
(Longshot's host/mods_trust.c) and ignores "accepted" in mods.json, so the launcher's
warning counted for nothing.

- Core/ModsTrust.cs: the trust file's place (mods_trust_path), the values it takes and its
  edit, byte for byte as the game writes it (tests/fixtures/mod_vectors/trust.json, made by
  compiling Longshot's mods_trust.c); written in place (the sandbox's rule is on the file),
  read again and done once more when the broker wrote it meanwhile.
- Core/ModsCode.cs: SHA-256 code hashes (code_hash.json and native_code_hash.json from
  Longshot's mod-api 66984acf9a99); no FNV-1a 64 left in acceptance.
- Accept, install and the build list (build-trust.json) read and write acceptance there;
  profiles copy and delete their trust file with their list.
- Install writes no "granted": the plan lists what the game will ask for when the mod is
  turned on (question 4).
- Add from file of a .lsmod of an installed mod asks first, matched against the signed
  index the instance last trusted (ModIndex.Package), and keeps none of the old grants
  (audit L10). The unpacker refuses Windows short names and combining marks or names not
  in NFC, as the game's archive reader does.
- Browse reads https://mods.longshot.magicbean.dev by default; ModPortalTrust has the active
  and cold key slots, empty until the portal's keys are made, and nothing is fetched while
  no key is trusted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/mods.md: the files in the game folder and who writes them (the list, the trust file,
profiles, the portal's state), an install from the portal and what it writes (no grant;
the code acceptance in the trust file), Add from file of a .lsmod (matched against the
index, asked before it replaces, no old grant kept), and what is left for the game to ask.
README's Mods section says the same in short.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The launcher changes an instance's list while its game runs (a switch, an install, a pin),
and moved a new file over it. A confined game's sandbox grants it the list it found at its
start (Landlock's rule and the AppContainer's entry are on that file: Longshot's
docs/dev/reference/sandbox.md), so after such a write the running game could no longer
read or write its own list.

Core/InPlaceFile.cs holds the rule the trust file already kept: read, change, check the
file is still what was read, write it in place, read it back, and make the change once more
from the file as it is then when the game wrote it meanwhile. ModsFile.Change applies a
change onto the list as it is now; the switches, Accept, a pin, an install and Add from
file's grants go through it. A file that is not a list is still kept aside as .bad.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Core/ModsRemove.cs: Plan says which profiles list the mod (and have it on) and which
installed mods list it among their dependencies (needs it, or runs without it); Remove
moves its folder aside and deletes it (an owner's folder it leaves empty too), takes its
entry out of every profile's list, and its unsafe grants out of their trust files. Its
settings and storage are kept. The Mods page asks with that question before anything is
deleted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Core/ModsBrowse.cs: the list searched and filtered by the index's categories; mods of
  the unsafe tier (the signed index's tier) out of sight until Show unsafe mods is ticked,
  which says what they can do; an install that would fetch one is refused until then.
- Install never accepts code (audit N14): ModsInstall.RunAsync takes no acceptance. A mod
  built into the game is installed off its code, and the page then shows the game's own
  warning for it (ModsCode.Warning, word for word with host/mods.c hos_mod_code), whose
  Accept is its own step. The plan's own-words warning and "Accept and install" are gone.
- The TV view: the code warning, Replace and Remove questions are c:Pad.Scope, which keeps
  the controller in them as a dialog does (MainWindow.PadScope); the focus goes to their
  safe button when they open, and B presses it. Browse's order: search, category, the
  Unsafe tick, the list. tests/test_launcher_core.py checks the questions' scope and that
  Browse never accepts code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Audit N4's fix: a replaced mod's "version" pin (in every profile's list) would turn the
new copy off, so it goes with the grants; and a downgrade is said in the question, never
done silently.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The launcher's reader lacked discord.status and actors.spawn, so it refused packages the
game takes (audit item 6). tests/fixtures/mod_vectors/permissions.json holds Longshot's two
lists at mod-api 66984acf9a99 (make_permissions.py): api.toml's [[permission]], which the
game's prompt and grants use (host/modapi/perms.c), and host/mod_manifest.c's PERMISSIONS,
which its reader takes. ModPermissions.All is the first, with its words (actors.write's and
memory.write's new text), and ModManifest's Known the second; PermissionChecks reads them.
The reader also takes ipc and discord.status as ways off the PC beside romfs.read and
memory.read, and actors.spawn as shared in multiplayer, as the game's does. manifest.json
is Longshot's again, byte for byte.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A launcher build of Longshot #1958 failed: InstallPullRequest took only the source's top
folders the nightly's tools had, and the nightly has no modapi/ or game/, so
host/modapi/native_core.h could not find ../../modapi/native/longshot_native.h, and the
lift found no site table ("hooks: no site table") and dropped the hook sites. And with host/
replaced, the nightly's prebuilt host/ts/lib was dropped.

- Toolchains.ShippedPaths reads the source's own list, scripts/builder_package.py's
  tracked(...) in package(), so a folder a later release ships is taken too; with none,
  ShippedFallback (that list at Longshot mod-api 66984acf9a99: game/, modapi/system,
  modapi/native, modapi/examples, packages and templates, docs/modding and docs/user with
  the rest). A path it ships is taken even when the nightly's tools lack its folder; the
  rest of such a folder (modapi/tests) stays out.
- In a folder the source replaced, the nightly's prebuilt files the source does not have
  (a library, an archive, a stamp: host/ts/lib/linux/liblongshot_ts.a) are kept, copied
  and never linked, as third_party/'s helpers were; a source file the pull request
  removed stays removed.
- PullRequestChecks: a fake nightly without modapi/ and game/ and a pull request's source
  with them, its own list, a prebuilt library, and the fallback.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Longshot's mod-api (a334ed6190d9) has one permission list: host/mod_manifest.c's reader takes
the schema's names (LSAPI_PERMISSION_NAMES) and net:<origin>, no more. gfx.textures,
content.patch, session, save.flags, romfs.provide and exefs are in the schema with their
words and tiers (exefs unsafe), and the ui.* wildcard is gone, so ui.windows is refused.
ModPermissions.All is that list (permissions.json from the commit), the reader's own Known
list is gone (PermissionKnown reads All), and the words for the six are the prompt's.
manifest.json, resolve.json and native_code_hash.json are Longshot's again at that commit,
code_hash.json made again over it (the same hashes).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Longshot mod-api a334ed6190d9 moved what a release ships: modapi/native to host/modapi/native,
game/ to host/game/sites, modapi/{system,examples,packages,templates} and docs/modding to
assets/modding. Toolchains.ShippedFallback is that commit's scripts/builder_package.py list
(gpu, host, nx2, scripts, third_party, assets/profiles, assets/longshot.png,
assets/modding), and docs/ is no longer taken whole: a release ships none of it. The
fixtures in PullRequestChecks use the new paths and that commit's list; the comments and
docs naming Longshot's docs/modding name assets/modding/docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
host/mods_trust.c now has exefs among the unsafe tier's grants, and the broker keeps for a
confined game only what narrows the file (a grant taken back): its yes to code or to the
unsafe tier lasts its run. The launcher's writes are unchanged in kind ("accepted", and
"granted": [] to take grants back), so its Accept is what keeps a code mod's acceptance.
ModsTrust.UnsafeNames takes exefs; trust.json is made again by make_trust.py over that
commit, with the exefs grant's cases (taken now, refused before); docs/mods.md says who
writes the file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Made-up mods and a made-up portal index (LauncherService.ModIndexOverride: Browse reads it with nothing fetched). The Mods
page's right-column and Browse buttons grow with their text instead of clipping it, and Browse keeps clear of its scroll bar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Its switches were read from the empty settings' "" section, which an empty ini has not: the whole scan stopped on "The given
key '' was not present in the dictionary". Now its mods are found with their switch there not known. The screenshots' scene
no longer writes Eden a qt-config.ini to step around it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The Built in group read "by Longshot Ships with Longshot: …". Its author is now its own line (SystemModShown.Author), as a
player's mod's is, and the note is sentences only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Your mods showed lumen/brighter-skies for Brighter Skies. The row, its switch's and Remove's names and the code warning's title
show FoundMod.Title (the manifest's name, else the id); changes still name the mod by its folder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The prompt read "Remove pathfinder/ui-kit?" in bold, then "Remove pathfinder/ui-kit? Its folder is deleted…". The question
now starts with what it does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
It read "Source: https://… Updates are reviewed." with no full stop between the two.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Import from an emulator listed a 360 KB texture pack as "3 files, 0 MB". Durations.Size says KB below 1 MB (at least 1 KB),
for every size the launcher shows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The unsafe mod sorted last in the Interface category, below the window's edge. It is first now, with its Unsafe chip in sight.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The pages get more room on a 1080p or 1440p screen; a 1366x768 laptop opens it as big as its free area allows. The TV view
and a full screen window still scale the pages up from 1040x680, so their text stays as big. The screenshots draw every
scene at the new size, --small at the smallest and --lang in another language.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The page was a wall of small text: the tabs looked like links, built-in and the player's own mods ran together, and every note
was one long sentence. Now:

- The header names the version, with the profile picker on its right (New, Copy, Rename, Delete under it).
- Installed, Browse the mod portal and Import from an emulator are tabs, Installed with how many mods there are.
- Your mods come first, in load order, then Built into Longshot (Longshot's logo on each). Each mod is a row: a tile with
  its initials in a colour of its own (from its id, the same in Browse), its name, version and author, one line about it
  (the portal's summary when the index this instance trusts lists it, else what it holds), kind chips toned script, code
  and unsafe, and its switch with On or Off beside it. A mod that is off stands back.
- What needs a look is a calm amber box in the row, in the game's words; a dependency that will not load a red one with
  its fixes. The page's questions (the code warning, Remove, Replace) are boxes over the tabs, their safe button first.
- No mods yet: a drop zone offering Browse mods, Add a file… and From an emulator. The portal not open yet: the same, with
  Add a file….
- Beside the list: Add a mod (a dashed drop zone), Play (Play without mods, Open the mods folder) and Making mods in a box
  of its own.
- Browse: rows with the same tiles and chips, a mod's page with its tile, Install beside its name, its versions, and the
  plan as a checklist; Updates over the list only; the portal's address at the end.
- German for the page's words; the screenshots add mods-empty and mods-browse-closed; docs/mods.md says the page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The footer took a band of its own and covered the last row of a list. Mods, Settings, Saves, NFC, the backups and the save
editor now have a round Back arrow hung left of their title, which B and now Esc press, with B's glyph on it while a
controller is in use (the TV view, or once one was pressed). What the footer said moved under the title as a small muted
line (Settings' version and release notes, Saves' and the editor's backup note, NFC's folder note, the backups' folder) or
into the page (Mods: the list's path in the side's Play group); the save editor's Give, Start place and Copy slot moved to
its header. The content runs to the window's foot.

A controller's first press on a page with no main button goes to the control marked c:Pad.First: its main list or its first
setting. docs/controller.md says so; PadChecks checks each page's arrow is B's and named, and that no Done is left for B.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
New, Copy, Rename and Delete were four quiet links under the picker. The picker now has its label above it and a ⋯ joined to
its right, which opens a small menu over the page: New profile…, Copy this profile…, Rename…, then Delete… behind a line.
New, Copy and Rename ask for the name inline, its box focused; Delete asks once more and says the mods stay installed, and
the default profile cannot be deleted. The menu is a question of the page for a controller: its moves stay in it, it starts
on New profile…, and B (or Esc) closes it. A scope may now mark the control its focus starts on (c:Pad.First).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Browse said what unsafe mods are in a long red box. Now the first time the page opens, four short cards explain: what mods
are (each has a switch, and Play without mods), what the labels mean (Files, TypeScript, Library, a code patch, Unsafe, in
the rows' own chips, from the least to the most a mod can do), that the game asks for a script mod's permissions when it
is turned on, and where mods come from (Browse, a file, an emulator, and Making mods). Got it or Skip closes it, once per
launcher home (modsIntroSeen in settings.json). What do the labels mean? beside Your mods opens it again; Browse's long box
is now a line by Show unsafe mods, "Unsafe mods change the game's code. What does this mean?", and a ? beside the tick, both
opening the labels' card. The Unsafe chip and the game's code warning at Accept stay as they were.

A controller starts on Next, A goes on, B skips. German for its words; scenes for each card and the TV view.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Updates were a list at the top of Browse, away from the mods they update. Now the Installed tab says how many there are,
a line at its top offers Update all…, and each mod's row has Update to X.Y.Z, with what the new version asks for more, a
pin (and Unpin) or a withdrawn version said quietly on the row. The updates are worked out as Browse did (ModsInstall.Updates,
unchanged), from the index Browse read or else the one the instance last trusted. Update shows its plan first, as an install
does; Update all shows each update's plan in turn, the next once one is installed, and Cancel or a failure stops it. Browse
lists no updates any more.

German for its words; scenes for Installed with an update and the update's plan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
On Linux a scene's Windows path (C:\Users\Player\...) is one name in the current folder, which is there, so the home took
the build as deleted outside the launcher: home-row-opened, home-row-opened-second, home-go-back and settings-go-back
crashed on an empty list, and other home scenes showed "versions were deleted outside the launcher" instead of their
builds. Each scene now runs in a folder of its own and makes the folder of every build it registers, so they are drawn as
meant (already so on 07781e68: BuildRegistry.Gone and the window's Activated are older than this work).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The pages named their sections in small spaced capitals (YOUR INSTANCES, BUILDS FOLDER, WHAT TO GIVE) while the Mods page
used sentence case. Every one now reads as a name, in sentence case at 13 SemiBold, without the letter spacing: the home,
Settings, the build settings, saves, the save editor's questions, NFC, Hookshot's import and the backups. The catalogs keep
their translations under the new texts, in sentence case (German by hand); where a catalog already had the same words they
were one text already. INSTALL is now "Where it installs", so it is not the button's Install.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Settings was one long column where the update ticks sat under the folders and the sharing ticks ran into them. It now reads
in sections, each with its name: Launcher language; Updates (the channel for new builds, the launcher's own, and the two
update ticks with them); Folders (the builds folder and the build files, side by side); the applications menu on Linux;
and Sharing with the team (performance statistics and crash reports, each with what it sends). Same controls, same order
within each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The crash page had a footer of its own for Close and Copy for a bug report. Close is now the Back arrow beside its headline
(B and Esc press it), and the card's What you can do holds both actions: the fix the launcher knows (the driver page), as
the page's main button, and Copy for a bug report beside it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Hung in the window's margin, the arrow was cut off by the page's edge (its transition clips it), so it never showed. It now
stands at the start of the header and the title starts beside it; the margin style that did not help goes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Windows drew flat, thin buttons and Linux round ones, so the same pages looked different from one screenshot to the next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The header now stays put while the sections scroll beneath it (a line under it once they do); before, a scrolled section
showed under the title. Each tick says what it does in a few words, its explanation smaller under it, the long paragraphs
cut to one or two sentences with their facts. The launcher's version and Release notes moved from a stray line under the
title to About, at the end. German for the new words; the catalogs drop the texts no longer used.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
With no build yet the home was a narrow centred column in a big window, NFC tags oddly under Build and the version and its
needs in small grey lines. Now the hero says what Longshot does with Build and Built it already? beside it; a card names the
version a build makes, its channel and Change (or the check's progress and failure), and what it needs as a short list
(your own copy of the game; 15 to 30 minutes, once per version); and the saves and the NFC tags, which do not wait for a
build, are two tiles under them. Build stays the first press.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
- A row's Move up, Move down and Remove… (now a bin) show under the pointer or while one has the focus, so a controller
  still reaches them; the Remove… link on every row is gone.
- A mod whose code waits for the game's warning says it once, in one amber line, "Changes the game's code. Off until you
  accept its warning", with Review…, which shows the warning as turning it on does; its grey notes and its line of what it
  holds wait until then.
- The name is big (FastText) and a mod with no mod.json has its owner quietly beside it (local).
- One name for each chip, the intro's too: Script (TypeScript or JavaScript), Library, Files, Code patch, Unsafe (hook sites
  or native code).
- The title's line is "Mods for v3.1.0" (files-only mods switch while the game runs, so "at the next start" was wrong).
- The tab scrolls as one: the list and the side move together, so Making mods is never cut. Open the mods folder keeps its
  paths in its tooltip; Add a folder… says "a mod's folder", the docs say the rest. The updates line is one compact line
  beside the tab's quiet count.

German for the new words; docs/mods.md follows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The Installed tab shows its plain count with a small dot for updates (the line over the list says how many).
A row offering an update keeps what the update asks for in the button's tooltip and its plan, not half under it.
Making mods without an SDK says it in a few words, the reason in the tooltip; the Add rows take one line each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Its page in the docs and docs/mods.md name the button the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
One store per launcher home (<home>/mod-store), as pnpm keeps packages: each
mod version once, at <owner>/<name>/<version>-<hash prefix>/, read-only once
written (files; on Linux its folders too), listed in index.json with its id,
version, source, tree hash, code hash, package hash and size. A game folder's
mod folder is made of hard links to the stored files, else reflinks (FICLONE),
else copies, recorded per game folder in mods-store.json. A version is checked
against its hash before it is linked, and set aside when it changed. Clean-up
deletes what no game folder's record names and no outside link holds. On
Windows each stored file grants the game's AppContainer read on itself, as a
hard link has its file's security descriptor, not its folder's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
With the store (ModStore.Current), an install from the portal, Add from file
of a .lsmod or a .zip and Import from an emulator unpack or copy the mod into
the store, then make mods/<owner>/<name>/ of links to it, staged in a hidden
folder and moved in as before. An install takes a version the store holds by
the package the index names without fetching it again. An update stores the
new version and switches the folder to its links; the old version stays until
a clean-up. Remove deletes the links and runs the clean-up. A folder added as a
folder stays a real folder. Each game folder's mods-store.json records which
stored version a mod folder is and how its files are there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Each game folder's installed mods (a mod.json at mods/<owner>/<name>/ of its
id, no link, none of a mod being made's files) are put in the store, by hard
links of their own files where the disk allows, and their folder swapped for
the store's links. The swap is staged in hidden folders of mods/ and written
down in the game folder's record before the folder moves, so a start cut short
finishes it or puts the folder back. mods.json, the profiles and the trust
files are not touched; the stored code hash is checked to be the folder's.
Emulator mods, folders added as folders and mods being made stay in place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Checks over fake mods of text files: the store's layout and index, a game
folder's mod folder made of hard links, the reflink and copy fallbacks when a
link fails (the link call made to fail), a second folder sharing one stored
copy, an update switching the links and keeping the old version, the clean-up
keeping what a folder links to (and what it does not know links to) and
deleting the rest after Remove, a changed stored file set aside and its link
refused, an install from the portal taking a stored version without fetching,
and the migration cut short twice and resumed, mods.json and the trust file
untouched and accepted code still accepted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
A section on the mod store: its place and layout, its index, the hard links in
a game folder and why (the sandbox), the reflink and copy fallbacks, every
installed mod having its folder whatever the profile, what is never stored,
the check before a link, updates, Remove, the clean-up and the first start's
migration. The files table, Install, Add from file and Remove say the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The launcher's home opens its mod store (<home>/mod-store), whose clean-up
counts the builds' folders, and the window's start moves the builds' installed
mods into it in the background, unless a game is running.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Under Play, beside the list's path: what the mod store holds on the disk and
what of it no version uses, and Clean up the mod store, which deletes that and
says how much it freed. Measured off the window's thread when the page loads
and after a Remove.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The store's refusal, its size line and Clean up the mod store in de.json, as
the Mods page's other texts are on this branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Longshot #2286's longshot-build applies the ExeFS patches of every mod its
mods.json names as on and of every mod it does not name, and knows no code
warning, trust file or mod.json. IBuilder.ModsList now gives each builder its
list: make_game.py's --mods as before (BuildRequest.ModsListFor), and for
longshot-build a mods.json the launcher writes in the game folder
(.longshot-build-mods/, LongshotBuildMods), named with --user relative to the
game folder so longshot_build.json keeps it for update. It names every mod
longshot-build finds by its own rule, off unless the mod is on at the next
start (switched on, its code accepted or taken from a build before) and has
no mod.json. A list that cannot be made stops the build with why, rather than
letting every mod's patches in. The PC's HOS_MODS and HOS_OPTIONS_FILE are left
out of longshot-build's environment, so its read stage takes the game folder's
mods and the launcher's list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
A game longshot-build made reads its files from the player's .nup where it was
built from (Longshot #2286), so `longshot mod data` would stop at the start
with nup_moved once the .nup is moved or deleted. Make the game data list now
says so first, in the words the launcher uses for Play (NupMovedException).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The list the launcher writes for longshot-build and why, how its
exefs_patches.txt reads on the Installed tab, the .nup read in place, and what
Longshot #2286's builder and game lack of the Modding API (profiles, the
game's code warning, system mods, the SDK, scripts, hook sites, native code,
code modules, patch sets).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The pages kept a 32 px band under them, and what scrolled was cut in it
mid-card. The window no longer keeps it: a page that scrolls (the home,
Settings, Storage, Saves, NFC, Mods) runs its scroll to the window's
edge with 32 px of its own padding under the last card, and the pages
that do not scroll (the wizard's steps, Ready, a problem, the saves'
confirmations, the backups, the save editor) keep the 32 px in their
templates. Storage's side scrolls on its own in a short window; the
backups' card ends with its last backup instead of stretching to the
foot.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The row of the page's questions kept its 14 px margin while none was
shown, and the tabs' scrolls kept another 14 px of margin above them:
an empty band where scrolled cards were cut. The questions' row is
there only while one is shown, and Browse's scroll starts at the tabs'
line with its padding inside, so what scrolls is cut at the line. Browse
and From an emulator scroll to the window's foot, their right edge on
the header's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The Installed tab scrolled the list and the side (add a mod, play
without mods, the folder, making mods) as one, so the side moved away
with the list. Each now scrolls on its own: the side stays put, and
scrolls only when the window is too short for it. Its rows are a little
tighter, so it fits whole at the default 1200x760.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The built-in mods' rows kept the empty load-order column of the mods
above them, so their tile sat 30 px in from the card's edge, unlike
every other card's. They have no place in the order: the column is gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
A mod's caution, dependencies, update and settings were in the column
beside its tools and switch, so a narrow window or a German line
wrapped them a few words at a time. They now span the row under its
chips, out to the switch's edge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
An open dropdown marked its picked row and the row under the pointer in
Fluent's own blue. They are now the brand's soft fill and the glass
hover the rest of the launcher uses. A choice longer than its dropdown
(German's "Alle Threads, am schnellsten") ends with an ellipsis
instead of being cut mid-letter; the open list shows it whole.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The detail list's scroll bar was drawn 4 px from its buttons; it now has
a 14 px gutter of its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e3nBDxBnhodLguFyEt
The home listed "Your instances" beside a Version field, and the footer,
Settings, the build settings, the old-layout card and the mods' messages
said instance where the player sees a version. An instance is a built
version's folder: the launcher now calls it a version everywhere it
shows. The catalogs keep each translation under its new English text;
German says Version where it said Instanz. The code keeps its names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
The home with versions was mostly empty space around a small Play, and
it did not say what a profile or a save was to a version. Both homes are
now one family: the logo beside the title, then one card. With a
version, the card puts the version (track and version), its profile (its
own list of which mods are on and their settings, picked here, named to
the game at Play) and the saves every version and profile shares side by
side, then Play and what it starts in words ("v3.1.0 · Default profile ·
3 save slots"). The save is not picked here: the game asks for a slot on
its title screen, and the card says so. With no version yet, the card
says what a build makes, what it needs and how long, over Build.

A version's state is said plainly: Ready, Not built yet, Game missing
(its folder has lost its game: Build it again, not "Built today, not
built"), Deleting. The versions list keeps every action on a version
(set the default, its mods, its folder, delete; build another, add a
folder, check for updates); Play is the card's. The home opens on the
version Play started last.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
The scenes' versions count as built now (LauncherService.IsBuiltOverride:
nothing is looked for on the disk), so the home shows them as a player
sees them; home-missing says its game is gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
A profile was only a list of which mods are on; the game's settings (the
Insert menu's choices and the controls) were the version's, the same for
every profile. Each profile now keeps its own longshot_options.ini beside
its list (mods-profiles/<id>.options.ini), and Play names it to the game
with HOS_OPTIONS_FILE, as it names the list with HOS_MODS_LIST. The game
reads that file and writes its Insert menu's changes back to it
(Longshot's host/options_path.c, gpu/vk/vk_menu.cpp).

The first time, every profile starts with a copy of the version's
settings file (the shared user folder's, else the game folder's),
make_game.py's compile_shaders= left out. Nothing is moved or deleted, so
an older launcher still finds that file as it was. A new profile copies
the selected one's settings, Copy carries them, Rename keeps them, Delete
takes them. The profile menu has Reset this profile's settings…, asked
first and refused while the game runs; the file before is kept beside it.

Only a game that takes a list of its own gets one: an older game would
also read its mods.json beside the file it is named (host/mods.c
state_file), away from the list every version shares. Hookshot's
settings and a system mod's legacy switch use the selected profile's file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Home had two places for versions: the card's Track and Version dropdowns,
and a list of the same versions under it with their own actions. Home now
only plays. Its card shows the version and its state, an update for it in
one line when there is one, and a bar: Play, the focus, beside three
pickers: the version (the ones on this PC, each with its channel, then
Manage versions…), the profile (mods and settings, then Mods and
profiles…) and the saves. A quiet strip under it says the last save and
the profile's mods.

The new Versions tab holds what managing did: every version as a card
with its channel, Default, state, size and built date, and Update to
(with What's new), Build it again, Set as default, Mods and profiles,
Open folder and Delete; Add a build folder… and Check for updates in its
header; Build another version (a track and one of its versions) under the
list. Its model is the home's: nothing is duplicated. The first build's
card is one view (BuildCardView), Home's with no version and the Versions
page's empty state.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
README's home section, docs/controller.md (the Versions tab, Play's
first press and its pickers, the reset question's safe answer) and
docs/saves.md (saves are every profile's; Home's Saves picker). The
screenshot tool's scenes follow: Home's states and pickers, the Versions
page (two channels, an update, a game missing, empty, a pull request)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
At 960x560 Home's Version picker cut a nightly's name ("Nightl…"). The
field now shows its short name (Nightly 187, PR #1548; a release as it
is), wrapping rather than cutting, with the full name in its tooltip and
in the list, which wraps too.

Storage's read-only folder boxes cut a long path at its end. They are
now a TextBlock cut in its middle by path segment ("…"), the whole
path in its tooltip.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
It landed on the header's Add a build folder…. Each card's actions are
marked as the page's first (c:Pad.First): the first one shown wins, so
the first card's update, Build it again, Set as default or Mods and
profiles. With no version, the first build's card's Build.
docs/controller.md says so again, and PadChecks checks it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
The page's texts, its view model's lines and toasts, the delete dialog
and NfcTags' reasons were English in every language. They go through Tr
now (counts with Tr.P), their English unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
check_mods_questions checks it as it does the code warning, Replace and
Remove: c:Pad.Scope, and its safe answer for B.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Longshot's main added AMD FSR 4's own pipeline cache to
scripts/devtools/packs.py's CACHES (gpu/vk/vk_fsr4.cpp own_cache); the
launcher's ShaderCaches.Names did not have it, so the contract check
(check_shader_caches) failed and a copy left it behind.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
German lacked 865 of the launcher's texts, English on screen (the
build's "left before shaders", "Delete the build files too?", the Saves
page's Progress, the save editor's "Build Longshot first…", the mods
pages, Storage, the NFC page); it has them all now. The other eleven
full catalogs get the texts of Home, the Versions page, a profile's
settings and the NFC page (151 each). Texts the launcher no longer has
are dropped (translations.py's left over, which failed its check: 24 in
German, 10 in each other), and a count's one form shows its count where
the language's one holds more than one number (fr, pt-BR).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
refactor(mods): the mods' list for the builder is longshot-builder's, as #259 renamed it
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 4s
77512e8303
#259 renamed the new builder longshot-builder (Longshot #2286): its
files, manifest, record (longshot_builder.json), cache and texts. What
the mods work says of it follows: the list's folder in the game folder is
.longshot-builder-mods (named with --user, beside the --cache,
--builder-exe and --ngx-sdk flags), and the docs' section, comments and
checks name longshot-builder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Member

Possibly related, for context:

  • PR #262 feat(home): a version's gear builds it again with other settings, its own choices picked — Overlapping Home/version management redesign; both alter version cards and build actions.
  • issue #68 Proposal/Discussion - Launcher redesign: who's playing, a home for each kind of player, and a splash for RecompLauncher and the Deck — Earlier launcher redesign proposal includes a simplified Home and version-selection model.
  • issue #237 Launcher: Build another version unavailable when Stable and Nightly both show Not found — Open report of Build another version being unavailable; this PR changes that entry point and Versions UI.
Possibly related, for context: - PR #262 feat(home): a version's gear builds it again with other settings, its own choices picked — Overlapping Home/version management redesign; both alter version cards and build actions. - issue #68 Proposal/Discussion - Launcher redesign: who's playing, a home for each kind of player, and a splash for RecompLauncher and the Deck — Earlier launcher redesign proposal includes a simplified Home and version-selection model. - issue #237 Launcher: Build another version unavailable when Stable and Nightly both show Not found — Open report of Build another version being unavailable; this PR changes that entry point and Versions UI.
Author
Owner

New head 6460b9f4 (was 77512e83): the launcher rebuilt around Profile > Version + Save (profiles own mods, settings and saves; Who's playing?; matching Profiles/Versions/Saves pages), the save slot picker (HOS_START_SLOT), per-profile saves (HOS_SAVE_DIR, never the shared saves silently), mod repositories (Edit repos…), the Mods page changes, and a cleaner look with brand accents. Launcher core 4356 checks pass; build clean. Home is being simplified further next, then a rebase onto #259's newest head.

New head 6460b9f4 (was 77512e83): the launcher rebuilt around Profile > Version + Save (profiles own mods, settings and saves; Who's playing?; matching Profiles/Versions/Saves pages), the save slot picker (HOS_START_SLOT), per-profile saves (HOS_SAVE_DIR, never the shared saves silently), mod repositories (Edit repos…), the Mods page changes, and a cleaner look with brand accents. Launcher core 4356 checks pass; build clean. Home is being simplified further next, then a rebase onto #259's newest head.
Longshot #2434's Skip title system mod reads HOS_START_SLOT=<n>, n the
slot_NN folder's number (0 to 99), and leaves the title screen's file
list to the player when it cannot follow it. The launcher names it at
Play when a slot was picked (Settings.StartSlot) and the version's
longshot_version.txt has a features= line naming start_slot (never by
version number); otherwise it is not set, and a value from the PC's own
environment is dropped. ModsChecks covers the detection (no features=,
one without start_slot, one with it) and the start's environment.
Settings also keeps when Play last started a version (LastPlayedAt),
for Home.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
The brand's announcement image (MagicBeanDev/Brand #1) sets the look:
a warm night page, cream text, rust, orange, gold, lime and leaf green,
black-weight headings with tight tracking, gold kickers in capitals, the
four stripes, and a thick night outline with a hard offset shadow on
what matters most. The palette's tokens take these colours, so every
page follows; the glows and gradients go (the window, the problem
cards, the build step), cards are flat, primary buttons are orange with
night ink, Play is leaf green, focus is gold, the tab shown is a cream
pill, and the title bar has the stripes and the wordmark.

Headings use Noto Sans Black, the brand's face where Segoe UI Black is
not installed, bundled with its SIL Open Font License
(App/Assets/Fonts/NotoSans-OFL.txt). The Brand PR has no other asset
the launcher needs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Home left most of the window empty around one card. Now the brand's
rust band takes the room: the game's name, a kicker (Ready to play,
Update available, Game missing), Version and its number in lime, what
it is, the logo tilted on its right and the update as a small cream
card. Under it a strip of three tiles: the newest save (its slot, and
its place and hearts when the save editor reads them), the profile's
mods as chips, and the last start. At the foot the cream card: Play and
the Version, Profile and Save slot pickers.

Save slot is a dropdown like the others: Choose in game (the title
screen's file list), each slot with its place, time and hearts, then
Manage saves…. A version that cannot start on a slot lists Choose in
game alone and says why in the tooltip. On a short window (a container
query) the band's type and logo shrink so the strip and the card stay
in view. The first build's card and the welcome band follow the same
look. README, docs/controller.md, the checks and the scenes follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
The band's kickers, the strip's tiles, the Save slot picker and its
note, in German and the eleven other full catalogs; the two texts Home
no longer says are dropped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
fix(i18n): Home's new texts, and its old ones dropped, in every full catalog
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
6c39f05726
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
Author
Owner

Head 6c39f057: Home is now the band, a Version and a Save dropdown and one button (Build / Build again / Update with Play beside it / Play), with the profile in the title bar; everything else left Home. Launcher core 4357 checks pass; build clean.

Head 6c39f057: Home is now the band, a Version and a Save dropdown and one button (Build / Build again / Update with Play beside it / Play), with the profile in the title bar; everything else left Home. Launcher core 4357 checks pass; build clean.
Author
Owner

New head 5f00b3f4: the launcher moves to versions → profiles → saves. A profile is a folder (profiles/<id>/: profile.json v1 with its mods' order and on/off, game copy and upscalers; mods/, settings.ini, saves/), versions are builder folders (versions/<v>/Longshot.exe and builds/<stamp>/), and Play is Longshot.exe --profile <folder>; older make_game.py versions play as before. A one-time migration copies every profile's saves, mods list and settings into its folder and keeps the originals. Home: the Save picker lists the profile's slots (no "Choose in game"; "New game" with no saves; hidden on versions without start_slot), and Update is a button as big as Play. Launcher core 4382 checks pass (25 new for the profile model); build clean.

New head 5f00b3f4: the launcher moves to versions → profiles → saves. A profile is a folder (`profiles/<id>/`: `profile.json` v1 with its mods' order and on/off, game copy and upscalers; `mods/`, `settings.ini`, `saves/`), versions are builder folders (`versions/<v>/Longshot.exe` and `builds/<stamp>/`), and Play is `Longshot.exe --profile <folder>`; older make_game.py versions play as before. A one-time migration copies every profile's saves, mods list and settings into its folder and keeps the originals. Home: the Save picker lists the profile's slots (no "Choose in game"; "New game" with no saves; hidden on versions without start_slot), and Update is a button as big as Play. Launcher core 4382 checks pass (25 new for the profile model); build clean.
fix(profiles): a mod's entry in profile.json keeps every key of its own (granted, version, unknown ones) when the list is written again
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
4d1f29a08b
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
fix(profiles): a profile's trust file is trust.json beside its profile.json (an old profile-trust.json renamed once); other lists keep <stem>-trust.json
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
b691ce5a0c
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1PPtvLKUijhrMa4pue
HumanBean force-pushed mods/launcher-pr from b691ce5a0c
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
to 9674064b65
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 9s
2026-11-24 17:39:51 +00:00
Compare
Author
Owner

Rebased onto #259's yrosrqpp (9674064b, 129 commits). The profile basics moved to #259; this keeps the mods layer over them (profile.json's mods with per-mod keys kept, trust.json, modstore carried with saves), the Mods page (a Mods tab in #259's title bar), repos, Home's front page and Save picker, and the look. Launcher core 4497 checks pass, ONNX 25, build clean, translations clean.

Rebased onto #259's yrosrqpp (9674064b, 129 commits). The profile basics moved to #259; this keeps the mods layer over them (profile.json's mods with per-mod keys kept, trust.json, modstore carried with saves), the Mods page (a Mods tab in #259's title bar), repos, Home's front page and Save picker, and the look. Launcher core 4497 checks pass, ONNX 25, build clean, translations clean.
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 9s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'mods/launcher-pr:HumanBean-mods/launcher-pr'
git switch 'HumanBean-mods/launcher-pr'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/LongshotLauncher!268
No description provided.