feat(home): a version's gear builds it again with other settings, its own choices picked #262

Open
Mone wants to merge 1 commit from Mone/LongshotLauncher:feat/rebuild-settings into main
First-time contributor

NVIDIA DLSS, AMD FSR 4, Intel XeSS and the game's language are set in the wizard's step 2 only, so changing them for a version you already have meant finding how to rebuild it, and step 2 then showed the last build's choices, not that version's. This puts a gear on each version's row that opens exactly that.

What changed

  • A gear on a version's row (beside Saves), tooltip "Build this version again with other settings: NVIDIA DLSS, AMD FSR 4, Intel XeSS, language". Shown for a version the list knows the version of; off while a build may not start (CanStartBuild) or the row is being deleted.
  • It starts the wizard as a Rebuild of that version in its folder, with its switches and language set from the build itself (LauncherSettings.TakeChoicesOf): the list's record of DLSS, FSR 4 and XeSS, else DLSS and the language read from the folder (GameFolder.HasDlss, GameFolder.Language); an upscaler the list does not know about is left as remembered. A switch whose licence was never accepted on this launcher stays off, and its tick asks for it as for a new build. As with any build, what step 2 shows is remembered for the next one.
  • Step 1 is left by itself (FilesStepViewModel.ToSettings) once the tools are here and the game file that build was made from ("Last used") passes its check. Another file picked, the file missing, or the page left, and step 1 stays for the player; Back from step 2 does not send it forward again.
  • How much is skipped is make_game.py's, as for any rebuild: the same .nup is not read again (its .longshot_romfs stamp), cached objects and the translation are reused where the settings don't touch them.
  • The tooltip in every catalog; "Build settings" (its accessible name) was there already.

Testing

Tested

  • dotnet build LongshotLauncher.slnx -c Release: 0 warnings, 0 errors; the app tests (tests/launcher_app) pass.
  • tests/launcher_core/BuildChoicesChecks.cs (new): the switches and language start at the build's; unknown ones stay as remembered; a licence never accepted keeps its switch off.
  • In the installed launcher (Windows 11, RTX card, Nightly 763 built with DLSS, FSR 4, XeSS, Italian): the gear on the row (screenshot); pressed, step 1 found the tools on the PC, checked the remembered .nup and moved to step 2 by itself, with DLSS, FSR 4, XeSS on and Italian picked; Back stayed on step 1, Back again to the home. The rebuild itself was not started here.

Still to test

  • A full rebuild started from the gear, with one switch changed.
  • Linux and the Steam Deck.
  • On this Windows PC the core suite stops at SavesChecks, and scripts/translations.py reports catalog texts left over: both on main as it is too (clean checkout of 6887d57), not from this change.

Screenshots follow in a comment.

