feat(progress): a Progress page that follows the save, and ticks a line as the game would #366

Open
neotoxic wants to merge 43 commits from neotoxic/LongshotLauncher:feat/lenses into main
Contributor

Players ask what is left to find in their save and what they can do right now. This adds a Progress page to the launcher: the 100 % of the remake, read from the save, chapter by chapter or area by area, with what each thing needs. It is the tracker of Lenses of Truth (0.2.0), built in.

What it does

  • A Progress tab follows the latest save live, the copy a running game writes included. By chapter or by area, a search, "only what is feasible" and "also show what is done".
  • A save's details show that slot's progress the same way.
  • Edit (off by default, game closed only, from a save's details): a click on the mark of a feasible line marks it done in the save, with what the game gives for it (the reward or content, rupees within the wallet, a Piece of Heart that makes a heart at four, a quest moved on). There is no going back: a line done or not feasible yet cannot be ticked. The file is copied to progress-backups first (a backup never replaces another), then written through a temporary file; a game using the save refuses the edit.

The catalogue

assets/progress/catalogue.tsv holds 439 lines: chapter, area, names and how to get each thing (English and French text; keywords and kinds in English), the "done" test, the "feasible" tests and the effects. Like src/players/caption.rs, it holds save field identifiers (hashes of their names), facts and our own text: no game file and no save. Every line was checked against the game's data (what each place holds, what each event gives and asks for); what only playing can settle is listed in Lenses of Truth's docs/in-game-checks.md. "Feasible" looks at what the player can get, not what they hold right now.

Files

  • src/progress/ (new): catalogue and save reading, the checks, complete (the effects); page.rs, the page; tests.rs, synthetic saves only.
  • ui/progress.slint (new), ui/saves.slint (the details), ui/main.slint (the tab), src/players/mod.rs (slot_file, latest_progress, saves_idle), assets/lang/*.json (the labels, 15 catalogs).

Testing

  • cargo fmt --check, cargo clippy --all-targets clean; cargo test progress: 11 tests (catalogue reading, feasible paths, each effect, keys kept sorted, a key list cut short, no going back, a backup never replaced, either of two fields).
  • python -I scripts/translations.py: 15 catalogs validated.
  • On this Windows PC, 12 tests outside this change (folders, registry, storage, steam) fail on main (6ae8497) as well: not touched here.
  • In the launcher (screenshots below, a test profile with copies of real saves): the tab, both views, Edit, a line ticked and read back.
  • Not checked: an edited save loaded in the game through the launcher.

🤖 Generated with Claude Code

Players ask what is left to find in their save and what they can do right now. This adds a Progress page to the launcher: the 100 % of the remake, read from the save, chapter by chapter or area by area, with what each thing needs. It is the tracker of [Lenses of Truth](https://github.com/neotoxicfr/lenses-of-truth) (0.2.0), built in. ## What it does - **A Progress tab** follows the latest save live, the copy a running game writes included. By chapter or by area, a search, "only what is feasible" and "also show what is done". - **A save's details** show that slot's progress the same way. - **Edit** (off by default, game closed only, from a save's details): a click on the mark of a feasible line marks it done in the save, **with what the game gives for it** (the reward or content, rupees within the wallet, a Piece of Heart that makes a heart at four, a quest moved on). There is no going back: a line done or not feasible yet cannot be ticked. The file is copied to `progress-backups` first (a backup never replaces another), then written through a temporary file; a game using the save refuses the edit. ## The catalogue `assets/progress/catalogue.tsv` holds 439 lines: chapter, area, names and how to get each thing (English and French text; keywords and kinds in English), the "done" test, the "feasible" tests and the effects. Like `src/players/caption.rs`, it holds save field identifiers (hashes of their names), facts and our own text: **no game file and no save**. Every line was checked against the game's data (what each place holds, what each event gives and asks for); what only playing can settle is listed in Lenses of Truth's [docs/in-game-checks.md](https://github.com/neotoxicfr/lenses-of-truth/blob/main/docs/in-game-checks.md). "Feasible" looks at what the player can get, not what they hold right now. ## Files - `src/progress/` (new): catalogue and save reading, the checks, `complete` (the effects); `page.rs`, the page; `tests.rs`, synthetic saves only. - `ui/progress.slint` (new), `ui/saves.slint` (the details), `ui/main.slint` (the tab), `src/players/mod.rs` (`slot_file`, `latest_progress`, `saves_idle`), `assets/lang/*.json` (the labels, 15 catalogs). ## Testing - `cargo fmt --check`, `cargo clippy --all-targets` clean; `cargo test progress`: 11 tests (catalogue reading, feasible paths, each effect, keys kept sorted, a key list cut short, no going back, a backup never replaced, either of two fields). - `python -I scripts/translations.py`: 15 catalogs validated. - On this Windows PC, 12 tests outside this change (folders, registry, storage, steam) fail on `main` (6ae8497) as well: not touched here. - In the launcher (screenshots below, a test profile with copies of real saves): the tab, both views, Edit, a line ticked and read back. - Not checked: an edited save loaded in the game through the launcher. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A save's details said « This build does not report story, chest or heart-piece completion. » They now list, chapter
by chapter, everything a 100 % walkthrough counts (429 lines: the story, side quests, minigames, trades, chests,
Pieces of Heart, Great Fairies, magic beans, Big Poes, Gold Skulltulas), what each gives and needs, and whether the
save is ready for it: done, feasible now, or not yet. The side panel lists the chapters with their counts, the current
one marked; « Everything missing so far » gathers what is left up to it. A search and « only what is feasible » narrow
the list; the file is read again when the game writes it.

With Edit on, a line's mark ticks or unticks it in the save: refused while a game uses that save, the slot's
progress.sav first copied to « progress-backups » in the launcher's folder, written through a temporary file, and read
back. It sets the flag the line reads and nothing else (the hint says so).

What to do comes from assets/progress/catalogue.tsv, written by hand in French and English with the MurmurHash3 of
the game's field names, like players::caption: no game file, no save. Tests use synthetic saves. The labels are in the
15 catalogs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A save's details showed that slot only, so a player wanting to follow a game while playing had nothing that moved.
The new Progress tab follows the latest save, the copy a running game writes (save-work) included: the slot whose
caption the game dated last, read again when it changes. It only reads.

Both views sort by chapter or by area (the areas in story order, each shown kind by kind, what is done or feasible
first; with no area picked, the one Link is in). Editing stays in a save's details, and is off while the launcher
runs a game (Game.playing), besides the refusal when a game uses the save.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sort was two buttons that swapped their style, and options appeared and vanished with the view, so the row moved
under the pointer. The search is the launcher's TextField, the sort its Dropdown (By chapter / By area); « Also show
what is done » is greyed where it does not apply instead of hidden; the edit hint keeps one line. A line done is no
longer clickable, and the writer refuses to untick: no going back on a save.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Marking a line set its flag only: a chest opened left its content out, a quest at its last step had none of what its
scenes write. A line now carries its effects (catalogue column 11): the chest's content through the game's item
table (a bundle, rupees within the wallet held, a bag that fills, a dungeon's map or keys), a Gold Skulltula's token,
four Pieces of Heart making a heart, and for a quest each step's scene writes from where the save is (flags, items,
cutscenes, never a step back). The effects are worked out outside the launcher from the game's event flows and item
table and kept as hashes and numbers, like the tests.

A line is only ever marked done, never undone, and only once it is feasible: the catalogue's needs now include the
game's own quest prerequisites and the lasting conditions its scenes check (a new « pas » test for « not »), and a Big
Poe needs an empty bottle. complete() refuses a line done or not feasible, and must read the line back done.

Checked outside the repository on twelve real saves (every feasible line) and on a whole game played line by line
from the first chapter to the last: the game's rules (quest prerequisites, scene flags, chest contents, Gold Skulltula
tokens) find nothing amiss, and the bytes the launcher writes match the checking tool's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The hint took one or two lines with the language and the result of a change added a line of its own, so the list
moved under the pointer between two clicks. One block, three lines high, shows the hint or what the last change did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Seen in game: a Gold Skulltula and a Piece of Heart marked done were back. The game writes the key list sorted; a key
appended at its end was ignored when the save loaded, and gone from the next save the game wrote. complete() sorts
the list before writing it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Seen in game: killing a Gold Skulltula writes its key and its key + 2, and the area map counts it by the second. A
Skulltula marked done had the first only, so the map of its area did not count it. Its effects now add both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Same catalogue fix as Lenses of Truth: the game writes a Gold Skulltula's two keys, the id and + 2 or - 2; the
catalogue keeps the smaller so the pair is always « key, key + 2 ».

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Seen in game: in the tree by the pond, a roll drops it, at any age; the guides had it in the ruin at night with the
boomerang.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Same catalogue change as Lenses of Truth: the game starts with Link a child, so it is left out of the needs shown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The remake puts the ranch and the lake on the Hyrule Field map, but the game
counts them as their own areas (IsVisitLocation.LonLonRanch / LakeHylia). The
14 ranch and lake lines of the catalogue now use their own area.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each line of the catalogue was checked against the decoded game files: 190
of 429 had at least one error (tracked field, place, condition, reward or
text) and are corrected, each by a game file. Conditions ask for what the
player can get rather than what they hold right now, and a line no longer
asks for what it gives itself. A test may read either of two fields
(« A/B », the same chest seen from two maps). Filling a bottle needs no empty
one any more: a Big Poe is sold and its bottle empties again. New lines:
the eight Heart Containers, the potion shop's empty bottle, the Giant's
Knife, the bean seller, the rolling Goron and the Lost Woods target.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two lines ticked in the same second wrote their backups under the same name,
the second over the first. Backups are now named to the millisecond and
created as new files only, a number added when the name is taken; the
temporary file is removed if the save cannot be replaced. Found by the
CodeRabbit review of the same code in Lenses of Truth.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): review fixes: the edit follows the save shown, keyboard and controller, honest messages
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
081826e42f
From a review of the branch in CodeRabbit's manner:
- the details of a save may move to another slot (a copy sorted first): the
  progress follows it, so an edit goes to the save whose title is shown;
- a line's mark is a button, reached by the keyboard and a controller as the
  chapter rows are, not by the mouse only;
- the Progress tab says « No save yet » for a profile without saves, and the
  error when the folder cannot be read, instead of « cannot be read yet »;
- a game started outside the launcher refuses the edit with « Close the game
  first. », not with the save transfer's message;
- the game's working copy counts as the latest save only while a game uses
  it: save-work stays on disk once the game is closed;
- a key list that starts inside the table (a damaged file) is not read, where
  ticking a line used to stop the launcher;
- comments and four labels no code shows any more, one saying the opposite of
  what the edit does, are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Screenshots (test profile with copies of real saves, English):

The Progress tab, by chapter
By area
A save's details, Edit on
A line ticked: done and read back, the backup named

Screenshots (test profile with copies of real saves, English): ![The Progress tab, by chapter](https://git.magicbean.dev/attachments/429a1763-57f5-4469-a9be-5c9dfaf2d811) ![By area](https://git.magicbean.dev/attachments/95998334-3ba0-4616-b45a-c88450f1799c) ![A save's details, Edit on](https://git.magicbean.dev/attachments/f279cfa5-e37d-4e91-bd0b-41a62736c297) ![A line ticked: done and read back, the backup named](https://git.magicbean.dev/attachments/15f589a8-5fc8-4ddd-91a1-e18a59c31b33)
Member

Possibly related, for context:

  • PR #186 feat(saves): a Progress view per slot shows what a save has and is missing, and edits it with a backup first — Merged prior per-slot progress reader/editor; this PR adds a separate built-in catalogue and live tracker.
  • PR #253 feat(saves): show read-only per-slot thumbnails, location, era, progress stats, and full date/time — Open save-preview changes also touch saves progress UI and related player code.
Possibly related, for context: - PR #186 feat(saves): a Progress view per slot shows what a save has and is missing, and edits it with a backup first — Merged prior per-slot progress reader/editor; this PR adds a separate built-in catalogue and live tracker. - PR #253 feat(saves): show read-only per-slot thumbnails, location, era, progress stats, and full date/time — Open save-preview changes also touch saves progress UI and related player code.
fix(progress): the catalogue and the code in English
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
ea48978610
The catalogue's keywords and kinds were French words (« pas », « parmi »,
« cle », « #chapitre », « #lieu », « histoire », « coffre »…), and two kinds of
labels were French text in the code. The catalogue now reads « not »,
« oneof », « key », « #chapter », « #place » and English kinds; the kinds and
« Story » / « Side quests » are translated by the launcher's catalogs in all
15 languages instead of a French/English pair; the comments and the test
data are in English. The French names and notes of the catalogue stay:
they are the French interface.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

On the two related pull requests:

  • #186 was mooki's Progress view in the .NET launcher, built on Longshot's save editor tools; the port to Rust and Slint (#284) did not carry it over, and main has no progress view today. This brings one back, with its own built-in catalogue and the effects of each line, so it needs no tool from a Longshot release.
  • #253 (Jer9's slot previews) touches the same files (src/players, ui/saves.slint). Both apply cleanly on main today; whichever is merged second gets rebased on the other.
On the two related pull requests: - #186 was mooki's Progress view in the .NET launcher, built on Longshot's save editor tools; the port to Rust and Slint (#284) did not carry it over, and `main` has no progress view today. This brings one back, with its own built-in catalogue and the effects of each line, so it needs no tool from a Longshot release. - #253 (Jer9's slot previews) touches the same files (`src/players`, `ui/saves.slint`). Both apply cleanly on `main` today; whichever is merged second gets rebased on the other.
The Skulltula in the lone tree southeast of Lon Lon Ranch (object
2177746409373494989, at 71 167 264) was filed under Lon Lon Ranch. It
sits outside both Lon Lon Ranch location areas and inside the Hyrule
Field one, so the Zone view listed it under the ranch while Link was in
the field, and completing the line marked the ranch as visited instead
of the field.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): the ruins Gold Skulltula needs the Boomerang or the Hookshot
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
370ac604a8
The Skulltula in the ruins southwest of Lon Lon Ranch sits about 8 m up
(2730878115209290675, at -147 159 268), out of reach of the sword. It was
listed as doable with no item; checked in game: it needs the Boomerang as
a child or the Hookshot as an adult.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): the Lon Lon tower chest and the windmill quest, checked in game
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
806f7015fd
- Tower chest (ruins southwest of Lon Lon Ranch, 17445672702269453589):
  it sits about 11 m up and is reached with the Hookshot, as an adult.
  It was listed as doable with no item.
- The windmill and the well: the quest starts by learning the Song of
  Storms, which only an adult can do, with an ocarina. It was offered to
  a child without the song. The Song of Storms itself cannot be the
  condition, since this line is what gives it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): Goron maze right chest, field Business Scrub, Zora grotto text
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
62f33668f3
- Goron City maze, right chest: every free side is a silver rock
  (Obj_LiftRock_B_01, the hammer bounces off it), so it needs the Silver
  (or Golden) Gauntlets, as an adult; it was listed with bombs only.
- Hyrule Field Business Scrub Piece of Heart: the scrub checks the word
  on the tree, which can only be read as an adult; the line now needs
  the Master Sword besides bombs.
- Zora's River open grotto chest: "bombs · or as an adult" was split
  between the condition and the description; it now reads "bombs (or as
  an adult)".

Seen in game by a player.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): Death Mountain Crater needs the Goron Tunic
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
c235846a57
A player could not stay in the crater without the Goron Tunic, yet every
crater line was offered as soon as Zelda's Letter was held. The crater's
access now needs the Master Sword and the Goron Tunic, for all its
lines, including those whose conditions were checked one by one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
@review
BeanBot requested changes 2026-11-29 17:53:50 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The editor can mark heart rewards as collected without granting them, and the catalogue contains identifiers taken from game data despite the repository’s prohibition on material made from game files. Save replacement also has a race with a newly started game.

Adds a chapter and area tracker and an optional save editor. The tracker gives players a useful view of progress, but the editor can produce incorrect saves and its game-derived catalogue conflicts with repository rules.

Blocking (3): must change before merging.

  1. L1 assets/progress/catalogue.tsv:73: These heart-piece effects mark the reward collected without adding the Piece of Heart. (more on the line) Do: Apply the appropriate heart-piece reward effects for both lines and add tests using the actual catalogue entries.
  2. L2 assets/progress/catalogue.tsv:58: The catalogue includes game-derived object keys and effects, contrary to the repository’s rule against committing anything made from game files. (more on the line) Do: Remove the game-derived material from the repository and use a permitted source or derive the required data locally on the player’s PC.
  3. L3 src/progress/page.rs:113: The running-game check is only a snapshot and does not protect the subsequent read and replacement. (more on the line) Do: Coordinate editing and game startup with a shared save lock held through replacement, including external game starts that use the profile.

Should fix (2): not blocking, but worth doing before merging.

  • L4 src/progress/page.rs:183: Changing the followed file retains the previous file’s parsed save if the new file cannot yet be read. (more on the line) Do: Clear the cached save and area when the file changes; retain the old reading only when retrying the same file.
  • L5 docs/saves.md: The save documentation still says the Progress view is read-only and that story and chest completion require a game report. When: A player looking up save behavior is told editing is unavailable even though this change adds an editor and backups. Do: Document the tracker, editor, backup location and game-closed restriction.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L6 src/progress/page.rs:110: The edited save has not been checked in the game. (more on the line) Do: On a disposable local save, edit representative chest, heart-piece and quest lines, launch Longshot through the launcher, and verify the rewards and subsequent save persist.

@fix can do L1, L2, L3, L4 and L5.

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: screenshots show the launcher views and an edit read back by the launcher, but the PR says an edited save was not loaded in the game through the launcher.

Other systems: The save writer affects both Windows and Linux and files subsequently loaded by Longshot. Synthetic tests check the writer’s own interpretation, but do not establish that the game accepts its output or grants each reward. The live view also reads the game’s working copy and caption.

Switches: The Edit control is off when a save is opened and is unavailable while the launcher reports the game playing. No environment or build switches are added.

Reviewed: c235846a57 against 6ae84979a2: Read AGENTS.md, CONTRIBUTING.md, docs/saves.md, the commit log, changed Rust progress files and Slint progress view, and the relevant save process checks and caption reader. Reviewed the remaining code changes and skimmed the catalogue and translations; the catalogue’s individual game facts were not independently verified. No review checklist or pull request template was present at the named paths.; nothing run (a code review).

Checked and fine:

  • Backups use create_new and do not replace an earlier backup with the same name.
  • The synthetic tests cover sorted keys, truncated key lists, feasibility and several effect types.
  • The PR includes screenshots and the commits include AI-assistance trailers.

Testing: No code or tests were run, as requested. The author reports synthetic tests and launcher screenshots; CI is still running.

Overlaps and merge order: #253 also changes save details and player files; the author says whichever merges second should be rebased.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The editor can mark heart rewards as collected without granting them, and the catalogue contains identifiers taken from game data despite the repository’s prohibition on material made from game files. Save replacement also has a race with a newly started game. Adds a chapter and area tracker and an optional save editor. The tracker gives players a useful view of progress, but the editor can produce incorrect saves and its game-derived catalogue conflicts with repository rules. **Blocking (3)**: must change before merging. 1. **L1** `assets/progress/catalogue.tsv:73`: These heart-piece effects mark the reward collected without adding the Piece of Heart. (more on the line) **Do:** Apply the appropriate heart-piece reward effects for both lines and add tests using the actual catalogue entries. 2. **L2** `assets/progress/catalogue.tsv:58`: The catalogue includes game-derived object keys and effects, contrary to the repository’s rule against committing anything made from game files. (more on the line) **Do:** Remove the game-derived material from the repository and use a permitted source or derive the required data locally on the player’s PC. 3. **L3** `src/progress/page.rs:113`: The running-game check is only a snapshot and does not protect the subsequent read and replacement. (more on the line) **Do:** Coordinate editing and game startup with a shared save lock held through replacement, including external game starts that use the profile. **Should fix (2)**: not blocking, but worth doing before merging. - **L4** `src/progress/page.rs:183`: Changing the followed file retains the previous file’s parsed save if the new file cannot yet be read. (more on the line) **Do:** Clear the cached save and area when the file changes; retain the old reading only when retrying the same file. - **L5** `docs/saves.md`: The save documentation still says the Progress view is read-only and that story and chest completion require a game report. *When:* A player looking up save behavior is told editing is unavailable even though this change adds an editor and backups. **Do:** Document the tracker, editor, backup location and game-closed restriction. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L6** `src/progress/page.rs:110`: The edited save has not been checked in the game. (more on the line) **Do:** On a disposable local save, edit representative chest, heart-piece and quest lines, launch Longshot through the launcher, and verify the rewards and subsequent save persist. `@fix` can do L1, L2, L3, L4 and L5. **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: screenshots show the launcher views and an edit read back by the launcher, but the PR says an edited save was not loaded in the game through the launcher. **Other systems:** The save writer affects both Windows and Linux and files subsequently loaded by Longshot. Synthetic tests check the writer’s own interpretation, but do not establish that the game accepts its output or grants each reward. The live view also reads the game’s working copy and caption. **Switches:** The Edit control is off when a save is opened and is unavailable while the launcher reports the game playing. No environment or build switches are added. **Reviewed:** c235846a57de against 6ae84979a256: Read AGENTS.md, CONTRIBUTING.md, docs/saves.md, the commit log, changed Rust progress files and Slint progress view, and the relevant save process checks and caption reader. Reviewed the remaining code changes and skimmed the catalogue and translations; the catalogue’s individual game facts were not independently verified. No review checklist or pull request template was present at the named paths.; nothing run (a code review). **Checked and fine:** - Backups use create_new and do not replace an earlier backup with the same name. - The synthetic tests cover sorted keys, truncated key lists, feasibility and several effect types. - The PR includes screenshots and the commits include AI-assistance trailers. **Testing:** No code or tests were run, as requested. The author reports synthetic tests and launcher screenshots; CI is still running. **Overlaps and merge order:** #253 also changes save details and player files; the author says whichever merges second should be rebased. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -0,0 +55,4 @@
#stat PouchData.Obj_Heart_Piece.StockNum 1374459827
#stat PouchData.Item_Token_Gold.StockNum 74668408
#stat PlayerStatus.CurrentRupee 2809733591
0 Story Le réveil de Link ║║Forêt Kokiri : trouver l'épée kokiri dans le labyrinthe et acheter le bouclier mojo pour que Mido laisse passer enum 863135899 1471695344 1275749364 Link Wakes Up ║║Kokiri Forest: find the Kokiri Sword in the maze and buy the Deku Shield so that Mido lets you through KokiriForest story from 863135899 398436934 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; step 863135899 398436934 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; from 863135899 3949112793 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; step 863135899 3949112793 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; step 863135899 3949112793 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; from 863135899 240843480 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; step 863135899 240843480 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; step 863135899 240843480 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; from 863135899 1871805950 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; set 1345285354 0 ; set 4092436840 1 ; set 2054504804 1 ; step 863135899 1871805950 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; step 863135899 1871805950 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; from 863135899 1275749364 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; set 2590024800 1 ; step 863135899 1275749364 1471695344,398436934,3949112793,240843480,1871805950,1275749364 ; step 2104978273 3592842818 1471695344,398436934,3592842818,3957372343,3051307979,1466071034,3576369172,1275749364 ; step 863135899 1275749364 1471695344,398436934,3949112793,240843480,1871805950,1275749364
Member

L2 (blocking): The catalogue includes game-derived object keys and effects, contrary to the repository’s rule against committing anything made from game files.

When: The commits describe checking decoded game files and retain object identifiers and effects worked out from the game’s event flows and item table. Those derived values are committed in this catalogue.

Do: Remove the game-derived material from the repository and use a permitted source or derive the required data locally on the player’s PC.

**L2** (blocking): The catalogue includes game-derived object keys and effects, contrary to the repository’s rule against committing anything made from game files. *When:* The commits describe checking decoded game files and retain object identifiers and effects worked out from the game’s event flows and item table. Those derived values are committed in this catalogue. **Do:** Remove the game-derived material from the repository and use a permitted source or derive the required data locally on the player’s PC.
@ -0,0 +70,4 @@
3 HyruleField Skulltula d'or : grotte à bombes entre les arbres ║enfant : bombes, boomerang ; ou adulte : bombes ou masse des titans, grappin║Grotte à bombes entre les arbres de la plaine gs 12007978132755687032 bool 2789154349 0/bool 2999220442 0/bool 2525649529 0;bool 2135745421 0|bool 2789154349 0/bool 2999220442 0/bool 2525649529 0/bool 1915219928 0;bool 4288212312 0/bool 950969275 0;bool 2061733467 0 Gold Skulltula: Bomb Grotto Between the Trees ║as a child: bombs, Boomerang; or as an adult: bombs or Megaton Hammer, Hookshot║Bomb grotto between the trees of the field skulltula key 12007978132755687032 ; key 12007978132755687034 ; set 1805882622 1 ; set 3645371615 1 ; stock 74668408 1 max:100 ; set 3718673355 1
0 HyruleField Coffre de la grotte aux Effrois Rubis violet║chant des tempêtes║Jouer le chant des tempêtes sur le trou couvert de feuilles près de l'entrée de Cocorico, puis vaincre les 2 Effrois : le coffre apparaît bool 2020938610 0 bool 725212495 0 ReDead Grotto Chest Purple Rupee║Song of Storms║Play the Song of Storms on the leaf-covered hole near the Kakariko Village entrance, then defeat the 2 ReDeads: the chest appears chest set 2020938610 1 ; stock 2809733591 50 bag:3036877200=1000,3509980648=500,3068502949=200|base:99 ; set 3718673355 1
0 LakeHylia Coffre de la grotte Rubis rougeâ•‘â•‘ bool 3390613229 0 Grotto Chest Red Rupeeâ•‘â•‘ chest set 3390613229 1 ; stock 2809733591 20 bag:3036877200=1000,3509980648=500,3068502949=200|base:99 ; set 913802800 1
0 LakeHylia Fragment de cœur : l'étang de pêche ║║Pêcher un gros poisson à l'étang du lac Hylia bool 4052295534 0 Piece of Heart: Fishing Pond ║║Catch a big fish at the Lake Hylia fishing pond heart set 4052295534 1 ; set 4052295534 1 ; set 1906656605 1 ; set 913802800 1
Member

L1 (blocking): These heart-piece effects mark the reward collected without adding the Piece of Heart.

When: Ticking Fishing Pond sets its completion flag, so it reads back as done, but none of its effects increments the heart-piece counter or creates a heart. The Lab Diving Test at line 402 has the same omission.

Do: Apply the appropriate heart-piece reward effects for both lines and add tests using the actual catalogue entries.

**L1** (blocking): These heart-piece effects mark the reward collected without adding the Piece of Heart. *When:* Ticking Fishing Pond sets its completion flag, so it reads back as done, but none of its effects increments the heart-piece counter or creates a heart. The Lab Diving Test at line 402 has the same omission. **Do:** Apply the appropriate heart-piece reward effects for both lines and add tests using the actual catalogue entries.
@ -0,0 +107,4 @@
/// Marks line `index` done in `file`, with what the game gives for it (there is no going back): no game using it, the
/// file copied to the launcher's "progress-backups" folder first, then written through a temporary file. Returns the
/// backup.
fn write(home: &Path, file: &Path, index: i32, done: bool) -> Result<PathBuf> {
Member

L6 (should fix): The edited save has not been checked in the game.

When: The launcher can read back its own output even if Longshot rejects a changed field or does not grant the intended reward.

Do: On a disposable local save, edit representative chest, heart-piece and quest lines, launch Longshot through the launcher, and verify the rewards and subsequent save persist.

**L6** (should fix): The edited save has not been checked in the game. *When:* The launcher can read back its own output even if Longshot rejects a changed field or does not grant the intended reward. **Do:** On a disposable local save, edit representative chest, heart-piece and quest lines, launch Longshot through the launcher, and verify the rewards and subsequent save persist.
@ -0,0 +110,4 @@
fn write(home: &Path, file: &Path, index: i32, done: bool) -> Result<PathBuf> {
anyhow::ensure!(done, "a line done cannot be undone");
// a game started outside the launcher: refused with the edit's own words, not the transfer's
crate::players::saves_idle(file).map_err(|_| anyhow!("Close the game first."))?;
Member

L3 (blocking): The running-game check is only a snapshot and does not protect the subsequent read and replacement.

When: If another Longshot process starts after saves_idle returns and loads the slot before the rename, the editor reports success while the game is using the old state; its later save can overwrite the edit.

Do: Coordinate editing and game startup with a shared save lock held through replacement, including external game starts that use the profile.

**L3** (blocking): The running-game check is only a snapshot and does not protect the subsequent read and replacement. *When:* If another Longshot process starts after saves_idle returns and loads the slot before the rename, the editor reports success while the game is using the old state; its later save can overwrite the edit. **Do:** Coordinate editing and game startup with a shared save lock held through replacement, including external game starts that use the profile.
@ -0,0 +180,4 @@
false,
)
};
if file != s.file {
Member

L4 (should fix): Changing the followed file retains the previous file’s parsed save if the new file cannot yet be read.

When: When the latest save changes to a working copy that is temporarily incomplete, reload changes s.file but keeps s.save and returns on the failed read. The tab continues showing the previous slot’s progress until the new file becomes readable.

Do: Clear the cached save and area when the file changes; retain the old reading only when retrying the same file.

**L4** (should fix): Changing the followed file retains the previous file’s parsed save if the new file cannot yet be read. *When:* When the latest save changes to a working copy that is temporarily incomplete, reload changes s.file but keeps s.save and returns on the failed read. The tab continues showing the previous slot’s progress until the new file becomes readable. **Do:** Clear the cached save and area when the file changes; retain the old reading only when retrying the same file.
fix(progress): minigame heart pieces, the save lock while editing, a new file drops the old reading
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
a1cf6f3ae1
Review of #366 (BeanBot, L1 L3 L4 L5).

- L1: Fishing Pond and the Lab Diving Test set their completion flag but
  gave no Piece of Heart: the minigame's code hands it over, no scene does,
  so the catalogue had nothing to copy. Both lines now give one piece. A
  test checks that every Piece of Heart line gives exactly one; it fails on
  the previous catalogue (Fishing Pond).
- L3: editing holds the profile's save lock (the one every save transfer
  takes) from the first check to the replacement, so no import, copy or
  other edit runs meanwhile, and looks for the game again just before the
  file is replaced. A Longshot started outside the launcher in that moment
  cannot be seen: the game does not take the lock (same as for transfers).
- L4: when the followed file changes, the save and area read from the
  previous one are dropped, even if the new file cannot be read yet.
- L5: docs/saves.md describes the Progress page, Edit, the backups in
  progress-backups/, and the game-closed rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Thanks for the review. a1cf6f3 addresses L1, L3, L4 and L5:

  • L1: Fishing Pond and the Lab Diving Test now give their Piece of Heart (the minigame's code hands it over, no scene does, so the catalogue had nothing to copy). A new test checks that every Piece of Heart line gives exactly one; it fails on the previous catalogue.
  • L3: editing holds the profile's save lock (the one save transfers take) from the first check to the replacement, and looks for the game again just before replacing the file. A Longshot started outside the launcher in that moment still cannot be seen, since the game does not take the lock; this is the same as for save transfers, and docs/saves.md says to start the game after the change.
  • L4: changing the followed file drops the previous save and area, even when the new file cannot be read yet.
  • L5: docs/saves.md now describes the Progress page, Edit, the backups and the game-closed rule.
  • L6: not done yet. I'll edit a throwaway save (a chest, a Piece of Heart, a quest), load it in Longshot through the launcher, and report back.

@llun, a question on L2 before I change anything there. The catalogue holds no game files and no content taken from them: no text, models or assets. What it does hold are numbers that identify things in a save: the murmur3 hashes of save field names, and the placement IDs of chests and Gold Skulltulas. It also holds what the game writes when a line is done. Names, places and conditions are written by hand. Do these identifiers count as "made from game files" for this repository?

If they do, I see two ways:

  1. The launcher downloads the catalogue from a separate repository (the one Lenses of Truth uses) instead of shipping it.
  2. The launcher builds the catalogue on the player's PC from their own game files. That is a much larger change, and the repository would still need to say which object each line is about.

Which would you prefer, or is the current form acceptable?

Thanks for the review. a1cf6f3 addresses L1, L3, L4 and L5: - **L1**: Fishing Pond and the Lab Diving Test now give their Piece of Heart (the minigame's code hands it over, no scene does, so the catalogue had nothing to copy). A new test checks that every Piece of Heart line gives exactly one; it fails on the previous catalogue. - **L3**: editing holds the profile's save lock (the one save transfers take) from the first check to the replacement, and looks for the game again just before replacing the file. A Longshot started outside the launcher in that moment still cannot be seen, since the game does not take the lock; this is the same as for save transfers, and docs/saves.md says to start the game after the change. - **L4**: changing the followed file drops the previous save and area, even when the new file cannot be read yet. - **L5**: docs/saves.md now describes the Progress page, Edit, the backups and the game-closed rule. - **L6**: not done yet. I'll edit a throwaway save (a chest, a Piece of Heart, a quest), load it in Longshot through the launcher, and report back. @llun, a question on **L2** before I change anything there. The catalogue holds no game files and no content taken from them: no text, models or assets. What it does hold are numbers that identify things in a save: the murmur3 hashes of save field names, and the placement IDs of chests and Gold Skulltulas. It also holds what the game writes when a line is done. Names, places and conditions are written by hand. Do these identifiers count as "made from game files" for this repository? If they do, I see two ways: 1. The launcher downloads the catalogue from a separate repository (the one Lenses of Truth uses) instead of shipping it. 2. The launcher builds the catalogue on the player's PC from their own game files. That is a much larger change, and the repository would still need to say which object each line is about. Which would you prefer, or is the current form acceptable?
Member

@neotoxic, thanks for asking before changing anything. On L2:

  • The hashes of save field names are fine to ship. The launcher already does: src/players/caption.rs reads the caption's flags by them, and Longshot's game/flags.h names flags the same way.
  • The placement IDs of chests and Gold Skulltulas, and what the game writes when a line is done, should be built on the player's PC from their own game files (your option 2), not shipped or downloaded. #186 did it that way: it ran Longshot's save editor (MagicBeanDev/Longshot#1401), which reads those lists from the player's romfs.
@neotoxic, thanks for asking before changing anything. On L2: - **The hashes of save field names are fine to ship.** The launcher already does: `src/players/caption.rs` reads the caption's flags by them, and Longshot's `game/flags.h` names flags the same way. - **The placement IDs of chests and Gold Skulltulas, and what the game writes when a line is done, should be built on the player's PC from their own game files** (your option 2), not shipped or downloaded. #186 did it that way: it ran Longshot's save editor (https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/1401), which reads those lists from the player's romfs.
Owner

I will run this locally and provide feedback

I will run this locally and provide feedback
Author
Contributor

L6: done, on a throwaway copy of a save standing at Zora's River (the real saves were set aside and put back byte for byte afterwards).

Three lines were ticked with complete() at a1cf6f3, the function the Edit button calls (page.rs), from a temporary test rather than through the UI:

  • Piece of Heart near the open grotto;
  • the open grotto's chest;
  • the Gold Skulltula behind the rocks at the end of the river (night).

The edited copy was then loaded in Longshot through the launcher:

  • The pause menu shows 3 heart quarters instead of 2 in the original. The Zora's River map counts the Piece of Heart as found.
  • In the world, the Piece of Heart is gone from its spot, and the chest is already open. The Gold Skulltula is no longer there at night.
  • The game loads the edited file normally.

I did not try a quest line.

**L6**: done, on a throwaway copy of a save standing at Zora's River (the real saves were set aside and put back byte for byte afterwards). Three lines were ticked with `complete()` at a1cf6f3, the function the Edit button calls (`page.rs`), from a temporary test rather than through the UI: - Piece of Heart near the open grotto; - the open grotto's chest; - the Gold Skulltula behind the rocks at the end of the river (night). The edited copy was then loaded in Longshot through the launcher: - The pause menu shows 3 heart quarters instead of 2 in the original. The Zora's River map counts the Piece of Heart as found. - In the world, the Piece of Heart is gone from its spot, and the chest is already open. The Gold Skulltula is no longer there at night. - The game loads the edited file normally. I did not try a quest line.
Author
Contributor

@llun, thanks, that's clear. I'll do option 2 without waiting for #1401. The launcher will read the few files it needs from the player's own game, through the index the builder already writes into the game folder (longshot_romfs.idx, read the way host/romfs_index.c reads it). It will build the placement IDs and the effects there and keep them in its cache. The repository keeps only the hand-written part.

I'd keep two things in the repository as hand-written logic, unless you object:

  • The conditions of each line (column 6). They name save fields only by their hashes, like the tests do.
  • A few rules observed in play, where no scene writes anything. These are the adult trade chain, the minigame Pieces of Heart from L1, and the reward for 100 tokens.

One question: how should a line name its object without its ID?

  • Chests and half of the Gold Skulltulas have a named save field (IsTreasureBoxOpen.<id>, IsGoldSkullDead_<id>). The line keeps that name's hash, as it does today, and the launcher finds the object whose field hashes to it.
  • The other 78 lines (50 Gold Skulltulas, 28 Pieces of Heart) are kept in the save as a bare 64-bit key, with no name. Map, object type and room do not tell them apart, since several share all three. Some of these Skulltulas are also not placed on a map at all: they come out of soil patches, crates and trees. I see two ways:
    1. The line keeps a hash of the key, like the field-name hashes. The launcher hashes the keys of the game's own list (all 128 are in GameDataList's 64-bit keys) and takes the one that matches.
    2. The line describes its object by hand (map, object type, room). The launcher leaves a line uneditable when it finds no single match. Many of these 78 would end up uneditable, the spawned Skulltulas first.

I'd go with 1. Is that acceptable, or would you rather have 2?

@llun, thanks, that's clear. I'll do option 2 without waiting for #1401. The launcher will read the few files it needs from the player's own game, through the index the builder already writes into the game folder (`longshot_romfs.idx`, read the way `host/romfs_index.c` reads it). It will build the placement IDs and the effects there and keep them in its cache. The repository keeps only the hand-written part. I'd keep two things in the repository as hand-written logic, unless you object: - **The conditions of each line (column 6).** They name save fields only by their hashes, like the tests do. - **A few rules observed in play, where no scene writes anything.** These are the adult trade chain, the minigame Pieces of Heart from L1, and the reward for 100 tokens. One question: how should a line name its object without its ID? - **Chests and half of the Gold Skulltulas** have a named save field (`IsTreasureBoxOpen.<id>`, `IsGoldSkullDead_<id>`). The line keeps that name's hash, as it does today, and the launcher finds the object whose field hashes to it. - **The other 78 lines** (50 Gold Skulltulas, 28 Pieces of Heart) are kept in the save as a bare 64-bit key, with no name. Map, object type and room do not tell them apart, since several share all three. Some of these Skulltulas are also not placed on a map at all: they come out of soil patches, crates and trees. I see two ways: 1. The line keeps a hash of the key, like the field-name hashes. The launcher hashes the keys of the game's own list (all 128 are in `GameDataList`'s 64-bit keys) and takes the one that matches. 2. The line describes its object by hand (map, object type, room). The launcher leaves a line uneditable when it finds no single match. Many of these 78 would end up uneditable, the spawned Skulltulas first. I'd go with 1. Is that acceptable, or would you rather have 2?
fix(catalogue): crater lines done as a child no longer need the Goron Tunic
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
60e6bdf2a0
The game places the crater's Business Scrub (Piece of Heart), the Gold
Skulltula in a crate and the one in the bug patch only in the child
versions of the crater map, and a magic bean is planted as a child. The
Goron Tunic is adult-only, so asking for it marked these four lines as
not doable for a child who can reach them. They now ask for the child's
way in: bombs (or Bombchus) and Zelda's Letter for the scrub and the
crate, the Bolero of Fire for the bug patch and the bean. The lines done
as an adult still need the tunic.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

About L2 (the catalogue built from the game): settled on Discord on 1 December. HumanBean said names and IDs are fine to ship, and llun agreed to go with his call. So the catalogue stays in the repo as it is (names, chest and Gold Skulltula IDs, and the operations each line writes), and there is no need to build it on the player's PC. My earlier question about naming objects without their ID is moot.

About L2 (the catalogue built from the game): settled on Discord on 1 December. HumanBean said names and IDs are fine to ship, and llun agreed to go with his call. So the catalogue stays in the repo as it is (names, chest and Gold Skulltula IDs, and the operations each line writes), and there is no need to build it on the player's PC. My earlier question about naming objects without their ID is moot.
merge: bring feat/lenses up to date with main
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
2a687ab151
main moved on (the Logs page, the processor check, #367 and others) and
the pull request no longer merged cleanly. The conflicts were only
translation keys added at the end of the same files on both sides (both
kept) and the Page enum in ui/widgets.slint (progress added to main's
list).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Up to date with main again (a merge commit: the conflicts were only translation keys added at the end of the same files, and the Page enum). Every point of the review is addressed now:

  • L1: Pieces of Heart from the fishing pond and the diving game are given, with a test that every Piece of Heart line gives one.
  • L2: settled on Discord: names and IDs are fine to ship, so the catalogue stays as it is.
  • L3: the save is locked while it is edited, and checked again before it is replaced.
  • L4: a new save file drops the old reading.
  • L5: docs/saves.md describes the Progress page and editing.
  • L6: a save edited by the launcher was loaded and played in the game: the Piece of Heart, the chest and the Gold Skulltula count, nothing doubled.

Since then: the crater lines a child does (Business Scrub, two Gold Skulltulas, the magic bean) no longer ask for the adult-only Goron Tunic. Could I get a new review?

Up to date with main again (a merge commit: the conflicts were only translation keys added at the end of the same files, and the Page enum). Every point of the review is addressed now: - L1: Pieces of Heart from the fishing pond and the diving game are given, with a test that every Piece of Heart line gives one. - L2: settled on Discord: names and IDs are fine to ship, so the catalogue stays as it is. - L3: the save is locked while it is edited, and checked again before it is replaced. - L4: a new save file drops the old reading. - L5: docs/saves.md describes the Progress page and editing. - L6: a save edited by the launcher was loaded and played in the game: the Piece of Heart, the chest and the Gold Skulltula count, nothing doubled. Since then: the crater lines a child does (Business Scrub, two Gold Skulltulas, the magic bean) no longer ask for the adult-only Goron Tunic. Could I get a new review?
Member
@review
BeanBot requested changes 2026-12-01 02:03:05 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The save edit can still race a game starting after the last process check, risking a lost edit or save changes. The catalogue also remains in conflict with the repository’s stated no-exceptions rule, and the save documentation still calls the Progress view read-only.

The Progress page shows save completion and lets players mark feasible entries done with their rewards. It adds a substantial save editor and catalogue, with backups before edits; the remaining synchronization and repository-rule issues need resolution.

Blocking (2): must change before merging.

  1. L2 assets/progress/catalogue.tsv:58: The catalogue includes game-derived object keys and effects, contrary to the repository’s rule against committing anything made from game files. When: The commits describe checking decoded game files and retain object identifiers and effects worked out from the game’s event flows and item table. Those derived values are committed in this catalogue. Do: Remove the game-derived material from the repository and use a permitted source or derive the required data locally on the player’s PC.
  2. L3 src/progress/page.rs:113: The second running-game check still leaves the replacement unprotected from a game starting immediately afterward. When: A Longshot process starts after idle() returns and reads or writes the same save while the launcher replaces it; one side can overwrite the other's changes. Do: Coordinate game startup and save replacement through a shared lock or another mechanism that protects the entire interval, including the final replacement.

Should fix (1): not blocking, but worth doing before merging.

  • L5 docs/saves.md: The stable-upgrade section still describes the Progress view as read-only. When: A player reading the upgrade guidance is told the view is read-only even though save details offer Edit. Do: Update that sentence to reflect the editable Progress view.

@fix can do L2, L3 and L5.

Since the last review (on c235846a57)
Resolved: L1 (These heart-piece effects mark the reward collected without adding the Piece of Heart.); L4 (Changing the followed file retains the previous file’s parsed save if the new file cannot…); L6 (The edited save has not been checked in the game.)
Still open: L2 (The catalogue includes game-derived object keys and effects, contrary to the repository’s…); L3 (The second running-game check still leaves the replacement unprotected from a game startin…); L5 (The stable-upgrade section still describes the Progress view as read-only.)

Checks: Still running: 5 checks.

Also noticed (2; not asked for, not blocking)
  • The in-game report did not exercise a quest line.
  • CI checks are still running.
More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports that an edited Piece of Heart, chest and Gold Skulltula were reflected in a save loaded through the launcher. This is not a performance change.

Other systems: Save transfers use the same profile save lock as editing. The game does not take that lock, so a process check cannot protect the interval through replacement. The reported in-game check covers three reward types, but not a quest line.

Switches: Edit is off whenever a save is opened and is available only in save details; that default is appropriate.

Reviewed: 2a687ab151 against f778abe24d: Read AGENTS.md, CONTRIBUTING.md, docs/saves.md, src/progress/page.rs and ui/progress.slint; inspected the changed catalogue and test lines, save locking and process checks, diffs and commit list. The full catalogue, translations, generated content and remaining changed code were skimmed rather than read in full. No review checklist or pull request template was found.; nothing run (a code review).

Checked and fine:

  • The new heart effects use the same Piece of Heart operation as other heart entries.
  • A changed followed file clears the previous parsed save before a failed read.
  • The description includes screenshots and explains the feature and backup behavior.

Testing: No commands that execute project code were run. The author reports synthetic tests and an in-game check; the supplied CI checks are still running.

Overlaps and merge order: LongshotLauncher #253 touches the same save and UI files; the second pull request merged will need rebasing.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The save edit can still race a game starting after the last process check, risking a lost edit or save changes. The catalogue also remains in conflict with the repository’s stated no-exceptions rule, and the save documentation still calls the Progress view read-only. The Progress page shows save completion and lets players mark feasible entries done with their rewards. It adds a substantial save editor and catalogue, with backups before edits; the remaining synchronization and repository-rule issues need resolution. **Blocking (2)**: must change before merging. 1. **L2** `assets/progress/catalogue.tsv:58`: The catalogue includes game-derived object keys and effects, contrary to the repository’s rule against committing anything made from game files. *When:* The commits describe checking decoded game files and retain object identifiers and effects worked out from the game’s event flows and item table. Those derived values are committed in this catalogue. **Do:** Remove the game-derived material from the repository and use a permitted source or derive the required data locally on the player’s PC. 2. **L3** `src/progress/page.rs:113`: The second running-game check still leaves the replacement unprotected from a game starting immediately afterward. *When:* A Longshot process starts after idle() returns and reads or writes the same save while the launcher replaces it; one side can overwrite the other's changes. **Do:** Coordinate game startup and save replacement through a shared lock or another mechanism that protects the entire interval, including the final replacement. **Should fix (1)**: not blocking, but worth doing before merging. - **L5** `docs/saves.md`: The stable-upgrade section still describes the Progress view as read-only. *When:* A player reading the upgrade guidance is told the view is read-only even though save details offer Edit. **Do:** Update that sentence to reflect the editable Progress view. `@fix` can do L2, L3 and L5. **Since the last review** (on c235846a57de) Resolved: L1 (These heart-piece effects mark the reward collected without adding the Piece of Heart.); L4 (Changing the followed file retains the previous file’s parsed save if the new file cannot…); L6 (The edited save has not been checked in the game.) Still open: L2 (The catalogue includes game-derived object keys and effects, contrary to the repository’s…); L3 (The second running-game check still leaves the replacement unprotected from a game startin…); L5 (The stable-upgrade section still describes the Progress view as read-only.) **Checks:** Still running: 5 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The in-game report did not exercise a quest line. - CI checks are still running. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports that an edited Piece of Heart, chest and Gold Skulltula were reflected in a save loaded through the launcher. This is not a performance change. **Other systems:** Save transfers use the same profile save lock as editing. The game does not take that lock, so a process check cannot protect the interval through replacement. The reported in-game check covers three reward types, but not a quest line. **Switches:** Edit is off whenever a save is opened and is available only in save details; that default is appropriate. **Reviewed:** 2a687ab151dc against f778abe24d78: Read AGENTS.md, CONTRIBUTING.md, docs/saves.md, src/progress/page.rs and ui/progress.slint; inspected the changed catalogue and test lines, save locking and process checks, diffs and commit list. The full catalogue, translations, generated content and remaining changed code were skimmed rather than read in full. No review checklist or pull request template was found.; nothing run (a code review). **Checked and fine:** - The new heart effects use the same Piece of Heart operation as other heart entries. - A changed followed file clears the previous parsed save before a failed read. - The description includes screenshots and explains the feature and backup behavior. **Testing:** No commands that execute project code were run. The author reports synthetic tests and an in-game check; the supplied CI checks are still running. **Overlaps and merge order:** LongshotLauncher #253 touches the same save and UI files; the second pull request merged will need rebasing. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
fix(progress): a play waits for a save edit, and the docs say Progress edits
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
2db2434ae9
A Longshot started from the launcher between an edit's last look for the
game and the file's replacement could read or write the save while it
was replaced. A play now takes the profile's save lock, the one an edit
holds from that look until the replacement, just before the builder
starts, and keeps it until the builder runs: it waits for the edit (a
few milliseconds), and an edit started after it sees the game. Every
play from the launcher goes through start_for (the window, shortcuts
and Steam tiles). A Longshot started by hand outside the launcher still
does not take the lock.

docs/saves.md no longer calls the Progress view read-only in the
upgrade notes, and says a Play waits for an edit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs(contributing): names and IDs from the game may be committed
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
f00805957e
The Progress catalogue keeps the save's field hashes, the IDs of chests
and Gold Skulltulas placed on the game's maps, and the values each line
writes. HumanBean decided on the team chat (1 December) that names and
IDs are fine to ship, and llun went with that call, but the written
rule had no such line, so a review reading it asked to remove the
catalogue. The rule now says what may be committed and that the game's
files, their contents, dumps and extracts still never leave the PC.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Thanks. The three open points:

  • L2: the decision was taken on the team chat (names and IDs are fine to ship), but the written rule did not say so. f008059 adds it to CONTRIBUTING.md: field names and hashes, the IDs of things placed on the maps and the values a save takes may be committed; the game's files, their contents, dumps and extracts still may not.
  • L3: 2db2434. A play from the launcher (window, shortcut, Steam tile: all go through start_for) now takes the profile's save lock, the one an edit holds from its last look for the game until the file is replaced, and keeps it until the builder runs. A play waits for an edit (a few milliseconds), and an edit started after it sees the game. A test covers both orders. A Longshot started by hand outside the launcher still doesn't take the lock, since the game itself has none; docs/saves.md says to start the game after the change.
  • L5: same commit: the upgrade notes no longer call Progress read-only.

@review

Thanks. The three open points: - L2: the decision was taken on the team chat (names and IDs are fine to ship), but the written rule did not say so. f008059 adds it to CONTRIBUTING.md: field names and hashes, the IDs of things placed on the maps and the values a save takes may be committed; the game's files, their contents, dumps and extracts still may not. - L3: 2db2434. A play from the launcher (window, shortcut, Steam tile: all go through start_for) now takes the profile's save lock, the one an edit holds from its last look for the game until the file is replaced, and keeps it until the builder runs. A play waits for an edit (a few milliseconds), and an edit started after it sees the game. A test covers both orders. A Longshot started by hand outside the launcher still doesn't take the lock, since the game itself has none; docs/saves.md says to start the game after the change. - L5: same commit: the upgrade notes no longer call Progress read-only. @review
Member
@review
BeanBot requested changes 2026-12-01 02:12:27 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The catalogue rule and upgrade documentation now address their ledger items, but an independently started game can still begin between the final idle check and save replacement. That can leave the game and launcher writing the same save concurrently.

The Progress page tracks save completion and can mark feasible entries done with their rewards. The launcher's own Play path now coordinates with edits, but an external game start remains unprotected.

Blocking (1): must change before merging.

  1. L3 src/progress/page.rs:113: The second running-game check still leaves the replacement unprotected from a game starting immediately afterward. When: A Longshot process starts after idle() returns and reads or writes the same save while the launcher replaces it; one side can overwrite the other's changes. Do: Coordinate game startup and save replacement through a shared lock or another mechanism that protects the entire interval, including the final replacement.

@fix can do L3.

Since the last review (on 2a687ab151)
Resolved: L2 (The catalogue includes game-derived object keys and effects, contrary to the repository’s…); L5 (The stable-upgrade section still describes the Progress view as read-only.)
Still open: L3 (The second running-game check still leaves the replacement unprotected from a game startin…)

Checks: Still running: 5 checks.

Also noticed (2; not asked for, not blocking)
  • The lock test checks lock acquisition ordering but does not exercise an actual builder or game start.
  • The in-game report did not cover a quest line.
More: does it help, other systems, switches, what was read

Does it help: Yes: the author reports that an edited save loaded in Longshot and that a Piece of Heart, chest and Gold Skulltula were reflected in game. A quest line was not tried.

Other systems: Launcher Play, including Steam tiles, takes the profile save lock; a game started independently does not. The race therefore remains on both Windows and Linux for independent starts.

Switches: Edit is off by default when a save is opened; it is available from save details. The Progress tab is read-only.

Reviewed: f00805957e against f778abe24d: Read CONTRIBUTING.md, AGENTS.md, docs/saves.md, the changes since the ledger, the relevant launch, save-lock, process-detection and edit paths, and the supplied comments and CI results. Skimmed the remaining pull request diff and catalogue; the other changed files were not read in full. No review checklist or pull request template was found at the specified paths.; nothing run (a code review).

Checked and fine:

  • The edit and launcher Play use the same profile lock, and the edit holds it through replacement.
  • The revised upgrade notes describe the available editing behavior.
  • The reported in-game check covers a heart piece, chest and Gold Skulltula.

Testing: No commands from the project were run. The author reports synthetic tests and an in-game edited-save check; CI is still running.

Overlaps and merge order: LongshotLauncher #253 also changes the saves UI and player files; the author says whichever merges second needs rebasing.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The catalogue rule and upgrade documentation now address their ledger items, but an independently started game can still begin between the final idle check and save replacement. That can leave the game and launcher writing the same save concurrently. The Progress page tracks save completion and can mark feasible entries done with their rewards. The launcher's own Play path now coordinates with edits, but an external game start remains unprotected. **Blocking (1)**: must change before merging. 1. **L3** `src/progress/page.rs:113`: The second running-game check still leaves the replacement unprotected from a game starting immediately afterward. *When:* A Longshot process starts after idle() returns and reads or writes the same save while the launcher replaces it; one side can overwrite the other's changes. **Do:** Coordinate game startup and save replacement through a shared lock or another mechanism that protects the entire interval, including the final replacement. `@fix` can do L3. **Since the last review** (on 2a687ab151dc) Resolved: L2 (The catalogue includes game-derived object keys and effects, contrary to the repository’s…); L5 (The stable-upgrade section still describes the Progress view as read-only.) Still open: L3 (The second running-game check still leaves the replacement unprotected from a game startin…) **Checks:** Still running: 5 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The lock test checks lock acquisition ordering but does not exercise an actual builder or game start. - The in-game report did not cover a quest line. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the author reports that an edited save loaded in Longshot and that a Piece of Heart, chest and Gold Skulltula were reflected in game. A quest line was not tried. **Other systems:** Launcher Play, including Steam tiles, takes the profile save lock; a game started independently does not. The race therefore remains on both Windows and Linux for independent starts. **Switches:** Edit is off by default when a save is opened; it is available from save details. The Progress tab is read-only. **Reviewed:** f00805957eaf against f778abe24d78: Read CONTRIBUTING.md, AGENTS.md, docs/saves.md, the changes since the ledger, the relevant launch, save-lock, process-detection and edit paths, and the supplied comments and CI results. Skimmed the remaining pull request diff and catalogue; the other changed files were not read in full. No review checklist or pull request template was found at the specified paths.; nothing run (a code review). **Checked and fine:** - The edit and launcher Play use the same profile lock, and the edit holds it through replacement. - The revised upgrade notes describe the available editing behavior. - The reported in-game check covers a heart piece, chest and Gold Skulltula. **Testing:** No commands from the project were run. The author reports synthetic tests and an in-game edited-save check; CI is still running. **Overlaps and merge order:** LongshotLauncher #253 also changes the saves UI and player files; the author says whichever merges second needs rebasing. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
fix(progress): never replace a save the game wrote since it was read
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
41ae2660a6
A Longshot started by hand, outside the launcher, takes no lock: if it
wrote the save between the edit's read and its replacement, the edit
replaced the game's write. The new file is now written aside first,
then, as late as possible, the game is looked for again and the save
must still hold what was read; otherwise nothing is replaced and the
player is asked to close the game. What remains is the instant between
that check and the rename itself, which only a lock taken by the game
could close.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

L3, 41ae266: a game started by hand, outside the launcher, takes no lock, so the launcher can't stop it. What it can do is never overwrite it: the new file is now written aside first, then, as late as possible, the game is looked for again and the save must still hold what was read. If the game wrote it meanwhile, nothing is replaced and the player is told to close the game. A test covers a save written meanwhile, a running game, and the normal case.

What's left is the instant between that check and the rename itself. Only a lock taken by the game can close it, for example the builder's play holding the profile's .longshot-save-transfer.lock while it runs; that would be a change in Longshot, not here. Is the current state fine for this PR, with that as a follow-up?

@review

L3, 41ae266: a game started by hand, outside the launcher, takes no lock, so the launcher can't stop it. What it can do is never overwrite it: the new file is now written aside first, then, as late as possible, the game is looked for again and the save must still hold what was read. If the game wrote it meanwhile, nothing is replaced and the player is told to close the game. A test covers a save written meanwhile, a running game, and the normal case. What's left is the instant between that check and the rename itself. Only a lock taken by the game can close it, for example the builder's `play` holding the profile's `.longshot-save-transfer.lock` while it runs; that would be a change in Longshot, not here. Is the current state fine for this PR, with that as a follow-up? @review
Member
@review
BeanBot left a comment

Recommendation: Request changes. An independently started game can still write the save between the final comparison and the rename, allowing the launcher to overwrite that write.

The Progress page shows save completion and can apply rewards to a save after making a backup. The latest change catches writes made before its final comparison, but cannot protect the replacement itself from an independent game.

Blocking (1): must change before merging.

  1. L3 src/progress/page.rs:113: The second running-game check still leaves the replacement unprotected from a game starting immediately afterward. When: A Longshot process starts after idle() returns and reads or writes the same save while the launcher replaces it; one side can overwrite the other's changes. Do: Coordinate game startup and save replacement through a shared lock or another mechanism that protects the entire interval, including the final replacement.

@fix can do L3.

Since the last review (on f00805957e)
Still open: L3 (The second running-game check still leaves the replacement unprotected from a game startin…)

Checks: Still running: 5 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven overall: the author reports that an edited Piece of Heart, chest and Gold Skulltula loaded correctly in Longshot; the remaining replacement race can still lose a game write.

Other systems: Launcher-started games use the profile save lock; games started independently do not. Both Windows and Linux can reach the unprotected comparison-to-rename interval.

Switches: Edit is off by default and available from save details; that default limits accidental edits but does not close the race.

Reviewed: 41ae2660a6 against f778abe24d: Read AGENTS.md, CONTRIBUTING.md, the change since the ledger, and the relevant save-editing code and tests. The full pull request code and catalogue were not read in full on this re-check; the change summary and supporting save-lock references were skimmed. The named review checklist and pull request template were absent.; nothing run (a code review).

Checked and fine:

  • The new comparison refuses replacement when the file has already changed, and removes the temporary file on failure.
  • The backup remains available when replacement is refused.

Testing: The author reports an in-game check of three edited lines. The new synthetic test covers an earlier save write, a running-game refusal and a normal replacement, but not a write between comparison and rename. CI is still running; no tests were run for this review.

Overlaps and merge order: #253 touches save and UI files; whichever merges second needs rebasing.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** An independently started game can still write the save between the final comparison and the rename, allowing the launcher to overwrite that write. The Progress page shows save completion and can apply rewards to a save after making a backup. The latest change catches writes made before its final comparison, but cannot protect the replacement itself from an independent game. **Blocking (1)**: must change before merging. 1. **L3** `src/progress/page.rs:113`: The second running-game check still leaves the replacement unprotected from a game starting immediately afterward. *When:* A Longshot process starts after idle() returns and reads or writes the same save while the launcher replaces it; one side can overwrite the other's changes. **Do:** Coordinate game startup and save replacement through a shared lock or another mechanism that protects the entire interval, including the final replacement. `@fix` can do L3. **Since the last review** (on f00805957eaf) Still open: L3 (The second running-game check still leaves the replacement unprotected from a game startin…) **Checks:** Still running: 5 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven overall: the author reports that an edited Piece of Heart, chest and Gold Skulltula loaded correctly in Longshot; the remaining replacement race can still lose a game write. **Other systems:** Launcher-started games use the profile save lock; games started independently do not. Both Windows and Linux can reach the unprotected comparison-to-rename interval. **Switches:** Edit is off by default and available from save details; that default limits accidental edits but does not close the race. **Reviewed:** 41ae2660a6f9 against f778abe24d78: Read AGENTS.md, CONTRIBUTING.md, the change since the ledger, and the relevant save-editing code and tests. The full pull request code and catalogue were not read in full on this re-check; the change summary and supporting save-lock references were skimmed. The named review checklist and pull request template were absent.; nothing run (a code review). **Checked and fine:** - The new comparison refuses replacement when the file has already changed, and removes the temporary file on failure. - The backup remains available when replacement is refused. **Testing:** The author reports an in-game check of three edited lines. The new synthetic test covers an earlier save write, a running-game refusal and a normal replacement, but not a write between comparison and rename. CI is still running; no tests were run for this review. **Overlaps and merge order:** #253 touches save and UI files; whichever merges second needs rebasing. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
merge: bring feat/lenses up to date with main again
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
0b9780edb8
main moved on (the old graphics driver notice #384, the Windows Clippy
fix #388) and the pull request no longer merged cleanly. The conflicts
were only translation keys added at the end of the same files on both
sides; both are kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
feat(progress): list by area with the story first and three filters
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
3dfeaef288
The Progress page grouped lines by chapter and made the player pick between
two checkboxes and a sort menu. It was long to scan: every line carried up to
four text rows, and the area where Link stands was one entry among others.

Now the next two story lines lead, then one group per area (Link's area
first, then the areas with something feasible, then story order), each split
by kind. A Possible / Remaining / All choice replaces the checkboxes and the
sort menu; Remaining and Possible stop at the current chapter. The side panel
lists the areas with a Follow toggle. A line is a name and one line of text
(what is missing when not feasible yet, what it gives unless the name says it,
the detail) that a click opens in full. The summary is one bar and one legend
line, and the title is smaller, so the list gets the height.

New strings are translated in the twelve full catalogs; the obsolete ones go.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
chore(progress): the catalogue with each line's reward type
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
f6a2b34888
A 12th column says what a line gives (heart, skulltula, fairy, rupees,
dungeon, upgrade, item, other), for Lenses of Truth's reward filter; the
launcher and the game ship the same catalogue, the same bytes, and read
only the columns they use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Progress page said the same thing in several ways and could not be narrowed
by what a line gives. Four changes, from the mockups of issue #34 of Lenses of
Truth:

- a line not feasible yet shows a small drawn padlock instead of a hollow circle;
- the zone list carries one mark per zone: a drawn check when it is finished,
  "here" (gold) for the zone Link is in, nothing otherwise; the selection shows
  by its background alone;
- the "possible" part of the bars (overall and per zone) uses the same mustard
  as the dots of the feasible lines;
- a Reward button next to Possible / Remaining / All opens one box per kind of
  reward (read from column 12 of the catalogue), all ticked by default; the
  button counts the ticked ones when it is not all. The filter only hides lines:
  the counts of the zones do not change. Story lines are not filtered.

Co-authored-by: TEC10101 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The marks of the Progress page sat in the wrong place and on different lines:
- the chosen one of Possible / Remaining / All shows a drawn tick before its text,
  and the Reward button a tick when every kind is ticked, else "5/8";
- in the zone list, "here" and the tick of a finished zone come right after the
  name, the count alone on the right;
- every symbol (padlock, ticks, the dot of the zone Link is in, the chevron) is
  centred vertically on its line of text, from three small drawn components.

Co-authored-by: TEC10101 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): centre the content of the filter buttons, tick before "Reward"
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
ee2807d102
The inactive buttons of Possible / Remaining / All kept the room of the tick, so
their text looked off centre. Each button now has a fixed width (the tick's room
included) and centres its content: tick and text together when chosen, the text
alone otherwise. On the Reward button the tick comes before the word when every
kind is ticked, and the count ("5/8") after it otherwise.

Co-authored-by: TEC10101 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
feat(progress): Link's area marked by a head instead of the word "here"
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
540ffd747b
A small head and shoulders (icons/person.svg, our own drawing) in gold, right after the area's name
in the list and beside its title, like the finished area's tick; its accessible label stays
"here". The same mark as Lenses of Truth's and the game's Progress window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): the areas' panel as #391 left SidePanel, without its accent
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
9a7bb9778d
main's #391 (simplify launcher setup and dialogs) took the accent colour out of SidePanel; the
Progress page still set it, which no longer compiled. The panel now looks like the other pages'.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): needs drop an age their item already says
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
fb059c4a58
A line's needs read "Fairy Bow · as an adult": only an adult uses the bow, so the age said nothing more. They now
leave out "adult" or "child" when an item they need is that age's alone; an item that is one way of several (in "or" or
in brackets) does not count. The rule and its item lists are Longshot's (system/progress, view.ts's ageless), so the
launcher's page and the game's window read the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): an area's counts read done / feasible / all in their colours
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
99da20b854
An area's row read "11/11" and "+4" apart: it now reads done (sage) / feasible (mustard) / all, the same as
Longshot's Progress window and the bar under it. A bar draws its mustard part only when something is feasible:
an area all done kept a mustard fringe under its sage fill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): bring the page up to the game's Progress window
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
b4bbd356fd
Feasible shows what can be done whatever its chapter (Remaining still stops at
the current one), and an area's counts cover all its lines whatever the filter,
so the figures and the bars no longer move with it. Save reading takes the first
pair of a hash and the counters saturate, as in the game. Bars have no gap
(fills from the left with the track's corners, nothing drawn for an empty
share); the header and the areas read done / feasible / all in the bar's
colours; the marks of a line are centred in their column; a line's detail
starts with a capital; every other line and area is shaded at 7 %, the chosen
area keeping a constant border; a thin rule sits under each kind's heading.
The reward filter's button has the same inner margin on both sides.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(progress): needs said short on a locked line, the filter button named Rewards filter
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
7d8290c1db
A line not feasible yet showed its whole needs ("Missing: Ocarina · as an
adult (to learn the Song of Storms)"), half of it what any adult already
has. The row now says the first way, without what is in brackets and without
what an adult has by the Master Sword (ocarinas, Song of Time, Zelda's
Lullaby, Saria's Song, Kokiri Sword, Deku Shield, Goron Bracelet, the stones);
past 60 characters it keeps the first items and "+N". The opened row keeps
the full text. Ported from the game's Progress window (brief, fit).

The reward filter's button reads "Rewards filter" (fr: "Filtre récompenses").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(i18n): Rewards filter said as such in every language
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
be4db04dbc
7d8290c renamed the key from "Reward" to "Rewards filter" but kept each
language's old word for "Reward"; the button now reads "filter of
rewards" in German, Spanish, Italian, Japanese, Korean, Dutch, Polish,
Brazilian Portuguese, Russian and both Chinese, as it does in English
and French.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
neotoxic force-pushed feat/lenses from be4db04dbc
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
to 65068caa74
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
2026-12-03 05:12:15 +00:00
Compare
fix(progress): each condition starts with a capital, peoples in item names too
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
5778b399a5
As the game's Progress mod now shows them: a line's needs mixed cases,
"Nocturne de l'ombre, lunettes de vérité, Feu de Din, grappin" or
"Hookshot · adult", only the first condition had a capital.

Each condition of the needs now gets one, in the short text and in the
full one: the first and each after ", " or " · ", the word after an
"ou" / "or" that starts one, and nothing inside brackets ("Bombes (ou masse
des Titans) · ou Adulte").

The French catalogue writes the peoples and the Titans with a capital, as
the game's item names do: Goron, Zora, Kokiri, Mojo, Gerudo, Titans (150
words), the same catalogue as the mod's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
neotoxic force-pushed feat/lenses from 5778b399a5
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
to 2366b8413a
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
2026-12-03 15:54:39 +00:00
Compare
Author
Contributor

@llun a gentle nudge on this one: since the last review (on 41ae2660), the branch was rebased on main (2366b841, no conflicts with main today) and only wording and translations changed. BeanBot's last finding, L3, is answered above (02:14 on 01/12): the save is written aside and compared again just before the rename, so a game started by hand is never overwritten; the instant left between that check and the rename needs a lock held by the game itself.

If that's fine as it stands, I can open the Longshot side as its own follow-up (the builder's play holding the profile's .longshot-save-transfer.lock while the game runs). Its CI checks are still waiting for an approval to run. Anything else you'd like changed before it can go in?

@llun a gentle nudge on this one: since the last review (on 41ae2660), the branch was rebased on main (2366b841, no conflicts with main today) and only wording and translations changed. BeanBot's last finding, L3, is answered above (02:14 on 01/12): the save is written aside and compared again just before the rename, so a game started by hand is never overwritten; the instant left between that check and the rename needs a lock held by the game itself. If that's fine as it stands, I can open the Longshot side as its own follow-up (the builder's `play` holding the profile's `.longshot-save-transfer.lock` while the game runs). Its CI checks are still waiting for an approval to run. Anything else you'd like changed before it can go in?
Member

Thanks for the nudge, and for narrowing L3 that far. I'm fine with the small gap that's left for this PR: editing is off by default, and the save is backed up first. Yes, please open the Longshot follow-up, with the builder's play holding the save lock while the game runs. I have nothing else to ask for. The checks still need an approval to run, and a maintainer decides on the merge.

Thanks for the nudge, and for narrowing L3 that far. I'm fine with the small gap that's left for this PR: editing is off by default, and the save is backed up first. Yes, please open the Longshot follow-up, with the builder's `play` holding the save lock while the game runs. I have nothing else to ask for. The checks still need an approval to run, and a maintainer decides on the merge.
Merge main @ d46d565 into feat/lenses
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
d0ccabde9d
No conflict; the branch is brought up to current main. Nothing of its own changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (d46d565) by a merge, d0ccabd (nothing rewritten), with no conflict.

On Windows:

  • cargo clippy --all-targets -D warnings is clean.
  • cargo test: 367 passed, 5 ignored.
  • cargo fmt --check flags one line in src/update.rs. That line comes from main; this branch does not touch the file.
Brought up to current `main` (d46d565) by a merge, d0ccabd (nothing rewritten), with no conflict. On Windows: - `cargo clippy --all-targets -D warnings` is clean. - `cargo test`: 367 passed, 5 ignored. - `cargo fmt --check` flags one line in `src/update.rs`. That line comes from `main`; this branch does not touch the file.
Author
Contributor

@llun the Longshot follow-up is open: MagicBeanDev/Longshot#3174. The builder's play takes this launcher's save lock (<profile>/.longshot-save-transfer.lock, exclusive, share mode 0 on Windows) around each run of the game, including a restart from the menu, and lets it go when the game exits. It waits up to 5 s for the launcher to let go of its own after the start; an edit still running after that stops the play with a message. It's not held during a build, so an update keeps no edit out.

One effect here: while the game runs, an edit from the Progress page now fails when it takes the lock, with "Another launcher is changing these saves." rather than "Close the game first." I can make the launcher say the latter in this PR if you'd like.

It's WIP until I've run it in the game through the launcher.

@llun the Longshot follow-up is open: MagicBeanDev/Longshot#3174. The builder's `play` takes this launcher's save lock (`<profile>/.longshot-save-transfer.lock`, exclusive, share mode 0 on Windows) around each run of the game, including a restart from the menu, and lets it go when the game exits. It waits up to 5 s for the launcher to let go of its own after the start; an edit still running after that stops the play with a message. It's not held during a build, so an update keeps no edit out. One effect here: while the game runs, an edit from the Progress page now fails when it takes the lock, with "Another launcher is changing these saves." rather than "Close the game first." I can make the launcher say the latter in this PR if you'd like. It's WIP until I've run it in the game through the launcher.
Since Longshot#3174 the game, started by the launcher, holds the profile's
save lock while it runs. A tick on the Progress page then failed on that
lock and showed the system's words, untranslated: "Another launcher may be
changing these saves.: <os error 32>" on Windows. A busy lock (the open
refused on Windows, the lock itself on Linux) now gives "Close the game
first.", already in every language; a lock file refused as invalid keeps
its own message.

Test: an_edit_while_the_game_holds_the_saves_says_close_the_game_first
holds the lock as the game does and expects the message and the save
unchanged; it fails without the change with the message above.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
feat(progress): with Edit on, a line that can be marked done shows a box to tick
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
3d5f1f210a
With Edit ticked, the mark of a feasible line stayed the same small dot:
nothing showed which lines a click would change, nor where to click. That
mark is now an empty box outlined in the feasible colour; pointed at or
focused, it fills and shows the tick it would get. It reads as a checkbox
to screen readers. Lines done, not feasible yet, or with the game running
keep their marks as before.

Seen in the launcher on Windows 11.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

@llun MagicBeanDev/Longshot#3174 is now tried in the game on Windows, through this launcher: with the game running, a tick on the Progress page is refused and the save stays as it was.

Two changes here from that run:

  • 74b776e: the refusal said "Another launcher may be changing these saves.: …(os error 32)", untranslated. A busy save lock now says "Close the game first." (already in every language); a new test holds the lock as the game does, and fails without the change.
  • 3d5f1f2: with Edit ticked, a line that can be marked done showed the same small dot as before, so nothing said where to click. Its mark is now an empty box that fills and shows its tick when pointed at or focused.
@llun MagicBeanDev/Longshot#3174 is now tried in the game on Windows, through this launcher: with the game running, a tick on the Progress page is refused and the save stays as it was. Two changes here from that run: - 74b776e: the refusal said "Another launcher may be changing these saves.: …(os error 32)", untranslated. A busy save lock now says "Close the game first." (already in every language); a new test holds the lock as the game does, and fails without the change. - 3d5f1f2: with Edit ticked, a line that can be marked done showed the same small dot as before, so nothing said where to click. Its mark is now an empty box that fills and shows its tick when pointed at or focused.
Merge main (d437302) into feat/lenses
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
6845dbb968
Only the translation files conflicted: main and this branch had both
changed strings in each assets/lang/*.json. They were merged key by key
from the common base: a key changed on one side takes that side, none
was changed on both. Each file keeps this branch's order, with main's
new keys at its end.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Brought up to current main (d437302) by a merge, 6845dbb, nothing rewritten. Only the translation files conflicted (main and this branch had both changed strings in each assets/lang/*.json); they were merged key by key from the common base, and no key had changed on both sides. Windows: cargo fmt --check and cargo clippy --all-targets -- -D warnings clean, cargo test: 379 passed, 0 failed.

Brought up to current `main` (d437302) by a merge, 6845dbb, nothing rewritten. Only the translation files conflicted (main and this branch had both changed strings in each `assets/lang/*.json`); they were merged key by key from the common base, and no key had changed on both sides. Windows: `cargo fmt --check` and `cargo clippy --all-targets -- -D warnings` clean, `cargo test`: 379 passed, 0 failed.
Merge main (20bedec) into feat/lenses
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Blocked by required conditions
CI / Rust formatting, lint and tests (pull_request) Blocked by required conditions
CI / Release packages and stable upgrades (pull_request) Blocked by required conditions
PR title / Conventional Commit title (pull_request) Blocked by required conditions
31f9baef5a
# Conflicts:
#	assets/lang/de.json
#	assets/lang/es.json
#	assets/lang/fr.json
#	assets/lang/it.json
#	assets/lang/ja.json
#	assets/lang/ko.json
#	assets/lang/nl.json
#	assets/lang/pl.json
#	assets/lang/pt-BR.json
#	assets/lang/ru.json
#	assets/lang/zh-Hans.json
#	assets/lang/zh-Hant.json
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Blocked by required conditions
CI / Rust formatting, lint and tests (pull_request) Blocked by required conditions
CI / Release packages and stable upgrades (pull_request) Blocked by required conditions
PR title / Conventional Commit title (pull_request) Blocked by required conditions
This pull request has changes conflicting with the target branch.
  • ui/main.slint
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'feat/lenses:neotoxic-feat/lenses'
git switch 'neotoxic-feat/lenses'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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!366
No description provided.