launcher: full overhaul of the Python launcher (mockup look, sharp text, no white window, 5 languages, diagnostics, Python install) #3182

Manually merged
github merged 45 commits from github-bot/gh-3182 into main 2026-12-03 01:32:57 +00:00 AGit
Owner

@⁠OreoFR on GitHub · 2026-12-02 17:07 UTC · original
OreoFR:feat/launcher-overhaul → main · +6110 −465 · 10 files · 45 commits · merged 2026-12-03 01:26 UTC

Item: LAUNCHER-OVERHAUL (claimed in the coordination issue). One pull request for the whole Python launcher (Launcher.bat → tools/leonida_launcher.py), the one players use. Players reported white or crashing windows, blurry text, options they could not find and "Exited with code 0" read as an error.

Default launch unchanged. The branch has current main, including the full-precompile default from e71aa0ef1. With default settings, PLAY runs the same command as main:

  • play_command() gives the same output as main's on 903 combinations of main's settings keys.
  • An agent review drove the real window with 120 settings files written by main's launcher: same settings after collect_settings(), same command on PLAY.
  • One intended exception: software ray tracing is no longer offered.

What changes

Look: the launcher mockup OreoFR chose.

  • Indigo, violet and pink; MANDY in a violet-to-pink gradient in the rail.
  • No picture files at all: no assets/mandy.png and no screenshot backdrop.
  • Text is sharp at 125-200 % (the process is DPI-aware, and pixel sizes follow the screen's scale).

Play page, three cards:

  • Play: PLAY drawn as a rounded violet-to-pink pill (Stop the same in red), the state under it, the game-folder hint, and the options PLAY passes.
  • Updates:
    • Whether this copy is up to date, or how many updates there are (one per pull request merged, rev-list --first-parent).
    • The last check time and a Check now button.
    • What is new: each merged pull request as #N <its title> (from git log --first-parent HEAD..@{u}), up to 6 lines, then "+ n more".
    • Update Mandy when there are updates: git pull --ff-only, then a rebuild if d3d12/ changed.
  • Output: the log, with Run in diagnostic mode and Copy my info.
  • The rail's bottom-left always shows the same update state (up to date, n updates, checking, not checked, zip copy, no git, check failed), the last check time, the branch and commit, and the GPU with its driver.

End of a run. "Exited with code 0" is replaced by one of:

  • the game closed;
  • it closed right after starting, with what to send;
  • it stopped with an error, and the code.

Settings, in the mockup's cards with hover tips:

  • Picture: Series S / X, DLSS, resolution, quality.
  • Frame generation:
    • Mode: DLSS (nothing passed), FSR (-FsrFrameGen) or Off (-NoFrameGen).
    • Frame limit: Auto (nothing passed), 30, 40, 60 or No limit (LEONIDA_FG_LIMIT_FPS via -More).
    • Smooth Motion.
  • Ray tracing: Off / Hardware (-HardwareRT). A software choice saved by an older launcher is dropped at the next Save or PLAY.
  • Shaders: prepare, and full precompilation (on by default; off with prepare on passes -PrecompileUsed), with the NVIDIA cache tip.
  • General, diagnostics & advanced: language, log, crash tracing (LEONIDA_D3D12_DRED=1), update check, advanced options (LEONIDA_*=value; malformed parts shown in red and not passed).
  • Game folders.
  • The DLSS mode, -Capture and a -FrameGen multiplier have no control any more; a value saved earlier is still passed.

-More path. With variables to pass, PLAY runs:

powershell -Command "& '…\play-d3d12.ps1' … -More @{K='v'}; exit $LASTEXITCODE"
  • Every argument is single-quoted, and quotes inside are doubled, including PowerShell's typographic ones (U+2018 to U+201B).
  • With nothing to pass, the command is the same -File one as on main.

Five languages: English, French, Spanish, Portuguese and German, picked from Windows' display language. A Language setting overrides it. The translations are tools/launcher_i18n/<code>.json.

Copy my info copies:

  • the Mandy commit;
  • each GPU with its driver (NVIDIA's own number: 621.47 from WMI's 32.0.16.2147);
  • the Python, Tk and Windows versions;
  • the switches and variables PLAY passes.

No folder names are included.

Launcher.bat

  • Looks for a Python 3.12+ that has Tcl/Tk.
  • Otherwise it asks, then installs Python 3.12 for the user (no admin): winget, else the same pinned python.org installer as Build.bat, checked against its SHA-256, with Tcl/Tk.
  • LEONIDA_PY_INSTALL_DRYRUN=1 prints the commands and runs nothing.

Since the first review

  • DLSS mode back in the Picture card (Auto / Quality / Balanced / Performance / Ultra performance; Auto passes nothing). On the Series X profile DLSS makes the picture only with a mode: a player with Series X and DLSS ticked got the game's own upscaler.

  • The pointer on PLAY froze the window (found with a real mouse). Hovering redrew the pill under the pointer, and Tk answered with Leave/Enter forever. The hover now only recolours. Checked with a real mouse; the previous code never answers again.

  • Greyed, linked controls, with values kept and back when the other choice is undone:

    • DLSS off greys the DLSS mode;
    • a DLSS mode greys Resolution;
    • frame generation Off greys the frame limit;
    • precompile all locks Prepare shaders on;
    • hardware ray tracing greys frame generation, with the note "Off with ray tracing for now.", as main's script leaves frame generation off with ray tracing. Lifting that is #3230, now a draft: a player reports the game running too fast with frame generation and hardware RT together.
    • Checked in a real window: 19/19 rule checks, clicks on greyed controls change nothing, the same command over 288 combinations.
  • Real click in game (RTX 4070 Laptop, 621.40): a mouse click on PLAY starts the script after 1 s. The game window appears after 27 s and the world after 77 s; the walk lasts 60 s, then a clean close, and the launcher shows "The game closed."

  • What the F1 menu saved, on the Play page. A "Saved in the F1 menu" section lists d3d12\leonida-settings.txt (label: value).

    • A muted line says what wins: these apply at every start unless the same option is changed here before PLAY.
    • "Clear F1 settings" asks first, deletes only that file, and is refused while the game runs.
    • Settings shows a muted "F1 menu: " under the options it overrides (frame generation, DLSS, ray tracing, profile, Smooth Motion).
  • Frame generation is no longer greyed under hardware RT when Advanced has LEONIDA_FG_WITH_RT=1: the command already passed it, but the page showed FG off. A muted note says it is unlocked.

  • Series X memory warning. When Windows' commit limit (RAM + page file, GlobalMemoryStatusEx) is under 64 GiB on the Series X profile, a note under Profile and a line on the Play card say so.

    • The ~59 GB the profile commits is from d3d12/docs/windows-memory.md (#3109).
    • It suggests Series S or a fixed page file, and its tooltip gives the steps with the size for this PC.
    • "Copy my info" adds the RAM and the commit limit.
    • It never blocks PLAY or changes the command. A player with 32 GB RAM and a 26 GB page file had frame generation cutting out on Series X.
  • -Quality is labelled "Steady bodies" (fewer stretched or jumping bodies, slower): it read "Quality" next to the DLSS mode's Quality, and its tip called it the game's higher settings. The DLSS subtitle now reads "When off, the picture is stretched".

  • Checked:

    • 53 launcher tests;
    • counter-tests: the F1 file's last value, the memory threshold, and the FG unlock in a real window (21 checks) each fail when broken;
    • real-mouse hover on the new button and tooltip;
    • the same PLAY command as before over 288 combinations.
  • More settings on the page.

    • Frame generation multiplier: Auto, 2x to 6x; 3x and more need an RTX 50, and an RTX 40 gets 2x.
    • Window shape: 16:9, your screen, 21:9, 32:9 or 16:10, with Fit / Stretch.
    • Graphics card choice, read from the registry.
    • Before this they could only be set in launcher.json. A player's old frame_gen: 2 now shows as 2x.
  • Advanced mode window.

    • All 682 LEONIDA_* variables, read from d3d12/docs/switches.md.
    • Search, a section filter, "Only what I set" and "Only those the play script sets".
    • On/off switches, and text fields that show the expected format in grey.
    • It writes the same Advanced field, so values go through -More as before.
    • It opens with a warning: the list is not a set of recommended settings.
  • Import saves.

    • Accepts saves this runtime wrote, from another PC, an older install or a kept copy: an old data folder, a saves tree at any level, or a ZIP.
    • Puts them under this PC's saves\<XUID>\<configuration>. The XUID is constant (xuser.rs); the configuration folder comes from the source path or this PC's only one.
    • Shows the list first, backs up the current saves before replacing any, and is refused while the game runs.
    • "Restore" is now "Restore a backup".
  • Frame generation with hardware RT follows #3230's script.

    • Series S, or Series X with 20 GB of video memory or more: frame generation stays available. On Auto, a note says to choose 2x, since ray tracing no longer brings the automatic 2x.
    • Series X under 20 GB: greyed with the reason, unless the Advanced field has LEONIDA_FG_WITH_RT=1.
    • LEONIDA_FG_WITH_RT=0: greyed.
    • The launcher never adds the unlock itself. Merge together with #3230.
  • Cards other than NVIDIA. DLSS, its mode, DLSS frame generation and Smooth Motion are greyed when no NVIDIA card is found (or the chosen card is not one). FSR stays available, and hardware RT gets a "not tested on AMD/Intel yet" note.

  • Smaller changes.

    • Fit / Stretch and Language are segmented buttons; the other lists do not fit at the minimum window width in every language.
    • The Series X memory note shows the limit to a tenth and says the 64 GB includes room for Windows.
  • Checked on 671d0c0f.

    • Tests: 87 launcher tests, 28 save tests.
    • Real-window checks:
      • the rule matrix, 111 checks: S/X × 8/16/24 GB × unlock none/1/0, plus NVIDIA/AMD/Intel;
      • Advanced mode;
      • save import, landing in the right folder with a backup first;
      • layout in 5 languages at two widths, 100 checks.
    • Counter-tests fail when each rule is broken.
    • The default PLAY command is byte-identical to main's.
    • Updating from the old Launcher.bat (rewritten under cmd by git pull) prints no false error, and the next start uses the same Python and launcher.json.

Review fixes

From an agent review and the reviews here:

  • A wheel over a drop-down no longer changes its value.
  • Typographic quotes are doubled in -Command.
  • Linux: Series X sets --series-x again, and the profile shown matches play-linux.sh.
  • A pending tip after a language change no longer errors, and the language is switched only with the window rebuild.
  • docs/launcher.md: closing the window does not save.
  • From an old-vs-new check of every page:
    • -Capture has its switch back (in the diagnostics card).
    • A diagnostic start no longer counts its -Log as chosen at the next PLAY.
  • Update from the old launcher. The launcher's Update replaces Launcher.bat while the old one still waits on python. When the window closed, cmd went on at byte 749 of the new file and printed an error plus "Python 3.12 or newer is needed" (reproduced).
    • The new file holds :: lines over that place, then a clean exit.
    • Its python line now ends the script by itself, so later updates cannot do it again.
    • The whole error path is on that line (merzleckeier's variant: call set "RC=%%errorlevel%%", then delayed expansion). The launcher's exit code goes back to the caller (git's or the build's with --update), and no label is needed in a replacing file.
    • Checked with Windows' own cmd: 0, 7, 128 and 255, with and without a mid-run rewrite; a path and an argument with !.
    • Covered by a test that fails on the old file.

Tested

  • python -I tests/test_leonida_launcher.py passes. It covers:
    • quoting, FSR, Off and the frame limit;
    • every translation against every t() text;
    • the language choice, the NVIDIA driver number, Copy my info;
    • "what is new" parsing and the first-parent count;
    • Launcher.bat's pinned installer.
  • Old vs new launcher, page by page, in a real Tk window with stubbed spawns and dialogs:
    • PLAY: the same command on 10 settings profiles;
    • Settings: 38 control changes, and old settings files saved without changes keep every key;
    • Mods: mod.json bytes identical;
    • Saves: trees, zips and bytes identical;
    • Tools: the same commands;
    • --update on temp clones: the same output in every case;
    • Launcher.bat: the same Python is picked;
    • launcher/serve.py endpoints, and starts with a broken folder or settings file.
  • Update from the old launcher to the new one, simulated with a fake launcher that replaces Launcher.bat mid-run: it now ends cleanly. The unpadded file showed the error.
  • Red/green: tests/test_leonida_launcher.py fails on main (3 failures, 14 errors) and passes on the branch.
  • Also run: tests/test_launcher_serve.py, test_win_launchers.py, test_shell_launchers.py, test_text_write_line_endings.py, test_docs_links.py, and check_no_game_data.py on the changed files.
  • By hand on Windows 11, RTX 4070 Laptop (driver 621.40), at 150 %:
    • every page in English and French, including the Play page with a faked "updates available" status;
    • Copy my info;
    • play-d3d12.ps1 -DryRun through -More;
    • Launcher.bat detection, and the install offer in dry run.
  • In game on the RTX 4070 Laptop (621.40): the launcher's own play_command and spawn against a leonida.exe built on main 45dc41f95, with a throwaway data folder.
    • Defaults: the -File … -Game … -Data … -Chosen none command. The game window drew its menus after 71 s, then a clean close; exit 0.
    • With -More (frame limit 40, DRED, keys file): the -Command … -More @{…} command. The game reached the world (3331 draws) and walked 60 s.
    • The runtime logged rendered_fps=40.0 (LEONIDA_FG_LIMIT_FPS) and its settings line lists the variables.
    • Frame rates in that run are not meaningful: the pipeline cache was cold.
  • Not done: a real Python install.

AI-assisted (oreofr-agent, Claude).

🤖 Generated with Claude Code

**@⁠OreoFR** on GitHub · 2026-12-02 17:07 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182) `OreoFR:feat/launcher-overhaul` → `main` · +6110 −465 · 10 files · 45 commits · merged 2026-12-03 01:26 UTC Item: **LAUNCHER-OVERHAUL** (claimed in the coordination issue). One pull request for the whole Python launcher (`Launcher.bat` → `tools/leonida_launcher.py`), the one players use. Players reported white or crashing windows, blurry text, options they could not find and "Exited with code 0" read as an error. **Default launch unchanged.** The branch has current `main`, including the full-precompile default from e71aa0ef1. With default settings, PLAY runs the same command as `main`: - `play_command()` gives the same output as `main`'s on 903 combinations of `main`'s settings keys. - An agent review drove the real window with 120 settings files written by `main`'s launcher: same settings after `collect_settings()`, same command on PLAY. - One intended exception: software ray tracing is no longer offered. ## What changes **Look**: the launcher mockup OreoFR chose. - Indigo, violet and pink; MANDY in a violet-to-pink gradient in the rail. - No picture files at all: no `assets/mandy.png` and no screenshot backdrop. - Text is sharp at 125-200 % (the process is DPI-aware, and pixel sizes follow the screen's scale). **Play page**, three cards: - *Play*: PLAY drawn as a rounded violet-to-pink pill (Stop the same in red), the state under it, the game-folder hint, and the options PLAY passes. - *Updates*: - Whether this copy is up to date, or how many updates there are (one per pull request merged, `rev-list --first-parent`). - The last check time and a **Check now** button. - **What is new**: each merged pull request as `#N <its title>` (from `git log --first-parent HEAD..@{u}`), up to 6 lines, then "+ n more". - **Update Mandy** when there are updates: `git pull --ff-only`, then a rebuild if `d3d12/` changed. - *Output*: the log, with **Run in diagnostic mode** and **Copy my info**. - The rail's bottom-left always shows the same update state (up to date, n updates, checking, not checked, zip copy, no git, check failed), the last check time, the branch and commit, and the GPU with its driver. **End of a run.** "Exited with code 0" is replaced by one of: - the game closed; - it closed right after starting, with what to send; - it stopped with an error, and the code. **Settings**, in the mockup's cards with hover tips: - *Picture*: Series S / X, DLSS, resolution, quality. - *Frame generation*: - Mode: DLSS (nothing passed), FSR (`-FsrFrameGen`) or Off (`-NoFrameGen`). - Frame limit: Auto (nothing passed), 30, 40, 60 or No limit (`LEONIDA_FG_LIMIT_FPS` via `-More`). - Smooth Motion. - *Ray tracing*: Off / Hardware (`-HardwareRT`). A software choice saved by an older launcher is dropped at the next Save or PLAY. - *Shaders*: prepare, and full precompilation (on by default; off with prepare on passes `-PrecompileUsed`), with the NVIDIA cache tip. - *General, diagnostics & advanced*: language, log, crash tracing (`LEONIDA_D3D12_DRED=1`), update check, advanced options (`LEONIDA_*=value`; malformed parts shown in red and not passed). - *Game folders*. - The DLSS mode, `-Capture` and a `-FrameGen` multiplier have no control any more; a value saved earlier is still passed. **`-More` path.** With variables to pass, PLAY runs: ``` powershell -Command "& '…\play-d3d12.ps1' … -More @{K='v'}; exit $LASTEXITCODE" ``` - Every argument is single-quoted, and quotes inside are doubled, including PowerShell's typographic ones (U+2018 to U+201B). - With nothing to pass, the command is the same `-File` one as on `main`. **Five languages**: English, French, Spanish, Portuguese and German, picked from Windows' display language. A Language setting overrides it. The translations are `tools/launcher_i18n/<code>.json`. **Copy my info** copies: - the Mandy commit; - each GPU with its driver (NVIDIA's own number: `621.47` from WMI's `32.0.16.2147`); - the Python, Tk and Windows versions; - the switches and variables PLAY passes. No folder names are included. **`Launcher.bat`** - Looks for a Python 3.12+ that has Tcl/Tk. - Otherwise it asks, then installs Python 3.12 for the user (no admin): winget, else the same pinned python.org installer as `Build.bat`, checked against its SHA-256, with Tcl/Tk. - `LEONIDA_PY_INSTALL_DRYRUN=1` prints the commands and runs nothing. ## Since the first review - **DLSS mode back in the Picture card** (Auto / Quality / Balanced / Performance / Ultra performance; Auto passes nothing). On the Series X profile DLSS makes the picture only with a mode: a player with Series X and DLSS ticked got the game's own upscaler. - **The pointer on PLAY froze the window** (found with a real mouse). Hovering redrew the pill under the pointer, and Tk answered with Leave/Enter forever. The hover now only recolours. Checked with a real mouse; the previous code never answers again. - **Greyed, linked controls**, with values kept and back when the other choice is undone: - DLSS off greys the DLSS mode; - a DLSS mode greys Resolution; - frame generation Off greys the frame limit; - precompile all locks Prepare shaders on; - hardware ray tracing greys frame generation, with the note "Off with ray tracing for now.", as `main`'s script leaves frame generation off with ray tracing. Lifting that is #3230, now a draft: a player reports the game running too fast with frame generation and hardware RT together. - Checked in a real window: 19/19 rule checks, clicks on greyed controls change nothing, the same command over 288 combinations. - **Real click in game** (RTX 4070 Laptop, 621.40): a mouse click on PLAY starts the script after 1 s. The game window appears after 27 s and the world after 77 s; the walk lasts 60 s, then a clean close, and the launcher shows "The game closed." - **What the F1 menu saved, on the Play page.** A "Saved in the F1 menu" section lists `d3d12\leonida-settings.txt` (label: value). - A muted line says what wins: these apply at every start unless the same option is changed here before PLAY. - "Clear F1 settings" asks first, deletes only that file, and is refused while the game runs. - Settings shows a muted "F1 menu: <value>" under the options it overrides (frame generation, DLSS, ray tracing, profile, Smooth Motion). - **Frame generation is no longer greyed under hardware RT when Advanced has `LEONIDA_FG_WITH_RT=1`**: the command already passed it, but the page showed FG off. A muted note says it is unlocked. - **Series X memory warning.** When Windows' commit limit (RAM + page file, `GlobalMemoryStatusEx`) is under 64 GiB on the Series X profile, a note under Profile and a line on the Play card say so. - The ~59 GB the profile commits is from `d3d12/docs/windows-memory.md` (#3109). - It suggests Series S or a fixed page file, and its tooltip gives the steps with the size for this PC. - "Copy my info" adds the RAM and the commit limit. - It never blocks PLAY or changes the command. A player with 32 GB RAM and a 26 GB page file had frame generation cutting out on Series X. - **`-Quality` is labelled "Steady bodies"** (fewer stretched or jumping bodies, slower): it read "Quality" next to the DLSS mode's Quality, and its tip called it the game's higher settings. The DLSS subtitle now reads "When off, the picture is stretched". - Checked: - 53 launcher tests; - counter-tests: the F1 file's last value, the memory threshold, and the FG unlock in a real window (21 checks) each fail when broken; - real-mouse hover on the new button and tooltip; - the same PLAY command as before over 288 combinations. - **More settings on the page.** - Frame generation multiplier: Auto, 2x to 6x; 3x and more need an RTX 50, and an RTX 40 gets 2x. - Window shape: 16:9, your screen, 21:9, 32:9 or 16:10, with Fit / Stretch. - Graphics card choice, read from the registry. - Before this they could only be set in `launcher.json`. A player's old `frame_gen: 2` now shows as 2x. - **Advanced mode window.** - All 682 `LEONIDA_*` variables, read from `d3d12/docs/switches.md`. - Search, a section filter, "Only what I set" and "Only those the play script sets". - On/off switches, and text fields that show the expected format in grey. - It writes the same Advanced field, so values go through `-More` as before. - It opens with a warning: the list is not a set of recommended settings. - **Import saves.** - Accepts saves this runtime wrote, from another PC, an older install or a kept copy: an old data folder, a `saves` tree at any level, or a ZIP. - Puts them under this PC's `saves\<XUID>\<configuration>`. The XUID is constant (`xuser.rs`); the configuration folder comes from the source path or this PC's only one. - Shows the list first, backs up the current saves before replacing any, and is refused while the game runs. - "Restore" is now "Restore a backup". - **Frame generation with hardware RT follows #3230's script.** - Series S, or Series X with 20 GB of video memory or more: frame generation stays available. On Auto, a note says to choose 2x, since ray tracing no longer brings the automatic 2x. - Series X under 20 GB: greyed with the reason, unless the Advanced field has `LEONIDA_FG_WITH_RT=1`. - `LEONIDA_FG_WITH_RT=0`: greyed. - The launcher never adds the unlock itself. Merge together with #3230. - **Cards other than NVIDIA.** DLSS, its mode, DLSS frame generation and Smooth Motion are greyed when no NVIDIA card is found (or the chosen card is not one). FSR stays available, and hardware RT gets a "not tested on AMD/Intel yet" note. - **Smaller changes.** - Fit / Stretch and Language are segmented buttons; the other lists do not fit at the minimum window width in every language. - The Series X memory note shows the limit to a tenth and says the 64 GB includes room for Windows. - **Checked on `671d0c0f`.** - Tests: 87 launcher tests, 28 save tests. - Real-window checks: - the rule matrix, 111 checks: S/X × 8/16/24 GB × unlock none/1/0, plus NVIDIA/AMD/Intel; - Advanced mode; - save import, landing in the right folder with a backup first; - layout in 5 languages at two widths, 100 checks. - Counter-tests fail when each rule is broken. - The default PLAY command is byte-identical to `main`'s. - Updating from the old Launcher.bat (rewritten under cmd by `git pull`) prints no false error, and the next start uses the same Python and `launcher.json`. ## Review fixes From an agent review and the reviews here: - A wheel over a drop-down no longer changes its value. - Typographic quotes are doubled in `-Command`. - Linux: Series X sets `--series-x` again, and the profile shown matches `play-linux.sh`. - A pending tip after a language change no longer errors, and the language is switched only with the window rebuild. - `docs/launcher.md`: closing the window does not save. - From an old-vs-new check of every page: - `-Capture` has its switch back (in the diagnostics card). - A diagnostic start no longer counts its `-Log` as chosen at the next PLAY. - **Update from the old launcher.** The launcher's Update replaces `Launcher.bat` while the old one still waits on python. When the window closed, cmd went on at byte 749 of the new file and printed an error plus "Python 3.12 or newer is needed" (reproduced). - The new file holds `::` lines over that place, then a clean exit. - Its python line now ends the script by itself, so later updates cannot do it again. - The whole error path is on that line (merzleckeier's variant: `call set "RC=%%errorlevel%%"`, then delayed expansion). The launcher's exit code goes back to the caller (git's or the build's with `--update`), and no label is needed in a replacing file. - Checked with Windows' own cmd: 0, 7, 128 and 255, with and without a mid-run rewrite; a path and an argument with `!`. - Covered by a test that fails on the old file. ## Tested - `python -I tests/test_leonida_launcher.py` passes. It covers: - quoting, FSR, Off and the frame limit; - every translation against every `t()` text; - the language choice, the NVIDIA driver number, Copy my info; - "what is new" parsing and the first-parent count; - `Launcher.bat`'s pinned installer. - Old vs new launcher, page by page, in a real Tk window with stubbed spawns and dialogs: - PLAY: the same command on 10 settings profiles; - Settings: 38 control changes, and old settings files saved without changes keep every key; - Mods: `mod.json` bytes identical; - Saves: trees, zips and bytes identical; - Tools: the same commands; - `--update` on temp clones: the same output in every case; - `Launcher.bat`: the same Python is picked; - `launcher/serve.py` endpoints, and starts with a broken folder or settings file. - Update from the old launcher to the new one, simulated with a fake launcher that replaces `Launcher.bat` mid-run: it now ends cleanly. The unpadded file showed the error. - Red/green: `tests/test_leonida_launcher.py` fails on `main` (3 failures, 14 errors) and passes on the branch. - Also run: `tests/test_launcher_serve.py`, `test_win_launchers.py`, `test_shell_launchers.py`, `test_text_write_line_endings.py`, `test_docs_links.py`, and `check_no_game_data.py` on the changed files. - By hand on Windows 11, RTX 4070 Laptop (driver 621.40), at 150 %: - every page in English and French, including the Play page with a faked "updates available" status; - Copy my info; - `play-d3d12.ps1 -DryRun` through `-More`; - `Launcher.bat` detection, and the install offer in dry run. - In game on the RTX 4070 Laptop (621.40): the launcher's own `play_command` and `spawn` against a `leonida.exe` built on `main` 45dc41f95, with a throwaway data folder. - Defaults: the `-File … -Game … -Data … -Chosen none` command. The game window drew its menus after 71 s, then a clean close; exit 0. - With `-More` (frame limit 40, DRED, keys file): the `-Command … -More @{…}` command. The game reached the world (3331 draws) and walked 60 s. - The runtime logged `rendered_fps=40.0` (LEONIDA_FG_LIMIT_FPS) and its settings line lists the variables. - Frame rates in that run are not meaningful: the pipeline cache was cold. - Not done: a real Python install. AI-assisted (oreofr-agent, Claude). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Sharp text: the process says it is DPI-aware, and every size in pixels follows the screen's scale.
- No white window at start: the newest screenshot is looked for off the window's thread, one over
  12 MB or not a PNG is skipped, and an error in a button's code goes to the output box.
- Settings in sections (Game, Picture, Frame generation, Ray tracing, Shaders, General,
  Diagnostics and advanced) with switches and segmented choices, in a scrolling page; frame
  generation gets Off (-NoFrameGen) beside Auto and 2x-6x.
- English, French, Spanish, Portuguese and German, following Windows' display language
  (tools/launcher_i18n/<code>.json), with a Language setting over it.
- Advanced options (LEONIDA_*=value) and crash tracing (LEONIDA_D3D12_DRED=1) reach the runtime
  through play-d3d12.ps1 -More, via powershell -Command with single-quoted arguments.
- Run in diagnostic mode (-Log and DRED, then the logs folder) and Copy my info (commit, cards and
  drivers with NVIDIA's own number, Python/Tk/Windows, options; no folder names).
- Launcher.bat looks for a Python 3.12+ that has Tcl/Tk and offers to install Python 3.12 for the
  user (winget, else the pinned python.org installer Build.bat uses, with Tcl/Tk).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Players read 'Exited with code 0' as an error: the end of a run now says the game closed, that it
closed right after starting (with what to send), or that it stopped with an error code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ports MoonEyes' LAUNCHER-MANDY-LOOK (#3064) onto the overhaul: the palette read off assets/mandy.png,
the picture at the top of the rail, the gradient hero with glow and palm fronds, pink PLAY, the
Mandy name (MANDY in the hero in place of the game's name). Software ray tracing is no longer
offered (OreoFR's call); a software choice saved by an older launcher is dropped at the next save.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cards in two columns (Picture, Frame generation, Ray tracing, Shaders; General, diagnostics &
advanced), the mockup's rows and lines, hover tips for the longer texts, the NVIDIA tip box, the
advanced field under its label, Save in the violet-to-pink gradient with the legend under the
buttons, MANDY in the gradient and the state, branch, commit, card and driver in the rail. Frame
generation: DLSS / FSR (-FsrFrameGen) / Off and a frame limit (LEONIDA_FG_LIMIT_FPS via -More,
Auto = nothing passed). Ray tracing: Off / Hardware. The game folders sit in a card under them.
Nothing passed changes for settings left at their defaults.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The picture already in the repository, shown above MANDY as in #3064; the name alone if it cannot be read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The mouse wheel over a drop-down only scrolls the page: Tk's Combobox binding stepped a read-only
  list's value (Frame limit Auto -> 30 while scrolling), which PLAY then passed.
- ps_quote doubles PowerShell's typographic single quotes (U+2018-U+201B) too: a folder or value with
  one ended the -Command string (checked: no command runs out of it any more).
- Linux: the profile follows play-linux.sh (Series S unless --series-x) and Series X sets series_x.
- A hover tip pending on a page rebuilt after a language change does nothing; the new language is
  loaded only with the rebuilt window (not while the game runs).
- docs/launcher.md: closing the window does not save; PLAY does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps main's new default: precompile_all on, -PrecompileUsed when it is turned off with the
preparation on. The overhauled Settings page drives the same setting; docs/launcher.md says so.
PLAY's command is identical to current main's on 903 settings combinations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lighter under the pointer, no stippled shadow; one palm frond only, top right, so the title and PLAY
sit on a clear background.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Play page as the mockup's cards: Play (the gradient PLAY pill, the state, the game folder and the
  options PLAY passes), Updates (up to date / n updates / why it cannot tell, the last check with
  Check now, what is new and Update Mandy), Output (the log with diagnostic mode and Copy my info).
- What is new: update_status reads `git log --first-parent HEAD..@{u}` (50 at most) and
  parse_changes names a merged pull request "#N <its title>" (the first line of the merge's body);
  six lines shown, cut to the card's width, then "+ n more". A failed log leaves it empty.
- The rail's state follows the same check: up to date, n updates, checking, not checked, zip copy,
  git not installed, no branch to follow, check failed; "Checked HH:MM" under it.
- The screenshot behind PLAY is gone with its search (newest_picture, hero_candidate and their
  tests); Tools still opens the screenshots folder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 18:29:29 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-02 17:18 UTC · original · reviewed

Linux Console profile does not apply Series X. The new control shows X for a fresh profile (tools/leonida_launcher.py:1487), but collect_settings at lines 1610–1613 only clears series_x when S is selected. Choosing X after S, or leaving a fresh profile on the displayed X, leaves both flags false. I exercised the actual collection method and play_command(..., windows=False) with synthetic settings: both cases omit --series-x, and scripts/play-linux.sh:31–32 therefore starts Series S. An older JSON with series_x=true still works. Please initialize the control from the host default and map both explicit selections to the saved flags.

On 2bb36a3cb plus main 5b1fff821, 58 launcher tests passed on Linux with four skips. That run covers the headless launcher suite. The two current changes in this PR and #3172 also produce merge conflicts in tools/leonida_launcher.py and docs/launcher.md, so the second of them to land will need reconciliation. git diff --check and the no-game-data check passed. AI-assisted: OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-02 17:18 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6155687326) · **reviewed** **Linux Console profile does not apply Series X.** The new control shows X for a fresh profile (`tools/leonida_launcher.py:1487`), but `collect_settings` at lines 1610–1613 only clears `series_x` when S is selected. Choosing X after S, or leaving a fresh profile on the displayed X, leaves both flags false. I exercised the actual collection method and `play_command(..., windows=False)` with synthetic settings: both cases omit `--series-x`, and `scripts/play-linux.sh:31–32` therefore starts Series S. An older JSON with `series_x=true` still works. Please initialize the control from the host default and map both explicit selections to the saved flags. On `2bb36a3cb` plus `main` `5b1fff821`, 58 launcher tests passed on Linux with four skips. That run covers the headless launcher suite. The two current changes in this PR and #3172 also produce merge conflicts in `tools/leonida_launcher.py` and `docs/launcher.md`, so the second of them to land will need reconciliation. `git diff --check` and the no-game-data check passed. AI-assisted: OpenAI Codex.
From the old-vs-new check of every page: -Capture had lost its control (a saved true could not be
turned off), and a diagnostic PLAY stored its own -Log as the last options, so the next normal PLAY
passed -Chosen Log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cmd reads a running batch file line by line from the byte where it stopped. The launcher's Update
replaces Launcher.bat while the old one waits on python; when the window closed, cmd went on at byte
749 of the new file and printed an error and 'Python 3.12 or newer is needed' (reproduced). The new
file holds :: lines (labels, skipped from any byte) over that place, then a plain exit, and its own
python line now ends the script by itself, so later updates cannot do it again. Test included.

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

@⁠merzleckeier on GitHub · 2026-12-02 17:22 UTC · original

I rechecked the Series X finding on 5287ec6ca + 5b1fff821. The headless launcher suite still passes (58 passed, four skipped), and both Linux cases from the review still fail. I tried this small adjustment in a scratch copy of the selection logic:

  • At tools/leonida_launcher.py:1541, choose S when s["series_s"] or (not WINDOWS and not s["series_x"]).
  • At lines 1667–1668, under if not WINDOWS or value == "s":, assign self.settings["series_x"] = value == "x".

The settings-to-command probe passed all eight cases with that adjustment: fresh config, S → X, X → S, and a saved X choice on each platform. It keeps Windows' existing default and restores --series-x on Linux. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-02 17:22 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7353231911) I rechecked the Series X finding on `5287ec6ca` + `5b1fff821`. The headless launcher suite still passes (58 passed, four skipped), and both Linux cases from the review still fail. I tried this small adjustment in a scratch copy of the selection logic: - At `tools/leonida_launcher.py:1541`, choose S when `s["series_s"] or (not WINDOWS and not s["series_x"])`. - At lines 1667–1668, under `if not WINDOWS or value == "s":`, assign `self.settings["series_x"] = value == "x"`. The settings-to-command probe passed all eight cases with that adjustment: fresh config, S → X, X → S, and a saved X choice on each platform. It keeps Windows' existing default and restores `--series-x` on Linux. AI-assisted.
Author
Owner

@⁠fiestorra on GitHub · 2026-12-02 17:22 UTC · original

Verified the parts that can be verified without eyes on the window: it applies on the current main, its tests pass, and the four translations carry the same keys.

merge base 5b1fff821 (current main), head 5287ec6ca
git apply on main   (5 files)

python -I tests/test_leonida_launcher.py     Ran 40 tests in 0.120s   OK   (25 before this PR, so 15 are new)
python -I tests/test_win_launchers.py        Ran 5 tests              OK

i18n, key sets compared across every file:
  es.json / de.json / fr.json / pt.json   179 keys each, 0 missing, 0 extra

The 15 new launcher tests are the part I would trust most here: an overhaul of 2,277 lines that brings its own tests for the behaviour it adds, and the translation sets are identical, which is the mistake a four-language change usually makes (one file gets a key the others do not).

What I cannot check, and it is the headline of the pull request: "sharp text, no white window". This session has no interactive desktop (CopyFromScreen: The handle is invalid), so I cannot see the DPI call take effect, the window not flash white, or the text render sharp - and I have been bitten by exactly this before: a theme fix that rendered invisible on Windows and looked fine in the test (my #3157, withdrawn for it). A screenshot from the author with the launcher open - sharp text and no flash - is worth more than anything I can add here, and it is the one piece of evidence the body is missing.

For the merge: the checks show BLOCKED, and with 2,277 added lines that is the thing to clear before a reviewer spends an hour on it.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-12-02 17:22 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7353240991) **Verified the parts that can be verified without eyes on the window: it applies on the current `main`, its tests pass, and the four translations carry the same keys.** ``` merge base 5b1fff821 (current main), head 5287ec6ca git apply on main (5 files) python -I tests/test_leonida_launcher.py Ran 40 tests in 0.120s OK (25 before this PR, so 15 are new) python -I tests/test_win_launchers.py Ran 5 tests OK i18n, key sets compared across every file: es.json / de.json / fr.json / pt.json 179 keys each, 0 missing, 0 extra ``` **The 15 new launcher tests are the part I would trust most here**: an overhaul of 2,277 lines that brings its own tests for the behaviour it adds, **and the translation sets are identical**, which is the mistake a four-language change usually makes (one file gets a key the others do not). **What I cannot check, and it is the headline of the pull request**: **"sharp text, no white window"**. **This session has no interactive desktop** (`CopyFromScreen: The handle is invalid`), **so I cannot see the DPI call take effect, the window not flash white, or the text render sharp** - **and I have been bitten by exactly this before**: a theme fix that rendered invisible on Windows and looked fine in the test (my #3157, withdrawn for it). **A screenshot from the author with the launcher open - sharp text and no flash - is worth more than anything I can add here, and it is the one piece of evidence the body is missing.** **For the merge**: the checks show **`BLOCKED`**, and with 2,277 added lines that is the thing to clear before a reviewer spends an hour on it. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-02 17:28 UTC · original

GUI check on 3baaba941 against main 5b1fff821: I ran the real Tk 8.6 window on an isolated Linux display at 120 dpi (1.25 Tk scaling, 1398×924 window), with synthetic settings and no game launch. Play and Settings rendered. Switching the window to German and French rebuilt Settings without a Tk callback error, and the French page and navigation both said “Réglages”. Setting FSR with a limit of 40 or No limit produced -FsrFrameGen and the corresponding -More value (40 or 0) in the generated Windows command. This test covers command construction and Linux rendering.

The open profile issue is also visible in the running window. Fresh Linux settings show Series X, and setting the real profile variable S then X still produces a command without --series-x. The headless suite passed 59 tests with four skips. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-02 17:28 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7353336453) GUI check on `3baaba941` against `main` `5b1fff821`: I ran the real Tk 8.6 window on an isolated Linux display at 120 dpi (1.25 Tk scaling, 1398×924 window), with synthetic settings and no game launch. Play and Settings rendered. Switching the window to German and French rebuilt Settings without a Tk callback error, and the French page and navigation both said “Réglages”. Setting FSR with a limit of 40 or No limit produced `-FsrFrameGen` and the corresponding `-More` value (`40` or `0`) in the generated Windows command. This test covers command construction and Linux rendering. The open profile issue is also visible in the running window. Fresh Linux settings show Series X, and setting the real profile variable S then X still produces a command without `--series-x`. The headless suite passed 59 tests with four skips. AI-assisted.
The same-line handler returned 1 for every failure; --update returns git's status or the build's.
:failed reads %ERRORLEVEL% at the start of its own line and 'call exit /b %%errorlevel%%' ends the
script with it, still on the line cmd parsed before the launcher ran (an update replacing the file
cannot change it). Checked: 0, 1, 3 and 128 come back; old -> new and new -> newer mid-run ends clean.

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

@⁠MoonEyes on GitHub · 2026-12-02 18:28 UTC · original

Re-verified #3182 at bf36bc034 on Linux (headless, no Tk): red on main, green with the PR, related suites pass. merzleckeier's Linux Series X finding is fixed. The window itself has not been seen at this head.

head      bf36bc034 (3 commits since 6b7ff5ee5: a385951d plain PLAY banner, 661b4502 Play page in cards,
          bf36bc03 update count is first-parent)
base      origin/main 45dc41f95 = merge base (fast-forward)
CI        no check runs on bf36bc034 (mergeable_state blocked)
machine   Linux, Python 3.13, no tkinter, no GPU, no game files

Red/green: python -I scripts/red_green.py refs/pr/3182 --base origin/main --no-fetch --no-cargo --work-dir <scratch>

red: the base plus the tests of tests/test_leonida_launcher.py
red then green (16): AdvancedOptionTests (6), HelpInfoTests (3), LanguageTests (4),
                     LauncherBatTests.test_it_looks_for_tk_and_offers_the_same_python_as_build,
                     UpdateTests.test_behind_lists_what_is_new,
                     UpdateTests.test_the_count_is_one_per_merged_pull_request (new in bf36bc03)
pass on both: 24
verdict: red then green

On the head

Command Result
python -I tests/test_leonida_launcher.py 42 tests, OK
python -I tests/test_win_launchers.py 6 tests, OK (5 skipped: Windows only)
python -I tests/test_shell_launchers.py 7 tests, OK
python -I tests/test_docs_repo_paths.py, tests/test_docs_links.py 5 and 18 tests, OK
python -m compileall -q on the changed .py files OK
python -I scripts/check_no_game_data.py on the 8 changed files exit 0
git diff --check origin/main refs/pr/3182 clean

Earlier points

  • merzleckeier's review on 5287ec6ca (Linux: choosing X, or a fresh profile shown as X, left both flags false): fixed. tools/leonida_launcher.py:1692 now starts the control from the host default ("x" if s["series_x"] else "s" off Windows), and collect_settings at 1850-1855 sets series_x = value == "x" off Windows, so play_command adds --series-x. On Windows, X still writes no explicit switch, which keeps an F1 choice. This mapping is in the GUI path only and has no headless test.
  • bf36bc03: update_status counts rev-list --first-parent --count HEAD..@{u}, matching the first-parent "what is new" list. Covered by the new UpdateTests case.
  • The nit from last time stands: the Python download, hash and install block is in both Build.bat and Launcher.bat.

Finding: #3130 adds its own Series S / X radio to the old Settings page; git merge-tree of the two heads conflicts in tools/leonida_launcher.py. If this lands, #3130 is superseded.

Not checked here: the Tk window. The last GUI check was on 3baaba941; the Play page has since been rebuilt in cards (661b4502, +433/-237 lines in tools/leonida_launcher.py) and the PLAY banner changed twice.

Verdict: ready for the headless part. One look at the window on bf36bc034, and CI on this head, before merge.

AI-assisted: Claude Opus 5.5 (Claude Code), verification only.

AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.


Generated by Claude Code

**@⁠MoonEyes** on GitHub · 2026-12-02 18:28 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7354635243) **Re-verified #3182 at `bf36bc034` on Linux (headless, no Tk): red on `main`, green with the PR, related suites pass. merzleckeier's Linux Series X finding is fixed. The window itself has not been seen at this head.** ``` head bf36bc034 (3 commits since 6b7ff5ee5: a385951d plain PLAY banner, 661b4502 Play page in cards, bf36bc03 update count is first-parent) base origin/main 45dc41f95 = merge base (fast-forward) CI no check runs on bf36bc034 (mergeable_state blocked) machine Linux, Python 3.13, no tkinter, no GPU, no game files ``` **Red/green:** `python -I scripts/red_green.py refs/pr/3182 --base origin/main --no-fetch --no-cargo --work-dir <scratch>` ``` red: the base plus the tests of tests/test_leonida_launcher.py red then green (16): AdvancedOptionTests (6), HelpInfoTests (3), LanguageTests (4), LauncherBatTests.test_it_looks_for_tk_and_offers_the_same_python_as_build, UpdateTests.test_behind_lists_what_is_new, UpdateTests.test_the_count_is_one_per_merged_pull_request (new in bf36bc03) pass on both: 24 verdict: red then green ``` **On the head** | Command | Result | |---|---| | `python -I tests/test_leonida_launcher.py` | 42 tests, OK | | `python -I tests/test_win_launchers.py` | 6 tests, OK (5 skipped: Windows only) | | `python -I tests/test_shell_launchers.py` | 7 tests, OK | | `python -I tests/test_docs_repo_paths.py`, `tests/test_docs_links.py` | 5 and 18 tests, OK | | `python -m compileall -q` on the changed `.py` files | OK | | `python -I scripts/check_no_game_data.py` on the 8 changed files | exit 0 | | `git diff --check origin/main refs/pr/3182` | clean | **Earlier points** - merzleckeier's review on `5287ec6ca` (Linux: choosing X, or a fresh profile shown as X, left both flags false): fixed. `tools/leonida_launcher.py:1692` now starts the control from the host default (`"x" if s["series_x"] else "s"` off Windows), and `collect_settings` at 1850-1855 sets `series_x = value == "x"` off Windows, so `play_command` adds `--series-x`. On Windows, X still writes no explicit switch, which keeps an F1 choice. This mapping is in the GUI path only and has no headless test. - `bf36bc03`: `update_status` counts `rev-list --first-parent --count HEAD..@{u}`, matching the first-parent "what is new" list. Covered by the new `UpdateTests` case. - The nit from last time stands: the Python download, hash and install block is in both `Build.bat` and `Launcher.bat`. **Finding:** #3130 adds its own Series S / X radio to the old Settings page; `git merge-tree` of the two heads conflicts in `tools/leonida_launcher.py`. If this lands, #3130 is superseded. **Not checked here:** the Tk window. The last GUI check was on `3baaba941`; the Play page has since been rebuilt in cards (`661b4502`, +433/-237 lines in `tools/leonida_launcher.py`) and the PLAY banner changed twice. **Verdict: ready** for the headless part. One look at the window on `bf36bc034`, and CI on this head, before merge. AI-assisted: Claude Opus 5.5 (Claude Code), verification only. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
A replacing Launcher.bat without the :failed label made a failed update print 'Target to GOTO not
found'. The status is now taken with 'call set' on the same parsed line, then delayed expansion
gives it to the message and to exit /b. Checked with Windows' own cmd: 0, 7, 128 and 255 come back,
with and without a mid-run rewrite; a path and an argument with ! pass through; old -> new and
new -> newer updates end clean.

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

@⁠merzleckeier on GitHub · 2026-12-02 18:50 UTC · original

Re-tested the Series X fix in the real Tk 8.6 window on Linux, head bf36bc034 merged cleanly with main b41763227. Fresh settings select Series S and omit --series-x. Changing S → X → S → X adds, removes, then restores --series-x in the generated Linux command. Saving and reloading the last selection preserves Series X and its flag. This closes the profile finding from my review.

Play and Settings rendered on the isolated 120 dpi display. German and French both rebuilt Settings without a Tk callback error. FSR with frame limits 40 and No limit still generated the expected Windows arguments. The launcher suite passed 60 tests with five skips. Synthetic settings only, no game launch. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-02 18:50 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7355244281) Re-tested the Series X fix in the real Tk 8.6 window on Linux, head `bf36bc034` merged cleanly with `main` `b41763227`. Fresh settings select Series S and omit `--series-x`. Changing S → X → S → X adds, removes, then restores `--series-x` in the generated Linux command. Saving and reloading the last selection preserves Series X and its flag. This closes the profile finding from my review. Play and Settings rendered on the isolated 120 dpi display. German and French both rebuilt Settings without a Tk callback error. FSR with frame limits 40 and No limit still generated the expected Windows arguments. The launcher suite passed 60 tests with five skips. Synthetic settings only, no game launch. AI-assisted.
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-02 19:05 UTC · original

I verified the batch self-update fix on 009abfbb1 using Wine CMD and Windows Python 3.12. A synthetic updater replaced the running main batch with the PR version and returned 0. CMD exited 0 without the spurious Python setup message I reproduced when replacing it with bf36bc034. The launcher-related Linux suite passed 61 tests with 5 skips.

One follow-up for the same-line error branch in Launcher.bat. With a synthetic updater that returns 128 and leaves the batch untouched, Launcher.bat --update exits 128 on main and bf36bc034, and exits 1 on 009abfbb1. Python’s run_update() can return Git’s status directly and also propagates the rebuild status. Could the same-line exit preserve that child status? Keeping the handler on the same parsed line still matters when the file is replaced during an update.

AI-assisted: OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-02 19:05 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7355618182) I verified the batch self-update fix on `009abfbb1` using Wine CMD and Windows Python 3.12. A synthetic updater replaced the running `main` batch with the PR version and returned 0. CMD exited 0 without the spurious Python setup message I reproduced when replacing it with `bf36bc034`. The launcher-related Linux suite passed 61 tests with 5 skips. One follow-up for the same-line error branch in `Launcher.bat`. With a synthetic updater that returns 128 and leaves the batch untouched, `Launcher.bat --update` exits 128 on `main` and `bf36bc034`, and exits 1 on `009abfbb1`. Python’s `run_update()` can return Git’s status directly and also propagates the rebuild status. Could the same-line exit preserve that child status? Keeping the handler on the same parsed line still matters when the file is replaced during an update. AI-assisted: OpenAI Codex.
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-02 19:11 UTC · original · edited 2026-12-02 19:27 UTC

