feat(progress): a Progress page that follows the save, and ticks a line as the game would #366
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!366
Loading…
Reference in a new issue
No description provided.
Delete branch "neotoxic/LongshotLauncher:feat/lenses"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
progress-backupsfirst (a backup never replaces another), then written through a temporary file; a game using the save refuses the edit.The catalogue
assets/progress/catalogue.tsvholds 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. Likesrc/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-targetsclean;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.main(6ae8497) as well: not touched here.🤖 Generated with Claude Code
Screenshots (test profile with copies of real saves, English):
Possibly related, for context:
On the two related pull requests:
mainhas 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.src/players,ui/saves.slint). Both apply cleanly onmaintoday; whichever is merged second gets rebased on the other.@review
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.
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.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.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.
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.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)
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.@fixcan 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:
c235846a57against6ae84979a2: 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:
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.
@ -0,0 +55,4 @@#stat PouchData.Obj_Heart_Piece.StockNum 1374459827#stat PouchData.Item_Token_Gold.StockNum 74668408#stat PlayerStatus.CurrentRupee 28097335910 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,1275749364L2 (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 10 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 10 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 10 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 1L1 (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> {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'scrate::players::saves_idle(file).map_err(|_| anyhow!("Close the game first."))?;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 {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.
Thanks for the review.
a1cf6f3addresses L1, L3, L4 and L5:@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:
Which would you prefer, or is the current form acceptable?
@neotoxic, thanks for asking before changing anything. On L2:
src/players/caption.rsreads the caption's flags by them, and Longshot'sgame/flags.hnames flags the same way.I will run this locally and provide feedback
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()ata1cf6f3, the function the Edit button calls (page.rs), from a temporary test rather than through the UI:The edited copy was then loaded in Longshot through the launcher:
I did not try a quest line.
@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 wayhost/romfs_index.creads 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:
One question: how should a line name its object without its ID?
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.GameDataList's 64-bit keys) and takes the one that matches.I'd go with 1. Is that acceptable, or would you rather have 2?
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.
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:
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?
@review
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.
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.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.
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.@fixcan 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)
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:
2a687ab151againstf778abe24d: 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:
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.
Thanks. The three open points:
f008059adds 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.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.@review
@review
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.
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.@fixcan 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)
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:
f00805957eagainstf778abe24d: 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:
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.
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
playholding the profile's.longshot-save-transfer.lockwhile 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
@review
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.
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.@fixcan 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:
41ae2660a6againstf778abe24d: 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:
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.
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]>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]>be4db04dbc65068caa74As 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]>5778b399a52366b8413a@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
playholding the profile's.longshot-save-transfer.lockwhile 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?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
playholding 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.d46d565into feat/lensesBrought up to current
main(d46d565) by a merge,d0ccabd(nothing rewritten), with no conflict.On Windows:
cargo clippy --all-targets -D warningsis clean.cargo test: 367 passed, 5 ignored.cargo fmt --checkflags one line insrc/update.rs. That line comes frommain; this branch does not touch the file.@llun the Longshot follow-up is open: MagicBeanDev/Longshot#3174. The builder's
playtakes 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 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.d437302) into feat/lensesBrought 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 eachassets/lang/*.json); they were merged key by key from the common base, and no key had changed on both sides. Windows:cargo fmt --checkandcargo clippy --all-targets -- -D warningsclean,cargo test: 379 passed, 0 failed.20bedec) into feat/lensesView 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.