NVIDIA DLSS, AMD FSR 4, Intel XeSS and the game's language are set in the wizard's step 2 only, so changing them for a version you already have meant finding how to rebuild it, and step 2 then showed the last build's choices, not that version's. This puts a gear on each version's row that opens exactly that. ## What changed - **A gear on a version's row** (beside Saves), tooltip "Build this version again with other settings: NVIDIA DLSS, AMD FSR 4, Intel XeSS, language". Shown for a version the list knows the version of; off while a build may not start (`CanStartBuild`) or the row is being deleted. - It starts the wizard as a **Rebuild** of that version in its folder, with its **switches and language set from the build itself** (`LauncherSettings.TakeChoicesOf`): the list's record of DLSS, FSR 4 and XeSS, else DLSS and the language read from the folder (`GameFolder.HasDlss`, `GameFolder.Language`); an upscaler the list does not know about is left as remembered. A switch whose licence was never accepted on this launcher stays off, and its tick asks for it as for a new build. As with any build, what step 2 shows is remembered for the next one. - **Step 1 is left by itself** (`FilesStepViewModel.ToSettings`) once the tools are here and the game file that build was made from ("Last used") passes its check. Another file picked, the file missing, or the page left, and step 1 stays for the player; Back from step 2 does not send it forward again. - How much is skipped is make_game.py's, as for any rebuild: the same .nup is not read again (its `.longshot_romfs` stamp), cached objects and the translation are reused where the settings don't touch them. - The tooltip in every catalog; "Build settings" (its accessible name) was there already. ## Testing **Tested** - `dotnet build LongshotLauncher.slnx -c Release`: 0 warnings, 0 errors; the app tests (`tests/launcher_app`) pass. - `tests/launcher_core/BuildChoicesChecks.cs` (new): the switches and language start at the build's; unknown ones stay as remembered; a licence never accepted keeps its switch off. - In the installed launcher (Windows 11, RTX card, Nightly 763 built with DLSS, FSR 4, XeSS, Italian): the gear on the row (screenshot); pressed, step 1 found the tools on the PC, checked the remembered .nup and moved to step 2 by itself, with DLSS, FSR 4, XeSS on and Italian picked; Back stayed on step 1, Back again to the home. The rebuild itself was not started here. **Still to test** - A full rebuild started from the gear, with one switch changed. - Linux and the Steam Deck. - On this Windows PC the core suite stops at `SavesChecks`, and `scripts/translations.py` reports catalog texts left over: both on `main` as it is too (clean checkout of 6887d57), not from this change. Screenshots follow in a comment.
feat(home): a version's gear builds it again with other settings, its own choices picked
Some checks are pending
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Compile and test (pull_request) Blocked by required conditions
4a079ade3a
The upscalers (NVIDIA DLSS, AMD FSR 4, Intel XeSS) and the game's language are chosen in the wizard's step 2 only, so
changing them for a version you have meant finding its rebuild. Its row now has a gear: the wizard for that version
again, its switches and language set from the build itself (the list's record, else its folder), and step 1 left by
itself once the tools are here and the game file it was built from passes its check. A switch whose licence was never
accepted on this launcher stays off, and its tick asks for it as for a new build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
First-time contributor

Screenshots (Windows 11, launcher in Italian; a local build with #261 and #263 in it too). Paths are blanked out.

The gear on the version's row, beside Saves:

Home row

Pressed: step 1 went on by itself, and step 2 opened with that build's DLSS, FSR 4, XeSS and Italian (the space line is #263's):

Step 2

Screenshots (Windows 11, launcher in Italian; a local build with #261 and #263 in it too). Paths are blanked out. The gear on the version's row, beside Saves: ![Home row](https://git.magicbean.dev/attachments/63544630-0e04-4f07-97fa-432415df7a03) Pressed: step 1 went on by itself, and step 2 opened with that build's DLSS, FSR 4, XeSS and Italian (the space line is #263's): ![Step 2](https://git.magicbean.dev/attachments/882ac99c-a9f7-4eeb-8372-984dcf412419)
Member

Possibly related, for context:

  • PR #263 fix(build): step 2 asks each drive for what the build takes there, not a first build's 60 GB on the game's — Overlaps wizard step 2 rebuild flow and build-space requirements
  • issue #237 Launcher: Build another version unavailable when Stable and Nightly both show Not found — Existing build-version selection issue, adjacent home build entry point
Possibly related, for context: - PR #263 fix(build): step 2 asks each drive for what the build takes there, not a first build's 60 GB on the game's — Overlaps wizard step 2 rebuild flow and build-space requirements - issue #237 Launcher: Build another version unavailable when Stable and Nightly both show Not found — Existing build-version selection issue, adjacent home build entry point
Author
First-time contributor

A full rebuild run through, started from the gear (#262) and allowed by the space check (#263): Nightly 763, upscalers turned off (DLSS, FSR 4, XeSS were on), Windows 11, game folder on C: with 18 GB free, build files on E:.

  • Done in about 3 minutes; the game folder is ready and listed as before.
  • make_game.py's own times (build_times.json): read 0.6 s (the .nup not read again: same stamp), lift 5.3 s (translation reused), compile 99 s (2 of 591 modules compiled; most of it planning and linking), finish 51 s, 157 s in all. Shader preparation then ran for ~20 s: the driver's pipelines were there already (longshot_programs.bin and longshot_prepared.bin written again, longshot_vk_pipelines.bin untouched).
  • Space: C: went from 18.1 to 16.9 GB free (~1.2 GB written: program files and shader caches, well under the 12 GB #263 asked). The build files on E: are back to 3.34 GB after the finish's clean-up, as before the rebuild.
  • With DLSS off, its runtimes and the ngx folder went from the game folder. FSR 4's and XeSS's DLLs stay (~110 MB): make_game.py removes FSR's mark only, and keeps XeSS's library by design; not this PR's to change.
A full rebuild run through, started from the gear (#262) and allowed by the space check (#263): Nightly 763, upscalers turned off (DLSS, FSR 4, XeSS were on), Windows 11, game folder on C: with 18 GB free, build files on E:. - **Done in about 3 minutes**; the game folder is ready and listed as before. - make_game.py's own times (`build_times.json`): read 0.6 s (the .nup not read again: same stamp), lift 5.3 s (translation reused), compile 99 s (**2 of 591 modules** compiled; most of it planning and linking), finish 51 s, 157 s in all. Shader preparation then ran for ~20 s: the driver's pipelines were there already (`longshot_programs.bin` and `longshot_prepared.bin` written again, `longshot_vk_pipelines.bin` untouched). - **Space**: C: went from 18.1 to 16.9 GB free (~1.2 GB written: program files and shader caches, well under the 12 GB #263 asked). The build files on E: are back to 3.34 GB after the finish's clean-up, as before the rebuild. - With DLSS off, its runtimes and the `ngx` folder went from the game folder. FSR 4's and XeSS's DLLs stay (~110 MB): make_game.py removes FSR's mark only, and keeps XeSS's library by design; not this PR's to change.
Some checks are pending
CI / Conventional Commit title (pull_request) Blocked by required conditions
CI / Compile and test (pull_request) Blocked by required conditions
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'feat/rebuild-settings:Mone-feat/rebuild-settings'
git switch 'Mone-feat/rebuild-settings'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!262
No description provided.