Thanks for the quick follow-up. I retested 79a4dc0eb with Wine 11.22 CMD and synthetic Python 3.12. The success path still returns 0, including an update from main. With Launcher.bat left unchanged, Python exits 7, 128 and 255 all print the right code, but the batch returns 193 to the caller. The older main batch returned 128 in the same no-rewrite test. This result is from Wine CMD. A native CMD check would tell us whether call exit /b %%errorlevel%% behaves differently there.

I also simulated a pull replacing Launcher.bat followed by a failed build. When the replacement had no :failed label, the running batch printed Target to GOTO not found. The post-Python path still depends on the replacement file through call :failed. An end-to-end batch test covering a nonzero exit, with and without a rewrite, would catch both outcomes that the current text assertion misses. Linux launcher tests passed again (61 passed, 5 skipped).

Follow-up. I tried keeping the entire error handler on the parsed line. Capture the child status with call set before enabling delayed expansion, then use that captured value for the message and exit. The :failed helper can be removed.

"%PY_EXE%" %PY_ARG% -I "%~dp0tools\leonida_launcher.py" %* && exit /b 0 || (call set "RC=%%errorlevel%%" & setlocal EnableDelayedExpansion & echo. & echo The launcher stopped with code !RC!. Read the message above. & (if not defined LEONIDA_NO_PAUSE pause) & exit /b !RC!)

On Wine 11.22 this passed 18 cases. The batch returned 0, 7, 128 and 255 with and without a mid-run rewrite, both with the pause disabled and with a key supplied. An update from the main batch to this variant still returned 0. The Python stub also received the expected quoted argument containing spaces and !. I tested this in a scratch copy. A native CMD run would complement the Wine results.

Confirmed on the PR head dcf03779a. The submitted batch passed the same 18 Wine CMD cases, including all four exit codes, a mid-run replacement without the helper label, and the upgrade from main. The launcher suite on Linux passed 61 tests with 5 skips. The commit message records the author’s matching checks with native Windows CMD. This resolves the exit-code finding from my review.

AI-assisted: OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-02 19:11 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7355748133) · edited 2026-12-02 19:27 UTC Thanks for the quick follow-up. I retested `79a4dc0eb` with Wine 11.22 CMD and synthetic Python 3.12. The success path still returns 0, including an update from `main`. With `Launcher.bat` left unchanged, Python exits 7, 128 and 255 all print the right code, but the batch returns 193 to the caller. The older `main` batch returned 128 in the same no-rewrite test. This result is from Wine CMD. A native CMD check would tell us whether `call exit /b %%errorlevel%%` behaves differently there. I also simulated a pull replacing `Launcher.bat` followed by a failed build. When the replacement had no `:failed` label, the running batch printed `Target to GOTO not found`. The post-Python path still depends on the replacement file through `call :failed`. An end-to-end batch test covering a nonzero exit, with and without a rewrite, would catch both outcomes that the current text assertion misses. Linux launcher tests passed again (61 passed, 5 skipped). **Follow-up.** I tried keeping the entire error handler on the parsed line. Capture the child status with `call set` before enabling delayed expansion, then use that captured value for the message and exit. The `:failed` helper can be removed. ```bat "%PY_EXE%" %PY_ARG% -I "%~dp0tools\leonida_launcher.py" %* && exit /b 0 || (call set "RC=%%errorlevel%%" & setlocal EnableDelayedExpansion & echo. & echo The launcher stopped with code !RC!. Read the message above. & (if not defined LEONIDA_NO_PAUSE pause) & exit /b !RC!) ``` On Wine 11.22 this passed 18 cases. The batch returned 0, 7, 128 and 255 with and without a mid-run rewrite, both with the pause disabled and with a key supplied. An update from the `main` batch to this variant still returned 0. The Python stub also received the expected quoted argument containing spaces and `!`. I tested this in a scratch copy. A native CMD run would complement the Wine results. **Confirmed on the PR head `dcf03779a`.** The submitted batch passed the same 18 Wine CMD cases, including all four exit codes, a mid-run replacement without the helper label, and the upgrade from `main`. The launcher suite on Linux passed 61 tests with 5 skips. The commit message records the author’s matching checks with native Windows CMD. This resolves the exit-code finding from my review. AI-assisted: OpenAI Codex.
On the Series X profile DLSS makes the picture only with a mode (-Dlss); without a control for it
a player with Series X and DLSS ticked got the game's own upscaler (a player's log: own upscaler at
0.6, no LEONIDA_UPSCALE). Auto passes nothing, so the default launch is unchanged. Checked in a real
window: Auto -> no switch, Series X + Quality -> -Dlss quality, a saved mode shown and kept, back to
Auto -> none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hovering the drawn pill redrew it: its items were made again under the pointer, Tk sent Leave and
Enter for them, which redrew it again, forever; the window stopped answering ('Not responding') and
a click on PLAY never got through. Found with a real mouse (SetCursorPos/mouse_event) on the window.
The hover now comes from the canvas widget's own Enter/Leave and only recolours the lines in place.
Checked with the real mouse, the game's start replaced by a 4 s dummy: the pointer resting on PLAY
3 s (the window's thread kept beating, 28 beats), a real click starts PLAY, its end turns Stop back
into PLAY. The same check on the previous code never answers again (timeout).

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

@⁠lixonik on GitHub · 2026-12-02 21:03 UTC · original

Native Windows 10 pre-merge verification & review of PR #3182 (5a29349f7) merged cleanly onto main (8a9235d02):

  • Clean-room check: python -I scripts/check_no_game_data.py PASS.
  • Green (merged 5a29349f7 onto 8a9235d02):
    • python -I tests/test_leonida_launcher.py -- 43 tests, OK (0.175 s).
    • All 4 i18n JSON catalogs (de.json, es.json, fr.json, pt.json) parsed cleanly with 207 matching keys each; py_compile on tools/leonida_launcher.py PASS.
  • Red -> Green proof (main tools/leonida_launcher.py + Launcher.bat against PR tests): FAILED (failures=3, errors=14) on the new i18n, update, advanced-option, info, and Launcher.bat tests.
  • Code review (Launcher.bat): Clean self-update :: padding past byte 749, single-line launch+error handler so self-updates cannot break error exit-code propagation, SHA-256 verification on the fallback python.org installer, and explicit Tcl/Tk check (import tkinter; tkinter.Tcl()).

Verdict: PASS (Windows 10 unit/JSON/batch checks; no game launch).

AI-assisted: yes (Antigravity -- Gemini 4 Neon).

**@⁠lixonik** on GitHub · 2026-12-02 21:03 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7358720001) Native Windows 10 pre-merge verification & review of PR #3182 (`5a29349f7`) merged cleanly onto `main` (`8a9235d02`): - **Clean-room check:** `python -I scripts/check_no_game_data.py` PASS. - **Green (merged `5a29349f7` onto `8a9235d02`):** - `python -I tests/test_leonida_launcher.py` -- **43 tests, OK** (0.175 s). - All 4 i18n JSON catalogs (`de.json`, `es.json`, `fr.json`, `pt.json`) parsed cleanly with 207 matching keys each; `py_compile` on `tools/leonida_launcher.py` PASS. - **Red -> Green proof (`main` `tools/leonida_launcher.py` + `Launcher.bat` against PR tests):** **FAILED (failures=3, errors=14)** on the new i18n, update, advanced-option, info, and `Launcher.bat` tests. - **Code review (`Launcher.bat`):** Clean self-update `::` padding past byte 749, single-line launch+error handler so self-updates cannot break error exit-code propagation, SHA-256 verification on the fallback python.org installer, and explicit Tcl/Tk check (`import tkinter; tkinter.Tcl()`). Verdict: **PASS** (Windows 10 unit/JSON/batch checks; no game launch). AI-assisted: yes (Antigravity -- Gemini 4 Neon).
UI only (switch_args and play_command unchanged; 288 control combinations give the same switches and
variables as before). A greyed control keeps its value and ignores clicks and the space bar; undoing
the other choice brings it back:
- hardware ray tracing greys frame generation's mode and limit, with a note (the scripts leave frame
  generation off with ray tracing; LEONIDA_FG_WITH_RT=1 in the advanced options overrides);
- DLSS off greys the DLSS mode; DLSS with a mode greys the resolution (left out of the command then);
- frame generation off greys its limit;
- every pipeline precompiled keeps shader preparation on and greyed (it needs it).
Toggle and Segmented get enabled(); a disabled drop-down looks muted. Checked in a real window: each
rule both ways, clicks on greyed controls change nothing, and the same check fails on the previous
commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rule the d3d12 scripts take (D3D12-FG-WITH-RT): frame generation runs with ray tracing, except on
the Series X profile with a card of under 12 GB, where an 8 GB RTX 4070 Laptop ran out of video memory
(5 fps, no generated frame; Series S on the same card: 21 rendered / 43 shown fps). video_memory_mb()
reads HardwareInformation.qwMemorySize from the registry as play-nvidia.ps1 does, once at start;
unknown memory greys nothing. The profile now re-applies the rules too.
Checked in a real window: hw+X+8 GB greyed with the note; hw+S+8 GB, hw+X+16 GB, hw+X+unknown and
off+X+8 GB enabled; the other rules and clicks as before; the launch command unchanged over 288
combinations vs 00a35d6d6 (which fails the five new rule-1 cases).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Players whose old launcher saved 'Check for updates at start' unticked saw 'Not checked yet' and never
heard of an update. The check now runs at every start whatever launcher.json says (it runs off the
window's thread; without git or network the Updates card says so), and the Settings switch is gone.
Checked in a window with check_updates false in launcher.json: the check runs (the previous code: it
does not).

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

@⁠enlight3d on GitHub · 2026-12-02 21:22 UTC · original

RUN (independent, in game) for the request on #3182: hardware ray tracing together with DLSS frame generation. Runtime from #3154 head 854fc3441 (it has LEONIDA_FG_WITH_RT and the launcher's -HardwareRT), built with diagnostics,dlss,mimalloc (target x86_64-pc-windows-msvc). RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300).

This card has no DLSS frame generation of its own; it was run with a third-party unlocker (MFG Unlocker v1.7.2, not part of this project, as winmm.dll beside the executable), with LEONIDA_TITLE_RANGE=1 (#3154) and the game window kept in front. Launcher: -HardwareRT -Dlss quality -FrameGen 2 -More @{LEONIDA_FG_WITH_RT='1'} -Log, once with Series X settings and once with -SeriesS, same save, each stopped 240 s after reaching the world. Nothing else ran on the PC's GPU; not measured beyond what is listed.

Series X Series S
Reached the world 79 s 70 s
Window title at 140 / 200 / 260 s (rendered / shown fps) 16 / 32, 17 / 34, 17 / 35 25 / 50, 26 / 52, 27 / 55
Rendered fps in the world, median of the 30 s lines (from 30 s after arrival) 17.0 (15.4-18.0) 26.3 (24.7-27.2)
Frame-generation state lines 20, all status 0 24, all status 0
Generated frames per rendered frame (per) 1 in menus and loading; 2 from about 10 s after reaching the world to the end 1 in menus and loading; 2 from about 10 s after reaching the world to the end
Hardware RT in use yes, about 7,000 bottom-level structures, 831 MB of acceleration structures (budget 1,536 MB) yes, about 5,400, 585 MB
eWarnOutOfVRAM 0 0
Card memory, peak (whole card / this process, dedicated) 18.6 GB / 14.4 GB 14.8 GB / 10.6 GB
Private memory, peak 37.0 GB 31.5 GB
Device removed, crash none none
Streamline window not focused 0 3, over about 8 s at 157-163 s (one focus loss; generation came back, per stayed 2 afterwards and the titles show double the rendered rate at 200 and 260 s)
  • per does go to 2 with hardware RT on: the generated frame is presented for every rendered frame in the world, in both settings.
  • Streamline's missing common constants warnings appear only in the first 90 s (menus and loading screens), none after reaching the world, as in the earlier frame-generation runs here.
  • The memory safety stop (private memory over 80 GB, or the card at 23.8 GB or more for over 60 s) never came close.
  • Pictures: the Series X frames were saved locally and show the lit world without visible damage; the Series S frames were not saved, because the runtime's PNG capture skips a 10-bit swap chain format (a capture limitation, not a rendering fault). Pictures are not posted.
  • Not compared with a run without frame generation or without hardware RT in this pair.

Verdict for this card (with the unlocker): PASS. Hardware RT and frame generation run together: about 17 rendered / 34 shown fps with Series X settings and about 26 / 52 with Series S, two presents per rendered frame, no VRAM warning, no device loss.

AI-assisted: Claude Code (Claude Opus 5.5)

**@⁠enlight3d** on GitHub · 2026-12-02 21:22 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7359185191) RUN (independent, in game) for the request on #3182: hardware ray tracing together with DLSS frame generation. Runtime from #3154 head 854fc3441 (it has `LEONIDA_FG_WITH_RT` and the launcher's `-HardwareRT`), built with `diagnostics,dlss,mimalloc` (target `x86_64-pc-windows-msvc`). RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300). This card has no DLSS frame generation of its own; it was run with a third-party unlocker (MFG Unlocker v1.7.2, not part of this project, as `winmm.dll` beside the executable), with `LEONIDA_TITLE_RANGE=1` (#3154) and the game window kept in front. Launcher: `-HardwareRT -Dlss quality -FrameGen 2 -More @{LEONIDA_FG_WITH_RT='1'} -Log`, once with Series X settings and once with `-SeriesS`, same save, each stopped 240 s after reaching the world. Nothing else ran on the PC's GPU; not measured beyond what is listed. | | Series X | Series S | |---|---|---| | Reached the world | 79 s | 70 s | | Window title at 140 / 200 / 260 s (rendered / shown fps) | 16 / 32, 17 / 34, 17 / 35 | 25 / 50, 26 / 52, 27 / 55 | | Rendered fps in the world, median of the 30 s lines (from 30 s after arrival) | 17.0 (15.4-18.0) | 26.3 (24.7-27.2) | | Frame-generation state lines | 20, all status 0 | 24, all status 0 | | Generated frames per rendered frame (`per`) | 1 in menus and loading; **2** from about 10 s after reaching the world to the end | 1 in menus and loading; **2** from about 10 s after reaching the world to the end | | Hardware RT in use | yes, about 7,000 bottom-level structures, 831 MB of acceleration structures (budget 1,536 MB) | yes, about 5,400, 585 MB | | `eWarnOutOfVRAM` | 0 | 0 | | Card memory, peak (whole card / this process, dedicated) | 18.6 GB / 14.4 GB | 14.8 GB / 10.6 GB | | Private memory, peak | 37.0 GB | 31.5 GB | | Device removed, crash | none | none | | Streamline `window not focused` | 0 | 3, over about 8 s at 157-163 s (one focus loss; generation came back, `per` stayed 2 afterwards and the titles show double the rendered rate at 200 and 260 s) | - `per` does go to 2 with hardware RT on: the generated frame is presented for every rendered frame in the world, in both settings. - Streamline's `missing common constants` warnings appear only in the first 90 s (menus and loading screens), none after reaching the world, as in the earlier frame-generation runs here. - The memory safety stop (private memory over 80 GB, or the card at 23.8 GB or more for over 60 s) never came close. - Pictures: the Series X frames were saved locally and show the lit world without visible damage; the Series S frames were not saved, because the runtime's PNG capture skips a 10-bit swap chain format (a capture limitation, not a rendering fault). Pictures are not posted. - Not compared with a run without frame generation or without hardware RT in this pair. **Verdict for this card (with the unlocker): PASS.** Hardware RT and frame generation run together: about 17 rendered / 34 shown fps with Series X settings and about 26 / 52 with Series S, two presents per rendered frame, no VRAM warning, no device loss. AI-assisted: Claude Code (Claude Opus 5.5)
Reverts e9b947b80 (greyed only on Series X under 12 GB). A player (RTX 5080, Series X) reports the game
running too fast with frame generation and hardware RT together, never with frame generation alone, so
#3230 (which lifts the script's lock) is back to draft and the launcher follows main's script: with
hardware RT, frame generation is off, its controls greyed with the note 'Off with ray tracing for now.'

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

@⁠fiestorra on GitHub · 2026-12-02 21:54 UTC · original

VERIFY-3182 — Windows nativo: las cuatro suites del lanzador en verde, catálogos idénticos, y lo que no puede probar esta máquina

Head (this PR)
Merge base b41763227 = current main
Merged onto main — merge-tree clean, git merge --no-ff clean

Ran

python -I tests/test_leonida_launcher.py          Ran 43 tests — OK
python -I tests/test_launcher_serve.py            Ran 12 tests — OK
python -I tests/test_win_launchers.py             Ran  9 tests — OK
python -I tests/test_play_nvidia_menu_choice.py   Ran 16 tests — OK
python -I tests/test_i18n_index.py                Ran  9 tests — OK

Eighty tests across the launcher and its two front ends, all green on a native Windows run.

The catalogues are consistent: tools/launcher_i18n/{de,es,fr,pt}.json each hold 206 keys, and the four key sets are identical (compared as sets, not by eye). LANGUAGES = ("", "en", "fr", "es", "pt", "de") lists en with no en.json, which is consistent with t() taking the English text as its key and falling back to it — but it does mean the window offers "English" as a choice that changes nothing, and that is worth a line in the docs if it is intended.

The gap: nothing tests that the catalogues are current

There is no test that keeps launcher_i18n/*.json in sync with the strings the launcher asks for. I tried a regex over t("..."), and it is recorded here because it was wrong in an instructive way: the long help texts are built with implicit string concatenation (t("first part " "second part")), so a regex sees only the first fragment and reports 18 keys as "missing" that are really there. A real check needs ast to fold the adjacent literals (or a small --dump-i18n mode that emits every resolved key and compares it to the four files). The four catalogues agreeing with each other does not prove they agree with the code, and only that second check would catch a translated string that silently stays English after a rewrite.

What I could not test, and it is most of the risk here

The window itself. This machine has no interactive desktop (CopyFromScreen: The handle is invalid), so the overhaul — the layout, the i18n selection, the custom-parameter field of #3209's neighbour work — is exercised through the Python functions and the command it builds, not through the GUI. For a 1,827-line rewrite of a Tk launcher, that is the gap that matters, and I would not merge it on this evidence alone: it needs one person to open it on a desktop and walk the panes.

The branch also carries other open pull requests (the launcher exit codes of #3210, test_rbf0_encode, test_red_green); this review is of the tree as it stands.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-12-02 21:54 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7359962884) ## VERIFY-3182 — Windows nativo: las cuatro suites del lanzador en verde, catálogos idénticos, y lo que no puede probar esta máquina | | | |---|---| | Head | `(this PR)` | | Merge base | `b41763227` = current `main` | | Merged onto | `main` — `merge-tree` clean, `git merge --no-ff` clean | **Ran** ``` python -I tests/test_leonida_launcher.py Ran 43 tests — OK python -I tests/test_launcher_serve.py Ran 12 tests — OK python -I tests/test_win_launchers.py Ran 9 tests — OK python -I tests/test_play_nvidia_menu_choice.py Ran 16 tests — OK python -I tests/test_i18n_index.py Ran 9 tests — OK ``` **Eighty tests across the launcher and its two front ends**, all green on a native Windows run. **The catalogues are consistent**: `tools/launcher_i18n/{de,es,fr,pt}.json` each hold **206 keys, and the four key sets are identical** (compared as sets, not by eye). `LANGUAGES = ("", "en", "fr", "es", "pt", "de")` lists `en` with no `en.json`, which is consistent with `t()` taking the English text as its key and falling back to it — but it does mean the window offers "English" as a choice that changes nothing, and that is worth a line in the docs if it is intended. ## The gap: nothing tests that the catalogues are current There is **no test that keeps `launcher_i18n/*.json` in sync with the strings the launcher asks for**. I tried a regex over `t("...")`, and it is recorded here because it was wrong in an instructive way: **the long help texts are built with implicit string concatenation** (`t("first part " "second part")`), so a regex sees only the first fragment and reports 18 keys as "missing" that are really there. A real check needs `ast` to fold the adjacent literals (or a small `--dump-i18n` mode that emits every resolved key and compares it to the four files). **The four catalogues agreeing with each other does not prove they agree with the code**, and only that second check would catch a translated string that silently stays English after a rewrite. ## What I could not test, and it is most of the risk here **The window itself.** This machine has no interactive desktop (`CopyFromScreen: The handle is invalid`), so the overhaul — the layout, the i18n selection, the custom-parameter field of #3209's neighbour work — is exercised **through the Python functions and the command it builds, not through the GUI**. For a 1,827-line rewrite of a Tk launcher, that is the gap that matters, and I would not merge it on this evidence alone: it needs one person to open it on a desktop and walk the panes. **The branch also carries other open pull requests** (the launcher exit codes of #3210, `test_rbf0_encode`, `test_red_green`); this review is of the tree as it stands. Written with an AI assistant.
A design pass with the unslop skill by @heydamir (CC BY 4.0), in polish mode:
the layout, behaviour, rules and play command stay as they were.

Direction
- product: a desktop launcher for the player's own copy of GTA VI on Mandy's DX12 runtime
- character: nocturne, direct, a little playful
- world: a coastal city at night seen from a car's dashboard; the mockup's indigo taken
  toward neutral, violet and pink kept for what matters
- moments: the violet-to-pink PLAY pill (the one bright element, its gradient kept) and
  the "What is new" list, PR numbers in mono like a log
- signature: the coloured status dot (green up to date, amber updates, red failed) with
  the last-check time, the same in the Updates card and the rail

Changes
- palette: bg #14121f, panels #1b1829/#221f33, rail #100e19, hairlines #2a2738; text
  roles primary #ecebf3, secondary #a9a6bd (7.3:1 on a panel), faint #7d7a93; semantic
  #4cc38a / #d9a441 / #e5484d
- no gradient but PLAY's: switches solid violet when on; Save and Update Mandy are a
  solid off-white PrimaryButton; "Mandy" wordmark in primary text, Segoe UI Semibold
- accent only on PLAY, the rail mark and switches: segmented choice raised with a
  hairline and primary text; combobox and tree selections neutral
- card titles text-only (symbol tiles removed); weights 400 and 600 (Segoe UI
  Semibold) for titles only; no bold buttons
- 4 px grid: card gutters 24/8, heads 16, rail insets 16, segments 12/4, rows 6
- no trailing period on one-line captions, labels and status lines (12 keys renamed
  in fr/es/pt/de)
- "What is new": PR number in Consolas in its own column, title in Segoe UI, still cut
  to the card's width
- one status_dot/dot_colour for the Updates card and the rail
- the NVIDIA tip: neutral raised box, secondary text, only "NVIDIA:" in amber

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Follows the unslop skill by @heydamir (https://github.com/heydamir/unslop, CC BY 4.0), as the first pass did.

- Tables (Mods, Saves): 32 px rows, headings left-aligned over their columns with 8 px cell padding, a
  neutral selection, no lighter heading on hover.
- Secondary buttons at their natural width (no 11-character minimum), one height, 8 px apart; the two
  rows of save actions are 8 px apart as well.
- Saves byte viewer: the description as secondary text, the dump on the field colour with a 1 px line
  and inner padding.
- Tools: one button column as wide as its widest button, one 8 px rhythm, the notes as captions
  without trailing periods (keys renamed in the four translations).
- About: a 700 px measure; the credits as a list whose wrapped lines keep their indent.
- Rail: 32 px items with a 2 px gap; the version line wraps inside the rail instead of running under
  its edge.
- The red is #ec5a5f (5.1:1 on the panel, 4.4:1 before), still used only for errors and Stop.

Behaviour unchanged: every action is still there and the PLAY command is the same.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	docs/launcher.md
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-02 22:46 UTC · original · reviewed

Current-head launcher integration finding on dafad4ca. tools/leonida_launcher.py:1496 still drains the whole output queue and calls append once per line, so the #3175 freeze with -Log off can carry into this overhaul. I extracted the exact pump methods and fed each one 10,001 synthetic lines. Both main (16243cd6) and this head make 10,001 append calls before scheduling the next callback. #3192 at b713fdd8 makes one append, leaves 8,001 lines queued and schedules another callback after 10 ms. This checks callback work and queue behavior in isolation.

git merge-tree --write-tree dafad4ca b713fdd8 reports a conflict in tools/leonida_launcher.py. The resolution needs to preserve the overhaul’s info, rail, and finished handling and the bounded output processing from #3192.

**@⁠merzleckeier** on GitHub · 2026-12-02 22:46 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6160386644) · **reviewed** Current-head launcher integration finding on `dafad4ca`. `tools/leonida_launcher.py:1496` still drains the whole output queue and calls `append` once per line, so the #3175 freeze with `-Log` off can carry into this overhaul. I extracted the exact `pump` methods and fed each one 10,001 synthetic lines. Both `main` (`16243cd6`) and this head make 10,001 append calls before scheduling the next callback. #3192 at `b713fdd8` makes one append, leaves 8,001 lines queued and schedules another callback after 10 ms. This checks callback work and queue behavior in isolation. `git merge-tree --write-tree dafad4ca b713fdd8` reports a conflict in `tools/leonida_launcher.py`. The resolution needs to preserve the overhaul’s `info`, `rail`, and `finished` handling and the bounded output processing from #3192.
The F1 menu's d3d12/leonida-settings.txt wins over every launcher option that was not changed since the last PLAY,
so the launcher could show one value while the game started with another.

- read_menu_settings / clear_menu_settings: the file read as play-nvidia.ps1 reads it (LEONIDA_*=value, comments
  and blank lines skipped, last value per name, an empty value is unset); clear deletes only that file, and only
  when it is a regular file.
- Play card: a "Saved in the F1 menu" section (label: value, names from menu.rs ITEMS, what wins in one muted line,
  a quiet "Clear F1 settings" with a confirmation; "Nothing saved in the F1 menu" when empty). Read again when the
  window gets the focus and when a run ends.
- Settings: "F1 menu: <value>" under frame generation, DLSS, ray tracing, the profile and Smooth Motion when the
  file holds the same setting.
- Frame generation is no longer greyed under hardware ray tracing when Advanced has LEONIDA_FG_WITH_RT=1 (the
  scripts start it then); the note says it is unlocked, and the greying follows the field as it is typed.
- i18n for fr, es, pt, de; tests for the parsing and the clear; docs/launcher.md says which one wins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Series X profile commits about 59 GB (58.8 GB measured, d3d12/docs/windows-memory.md). On a PC whose commit
limit (RAM + page file) sits under that, the run spends most of its time near the limit: long frames, and DLSS
frame generation cutting in and out. Series X and ray tracing stay allowed; the launcher now says so instead.

- commit_limit_bytes / physical_memory_bytes: GlobalMemoryStatusEx through ctypes (ullTotalPageFile,
  ullTotalPhys); None off Windows or on failure.
- memory_note(series_x, commit_limit, total_phys): a note under 64 GiB (SERIES_X_COMMIT_BYTES) with Series X
  only, naming the RAM and limit and suggesting Series S or a fixed page file of about 80 GB in all.
- Settings: a warning-coloured note under Profile that follows the profile control live; Play: one short line
  while the saved profile is Series X. Both show the page-file steps (with a size for this PC) on hover.
- Copy my info: the RAM and the commit limit.
- PLAY and its command line are unchanged. fr/es/pt/de translations, tests, docs/launcher.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The toggle passed -Quality (relay stage 1, no card steps: fewer stretched or jumping bodies, slower), but read
'Quality' next to the DLSS mode's 'Quality'. The DLSS subtitle read as the current state. The Series X memory notes
now say the ~59 GB is the profile's own, whatever DLSS and ray tracing do.

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

@⁠merzleckeier on GitHub · 2026-12-02 23:03 UTC · original · reviewed

The Play card's low-commit warning can disappear when F1 selects Series X. tools/leonida_launcher.py:1707 chooses the profile from launcher settings alone. The Windows launch path still honors LEONIDA_MENU_CONSOLE when the launcher profile hasn't changed.

I exercised refresh_memory() with synthetic labels and a 53 GiB commit limit on 7768d10c3 merged with main at ef35d683e. I then passed the arguments from play_command() to the two PowerShell launch scripts with -DryRun in Linux PowerShell and stubbed the Windows system queries. Launcher Series S + F1 Series X hid the warning and produced LEONIDA_MENU_CONSOLE=series-x. Launcher Series X + F1 Series S showed the warning and produced series-s. As controls, Series X with no F1 override warned, and a newly changed launcher Series S selection won over F1 Series X and hid the warning.

Could the Play warning use the effective console profile, including the same changed-switch precedence as Play, and refresh after the F1 file changes? A test for unchanged launcher Series S plus F1 Series X would cover the missed warning. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-02 23:03 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6160601626) · **reviewed** The Play card's low-commit warning can disappear when F1 selects Series X. `tools/leonida_launcher.py:1707` chooses the profile from launcher settings alone. The Windows launch path still honors `LEONIDA_MENU_CONSOLE` when the launcher profile hasn't changed. I exercised `refresh_memory()` with synthetic labels and a 53 GiB commit limit on `7768d10c3` merged with `main` at `ef35d683e`. I then passed the arguments from `play_command()` to the two PowerShell launch scripts with `-DryRun` in Linux PowerShell and stubbed the Windows system queries. Launcher Series S + F1 Series X hid the warning and produced `LEONIDA_MENU_CONSOLE=series-x`. Launcher Series X + F1 Series S showed the warning and produced `series-s`. As controls, Series X with no F1 override warned, and a newly changed launcher Series S selection won over F1 Series X and hid the warning. Could the Play warning use the effective console profile, including the same changed-switch precedence as Play, and refresh after the F1 file changes? A test for unchanged launcher Series S plus F1 Series X would cover the missed warning. AI-assisted.
Two review findings by merzleckeier on #3182.

Output pump (on dafad4ca9): the window's pump drained the whole output queue and
appended once per line, so a run that floods the pipe (the runtime's stderr with
-Log off, #3175) could freeze the window. Ported the design and names of #3192
by 1mshy: OUTPUT_BATCH = 2000, OUTPUT_RESUME_MS = 10 and a pure take_output()
that joins each run of one process's lines into one ("lines", proc, [...]) item,
keeps exit/update/info/rail items in order and leaves the rest queued; one
insert per run, rescheduled after 10 ms while more is queued. The overhaul's
info, rail and finished() handling is kept. #3192's two OutputPumpTests ported
(with info and rail items), plus 10,001 lines = one insert a turn and a check
that the pump goes through take_output.

Low-commit warning (on 7768d10c3): the Play card's warning took the profile from
the launcher's settings alone, while play-d3d12.ps1 -Chosen / play-nvidia.ps1
("What the F1 menu saved") let the F1 menu's LEONIDA_MENU_CONSOLE win when the
launcher's profile has not changed since the last PLAY (and at the first PLAY,
-Chosen none). New pure effective_console(settings, menu) with that order; the
Play card's line uses it and is refreshed when the F1 file is read again (focus,
finished()). The Settings note keeps following the live control; the existing
"F1 menu: Series X" note under the profile says when the menu holds another.

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

@⁠OreoFR on GitHub · 2026-12-02 23:24 UTC · original

@⁠merzleckeier thanks, both review notes are fixed in 64a2c0184.

Output pump (review on dafad4ca).

  • What changed:
    • the pump now goes through take_output, with the same design and names as #3192 by 1mshy (OUTPUT_BATCH = 2000, OUTPUT_RESUME_MS = 10);
    • each run of one process's lines is joined into one ("lines", proc, [...]) item, so there is one insert per run;
    • exit, update, info and rail items keep their place, and the rest stays queued;
    • the pump comes back after 10 ms while more is waiting;
    • this launcher's info, rail and finished() handling is unchanged.
  • Tests:
    • #3192's two OutputPumpTests, taken as they are;
    • three tests of ours: info/rail order, 10,001 lines give 6 turns of one item, and the pump goes through take_output.
  • Real-window run: 10,001 queued lines give one append per turn ([1, 1, 1, 1, 1, 2] counting the exit message), against 10,002 appends in one turn with the old pump.
  • Counter-tests: a per-line take_output or a per-line pump makes these fail.
  • Overlap with #3192: the constants and take_output are byte-identical to #3192, so the two PRs only conflict in pump itself.

Low-commit warning and the F1 console (review on 7768d10c).

  • What changed:
    • a new pure effective_console(settings, menu) follows Play's order;
    • the launcher's profile wins only when its switch is in chosen_switches(switch_args(settings), last_switches);
    • otherwise the F1 menu's LEONIDA_MENU_CONSOLE wins when present;
    • otherwise the launcher's own profile.
  • At the first PLAY: nothing counts as chosen (-Chosen none), so the F1 value wins, as in the scripts.
  • The Play card's warning uses this console and refreshes when the F1 file is read again (on window focus and after finished()).
  • Tests:
    • unchanged S + F1 X → warning;
    • unchanged X + F1 S → none;
    • newly changed S + F1 X → the launcher wins;
    • no F1 file → the launcher's;
    • first PLAY → F1;
    • plus 10 real-window cases.
  • Counter-test: ignoring F1 fails 3 unit tests and the window check.

Checks on this head:

  • 63 launcher tests pass;
  • the default PLAY command is unchanged;
  • merge-tree with main 81efe4566 is clean.

AI-assisted (oreofr-agent)

**@⁠OreoFR** on GitHub · 2026-12-02 23:24 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7361963218) @⁠merzleckeier thanks, both review notes are fixed in `64a2c0184`. **Output pump (review on `dafad4ca`).** - **What changed:** - the pump now goes through `take_output`, with the same design and names as #3192 by 1mshy (`OUTPUT_BATCH = 2000`, `OUTPUT_RESUME_MS = 10`); - each run of one process's lines is joined into one `("lines", proc, [...])` item, so there is one insert per run; - exit, update, info and rail items keep their place, and the rest stays queued; - the pump comes back after 10 ms while more is waiting; - this launcher's info, rail and `finished()` handling is unchanged. - **Tests:** - #3192's two `OutputPumpTests`, taken as they are; - three tests of ours: info/rail order, 10,001 lines give 6 turns of one item, and the pump goes through `take_output`. - **Real-window run:** 10,001 queued lines give one append per turn (`[1, 1, 1, 1, 1, 2]` counting the exit message), against 10,002 appends in one turn with the old pump. - **Counter-tests:** a per-line `take_output` or a per-line pump makes these fail. - **Overlap with #3192:** the constants and `take_output` are byte-identical to #3192, so the two PRs only conflict in `pump` itself. **Low-commit warning and the F1 console (review on `7768d10c`).** - **What changed:** - a new pure `effective_console(settings, menu)` follows Play's order; - the launcher's profile wins only when its switch is in `chosen_switches(switch_args(settings), last_switches)`; - otherwise the F1 menu's `LEONIDA_MENU_CONSOLE` wins when present; - otherwise the launcher's own profile. - **At the first PLAY:** nothing counts as chosen (`-Chosen none`), so the F1 value wins, as in the scripts. - **The Play card's warning** uses this console and refreshes when the F1 file is read again (on window focus and after `finished()`). - **Tests:** - unchanged S + F1 X → warning; - unchanged X + F1 S → none; - newly changed S + F1 X → the launcher wins; - no F1 file → the launcher's; - first PLAY → F1; - plus 10 real-window cases. - **Counter-test:** ignoring F1 fails 3 unit tests and the window check. **Checks on this head:** - 63 launcher tests pass; - the default PLAY command is unchanged; - `merge-tree` with `main` `81efe4566` is clean. AI-assisted (oreofr-agent)
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-02 23:56 UTC · original · reviewed

Thanks. I rechecked both review points on 64a2c0184 merged with main at 81efe4566.

  • I ran the exact pump() body with synthetic widgets and 10,001 lines interleaved with info, rail, and update events. The old head made 10,001 appends in one callback. The new head made seven appends over six callbacks, preserving text and event order and forwarding exit 23 after the last active line. It dropped stale output and rescheduled at 10 ms until the queue was empty.
  • With a synthetic 53 GiB commit limit and an unchanged Series S launcher setting, rewriting the F1 file X → S → X made the Play warning toggle on → off → on through render_menu_settings(). Changing the launcher profile to S since the last Play took precedence and cleared the warning. The old head never showed the warning in that sequence.
  • One merge-order detail with #3192 at b713fdd8: Git flags both tools/leonida_launcher.py and tests/test_leonida_launcher.py. The test conflict falls immediately after the two shared tests. Keeping #3182’s versions of both files produced exactly the #3182 tree in a scratch merge and passed both probes.

Across the four launcher suites on the current-main merge, 85 passed and six were skipped on Linux. The callback and warning probes used synthetic widgets. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-02 23:56 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6161231651) · **reviewed** Thanks. I rechecked both review points on `64a2c0184` merged with `main` at `81efe4566`. - I ran the exact `pump()` body with synthetic widgets and 10,001 lines interleaved with `info`, `rail`, and `update` events. The old head made 10,001 appends in one callback. The new head made seven appends over six callbacks, preserving text and event order and forwarding exit 23 after the last active line. It dropped stale output and rescheduled at 10 ms until the queue was empty. - With a synthetic 53 GiB commit limit and an unchanged Series S launcher setting, rewriting the F1 file X → S → X made the Play warning toggle on → off → on through `render_menu_settings()`. Changing the launcher profile to S since the last Play took precedence and cleared the warning. The old head never showed the warning in that sequence. - One merge-order detail with #3192 at `b713fdd8`: Git flags both `tools/leonida_launcher.py` and `tests/test_leonida_launcher.py`. The test conflict falls immediately after the two shared tests. Keeping #3182’s versions of both files produced exactly the #3182 tree in a scratch merge and passed both probes. Across the four launcher suites on the current-main merge, 85 passed and six were skipped on Linux. The callback and warning probes used synthetic widgets. AI-assisted.
frame_gen, aspect + present_scale and adapter were already settings that
switch_args passed, but no control showed them: a frame_gen 2 saved by the
older launcher could only be changed in launcher.json.

- Frame generation: a Multiplier list, Auto (nothing passed, the script's
  own choice) or 2x to 6x (-FrameGen n, play-nvidia.ps1's 2..6). 3x and up
  are marked RTX 50: the scripts pass any of them whatever the card and the
  runtime makes no more than the card does (fg.rs), 2x on an RTX 40. Greyed
  with FSR or Off and, as the mode, with hardware ray tracing unless
  LEONIDA_FG_WITH_RT=1; -FrameGen still goes with DLSS's only.
- Picture: Window shape (-Aspect: Default, your screen's, 21:9, 32:9,
  16:10; another saved shape is kept) and Picture in the window
  (-PresentScale Fit/Stretch), greyed while the shape is Default.
- General: Graphics card (-Adapter), the display class's DriverDesc read
  with winreg (about 10 ms cold, under 1 ms warm), software and non-PCI
  adapters and duplicates left out; Default only off Windows.
- fr/es/pt/de texts, docs/launcher.md, pure tests (registry stub, switches,
  the old frame_gen 2, the default command unchanged).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A secondary "Advanced mode..." button beside Settings' Advanced field opens a second window (one at a time) listing
the 682 variables of d3d12/docs/switches.md, read from the repository when it opens by a small parser (sections,
the &lt;/&gt;/&amp; and \| escapes, backticks dropped; a missing file is said in the window). It opens with the
file's own warning that it is not a list of recommended settings, and a link to d3d12/docs/findings.md.

Search over names and comments, a section filter, Only set and Only the launcher's (column L). The list is virtual:
only the rows on screen exist and are filled again on scroll, so it opens in about 100 ms and filters in under
15 ms. A toggle for the on/off kinds, a text otherwise; the code's comment in two lines with the rest in a tooltip.
Hover only recolours widgets.

It edits the same store as the field (settings["advanced"], parse_advanced): Apply or Close merges the changed
names into it (merge_advanced: add, update in place, remove; unknown pairs and other parts kept as typed; " and ;
refused), so check_advanced and apply_rules (the FG + RT unlock) run as if typed. Nothing is set by default and
PLAY's default command is unchanged. New texts translated in fr, es, pt and de.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An empty value field shows the format its description gives after NAME= (<seconds>,<switch>[,...], <folder>, <n>),
else "value": a label laid over the empty entry, never its text, so Apply cannot take it for a value. It hides on
focus or typing, comes back when the field is emptied and loses the focus, and follows the rows refilled on scroll.
One muted line above the list says to type only the value, an empty field being "not set". The shown description
and its tooltip drop the markdown switches.md keeps (**shown**, stray backticks); the stored text is unchanged.

value_hint and plain_description are unit-tested; the two new texts are translated (fr, es, pt, de).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A PC at 63.9 GB read "64 GB ... needs about 59 GB" and still got the warning.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The two dropdowns whose every label fits beside the option's name in every
language (en/fr/es/pt/de), at the window's default and minimum width, measured
with the real font, become the Segmented control Profile uses. The variable
still holds the shown label and choices maps it back, so apply_rules, the
stored values and PLAY's command are unchanged; a greyed one ignores clicks and
keeps its value. Segmented buttons brighten an unchosen label on hover (an
Enter/Leave recolour, nothing redrawn).

The other lists stay dropdowns: the multiplier (even as 2x..6x), the frame
limit, the window shape, the DLSS mode and the resolution do not fit at the
minimum width, and the graphics card list has long names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Saves page gets an "Import saves ..." button (and a one-line hint) for saves this runtime wrote elsewhere. The
source is a ZIP or a folder, chosen in a small dialog with a button for each: a launcher backup, a ZIP or folder
holding saves at any level (7952987A\saves, the user folder, a configuration folder, one <Name>~<hash> container),
or a whole old data folder. Every <Name>~<16 hex> folder with a v<N> whose manifest reads is imported; the rest is
ignored and the skipped ones are counted.

Each container goes to saves\0009000000000001\<configuration>\<folder>: the user folder is the runtime's constant
xuser::XUID (a test reads it from xuser.rs); the configuration is the one the source's path names, else this PC's
only one. The runtime names that folder after the id the title passes to XGameSaveInitializeProvider, not after a
constant, so with neither the launcher asks the player to start the game once and invents no name. A list (name,
newest version, date, new or replaced) comes first; a replacement backs up all the current saves (before-import).
Containers are staged in import.new and moved in with one rename; a ZIP's entries get zip_containers' checks.
Refused while the game runs, like the other save actions. "Restore ..." becomes "Restore a backup ...".

Tests: every source shape, configuration from the path / this PC / missing, replacement after a backup, path
traversal, non-save folders, this PC's own saves. Translations in fr, es, pt and de; docs/launcher.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings no longer greys frame generation whenever hardware ray tracing is on. As #3230's play script decides it:
on the Series X profile (the one the next PLAY runs, F1 menu included) with under 20 GB of video memory the mode,
multiplier and limit are greyed with the reason, unless LEONIDA_FG_WITH_RT=1 in Advanced (then live, with the
unlocked note); LEONIDA_FG_WITH_RT=0 greys them everywhere; otherwise they stay live and, with DLSS and the multiplier
on Auto, a muted note says to choose 2x (the automatic 2x never comes with ray tracing). The video memory is
HardwareInformation.qwMemorySize of the display adapter class, the largest, or the chosen card's; unknown holds
nothing back. The launcher never adds LEONIDA_FG_WITH_RT.

Without an NVIDIA card (this PC's, or the one chosen in Graphics card) DLSS, the DLSS mode, DLSS frame generation
and Smooth Motion are greyed with a note; FSR stays and a saved DLSS choice is kept. Ray tracing is never greyed; an
AMD or Intel card gets a "not tested" note. Off Windows or with nothing read, nothing is greyed. PLAY's command is
unchanged: only controls are greyed. Translations fr/es/pt/de, docs/launcher.md, and pure tests of the rule matrix
with the registry stubbed.

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

@⁠merzleckeier on GitHub · 2026-12-03 00:38 UTC · original · reviewed

Compared 671d0c0f with the actual play-nvidia.ps1 policy from #3230 (36f5ddbd) on current main (d5b30be1). The heads combine cleanly. I evaluated settings_rules() with synthetic registry entries, then passed the actual play_command() arguments to the public PowerShell wrapper with -DryRun.

  • Series X, hardware RT and a saved 2× multiplier, with an 8 GiB adapter selected and a separate 24 GiB adapter in the registry: Settings disables the controls, but the launch still emits LEONIDA_FRAME_GEN=2 and names the 8 GiB adapter. The UI uses the selected card’s memory and the script uses the largest registry value. With just the 8 GiB adapter, both block it. This is the same adapter issue raised on #3230.
  • Series X, 8 GiB, Settings RT Off, with LEONIDA_HW_RT=1 coming either from the F1 file or Advanced: Settings keeps the controls enabled, but the launch blocks 2× because its effective hardware RT is on. The UI reads the RT control while the launch also applies the saved and Advanced values. With RT off in both places, both allow 2×.

There is also a current-main test blocker inherited from #3154. switches.md has 683 rows after LEONIDA_TITLE_RANGE was added, but the header says 682. test_the_repositorys_list_reads_whole passes on this branch alone and fails on the merged tree. Regenerating the catalog locally gives 683 and makes the launcher, saves and server suites green (126 passed, one skipped). All probes used synthetic inputs and Linux PowerShell. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-03 00:38 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6161641367) · **reviewed** Compared `671d0c0f` with the actual `play-nvidia.ps1` policy from #3230 (`36f5ddbd`) on current `main` (`d5b30be1`). The heads combine cleanly. I evaluated `settings_rules()` with synthetic registry entries, then passed the actual `play_command()` arguments to the public PowerShell wrapper with `-DryRun`. - Series X, hardware RT and a saved 2× multiplier, with an 8 GiB adapter selected and a separate 24 GiB adapter in the registry: Settings disables the controls, but the launch still emits `LEONIDA_FRAME_GEN=2` and names the 8 GiB adapter. The UI uses the selected card’s memory and the script uses the largest registry value. With just the 8 GiB adapter, both block it. This is the same adapter issue raised on #3230. - Series X, 8 GiB, Settings RT Off, with `LEONIDA_HW_RT=1` coming either from the F1 file or Advanced: Settings keeps the controls enabled, but the launch blocks 2× because its effective hardware RT is on. The UI reads the RT control while the launch also applies the saved and Advanced values. With RT off in both places, both allow 2×. There is also a current-main test blocker inherited from #3154. `switches.md` has 683 rows after `LEONIDA_TITLE_RANGE` was added, but the header says 682. `test_the_repositorys_list_reads_whole` passes on this branch alone and fails on the merged tree. Regenerating the catalog locally gives 683 and makes the launcher, saves and server suites green (126 passed, one skipped). All probes used synthetic inputs and Linux PowerShell. AI-assisted.
When the old Launcher.bat runs --update from the console and git pull replaces it, cmd resumes in the new file's
padding and reached 'exit /b 0', so a failed rebuild (code 7) was reported as 0. A plain 'exit /b' keeps the
errorlevel. Checked by replaying the update in a throwaway clone: a failing build now exits 7, as the old file did;
the clean update still exits 0 with no cmd error text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
main's switches.md has 683 rows under a header of 682 names since #3154 added LEONIDA_TITLE_RANGE by hand, which
failed the PR's merge build on Linux. The test now checks that the parser reads every row the file has (and more
than 600); a parser that drops a row still fails it.

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

@⁠OreoFR on GitHub · 2026-12-03 01:11 UTC · original

Merging (OreoFR's OK). Head 6ac3f87aed, main 1a163523d: merge-tree clean, all five checks green on this head, main's last CI / D3D12 runtime / No Game Data green. The default PLAY command is byte-identical to main's; updating from the old Launcher.bat and 3,076 old launcher.json files were checked (settings kept, old loader still reads the new file). merzleckeier's two remaining notes on the FG + RT greying (the largest card vs the chosen one, and hardware RT coming from the F1 file or Advanced) only change what Settings greys, not the command; they come in a follow-up PR. Enqueued in the merge queue. (oreofr-agent, AI-assisted)

**@⁠OreoFR** on GitHub · 2026-12-03 01:11 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7364050609) Merging (OreoFR's OK). Head 6ac3f87aedd356149ded38d1e65cf4ebd315c1f4, main 1a163523d: merge-tree clean, all five checks green on this head, main's last CI / D3D12 runtime / No Game Data green. The default PLAY command is byte-identical to main's; updating from the old Launcher.bat and 3,076 old launcher.json files were checked (settings kept, old loader still reads the new file). merzleckeier's two remaining notes on the FG + RT greying (the largest card vs the chosen one, and hardware RT coming from the F1 file or Advanced) only change what Settings greys, not the command; they come in a follow-up PR. Enqueued in the merge queue. (oreofr-agent, AI-assisted)
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-03 01:16 UTC · original

Follow-up on 6ac3f87a merged with 1a163523: the catalog change works. The previous assertion failed at 683 vs 682. The current one passes on the same catalog and fails when the parser drops one row. #3270 applies cleanly alongside it: the four launcher, save, server and catalog suites had 146 passes and one skip. Deliberately restoring the stale header still passes the launcher parser test and fails the generator's --check with #3270.

One separate update-path result for Wine 11.22's CMD. I used the exact current-main and PR batch files with the repository's Windows CRLF checkout, and a synthetic child that rewrote the running batch and exited 7. Both direct invocation and call returned 0 with the PR's bare exit /b. Both steady-state launchers returned 7, and the previous rewrite also returned 0. The rewrite still returned 0 for 128 and 255 in the wider matrix. A local one-line variant, exit /b %ERRORLEVEL% in the padding's exit, returned 7. A diagnostic variant printed UPDATE-RESUMED 7, so the status survives to the resume point in this reproduction. A small Wine control with no rewrite also returned 0 for a bare exit and 7 for the explicit form. These are synthetic Wine results. AI-assisted with OpenAI Codex.

**@⁠merzleckeier** on GitHub · 2026-12-03 01:16 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7364151473) Follow-up on `6ac3f87a` merged with `1a163523`: the catalog change works. The previous assertion failed at 683 vs 682. The current one passes on the same catalog and fails when the parser drops one row. #3270 applies cleanly alongside it: the four launcher, save, server and catalog suites had 146 passes and one skip. Deliberately restoring the stale header still passes the launcher parser test and fails the generator's `--check` with #3270. One separate update-path result for Wine 11.22's CMD. I used the exact current-main and PR batch files with the repository's Windows CRLF checkout, and a synthetic child that rewrote the running batch and exited 7. Both direct invocation and `call` returned 0 with the PR's bare `exit /b`. Both steady-state launchers returned 7, and the previous rewrite also returned 0. The rewrite still returned 0 for 128 and 255 in the wider matrix. A local one-line variant, `exit /b %ERRORLEVEL%` in the padding's exit, returned 7. A diagnostic variant printed `UPDATE-RESUMED 7`, so the status survives to the resume point in this reproduction. A small Wine control with no rewrite also returned 0 for a bare exit and 7 for the explicit form. These are synthetic Wine results. AI-assisted with OpenAI Codex.
github manually merged commit d15e048a74 into main 2026-12-03 01:32:57 +00:00
Author
Owner

@⁠OreoFR on GitHub · 2026-12-03 01:28 UTC · original

@⁠merzleckeier thanks for the review of 671d0c0fa. Both findings are addressed in #3272, which went in after this PR merged:

  • Adapter mismatch. The 20 GB rule now reads the largest card memory, the same value as play-nvidia.ps1's $vram, so the chosen adapter no longer decides it.
  • Effective hardware RT. The greying follows what the script will hold for LEONIDA_HW_RT and the others: switches, then the F1 menu's file, then -More. A note under Ray tracing says when F1 or Advanced turns it on.
  • Your cases are tests there. A stubbed-registry dry run through the play scripts agreed with the greying in 18 of 18 cases.

Side note: the header of d3d12/docs/switches.md on main still gives the old row count (stale since #3154). The launcher's test now counts the LEONIDA_* rows instead of trusting that number (6ac3f87ae).

**@⁠OreoFR** on GitHub · 2026-12-03 01:28 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7364382946) @⁠merzleckeier thanks for the review of 671d0c0fa. Both findings are addressed in #3272, which went in after this PR merged: - **Adapter mismatch.** The 20 GB rule now reads the largest card memory, the same value as `play-nvidia.ps1`'s `$vram`, so the chosen adapter no longer decides it. - **Effective hardware RT.** The greying follows what the script will hold for `LEONIDA_HW_RT` and the others: switches, then the F1 menu's file, then `-More`. A note under Ray tracing says when F1 or Advanced turns it on. - Your cases are tests there. A stubbed-registry dry run through the play scripts agreed with the greying in 18 of 18 cases. Side note: the header of `d3d12/docs/switches.md` on main still gives the old row count (stale since #3154). The launcher's test now counts the `LEONIDA_*` rows instead of trusting that number (6ac3f87ae).
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3182
No description provided.