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

Merged
OreoFR merged 45 commits from upstream-pr/3182 into main 2026-12-03 01:26:04 +00:00
OreoFR commented 2026-12-02 17:07:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T17:07:28Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5611250375 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T17:07:28Z. --- 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)
merzleckeier commented 2026-12-02 17:18:09 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T17:18:09Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6155687326 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6155687326). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T17:18:09Z. **Review:** COMMENTED --- **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 commented 2026-12-02 17:22:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T17:22:14Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353231911 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7353231911). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T17:22:14Z. --- 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.
fiestorra commented 2026-12-02 17:22:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T17:22:47Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353240991 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7353240991). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T17:22:47Z. --- **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.
merzleckeier commented 2026-12-02 17:28:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T17:28:19Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353336453 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7353336453). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T17:28:19Z. --- 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.
MoonEyes commented 2026-12-02 18:28:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:28:06Z.


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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354635243 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7354635243). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:28:06Z. --- **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)_
merzleckeier commented 2026-12-02 18:50:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T18:50:55Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7355244281 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7355244281). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T18:50:55Z. --- 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 commented 2026-12-02 19:05:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T19:05:54Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7355618182 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7355618182). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T19:05:54Z. --- 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 commented 2026-12-02 19:11:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T19:11:02Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7355748133 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7355748133). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T19:11:02Z. --- 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.
lixonik commented 2026-12-02 21:03:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T21:03:11Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7358720001 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7358720001). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T21:03:11Z. --- 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).
enlight3d commented 2026-12-02 21:22:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-12-02T21:22:22Z.


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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359185191 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7359185191). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-12-02T21:22:22Z. --- 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)
fiestorra commented 2026-12-02 21:54:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T21:54:56Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359962884 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7359962884). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T21:54:56Z. --- ## 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.
merzleckeier commented 2026-12-02 22:46:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T22:46:06Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6160386644 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6160386644). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T22:46:06Z. **Review:** COMMENTED --- 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 commented 2026-12-02 23:03:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T23:03:22Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6160601626 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6160601626). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T23:03:22Z. **Review:** COMMENTED --- 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.
OreoFR commented 2026-12-02 23:24:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T23:24:50Z.


@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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7361963218 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7361963218). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T23:24:50Z. --- @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)
merzleckeier commented 2026-12-02 23:56:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T23:56:47Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6161231651 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6161231651). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T23:56:47Z. **Review:** COMMENTED --- 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 commented 2026-12-03 00:38:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T00:38:15Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6161641367 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#pullrequestreview-6161641367). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T00:38:15Z. **Review:** COMMENTED --- 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.
OreoFR commented 2026-12-03 01:11:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T01:11:03Z.


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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364050609 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7364050609). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T01:11:03Z. --- 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)
merzleckeier commented 2026-12-03 01:16:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T01:16:17Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364151473 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7364151473). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T01:16:17Z. --- 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.
OreoFR commented 2026-12-03 01:28:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T01:28:30Z.


@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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7364382946 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3182#issuecomment-7364382946). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T01:28:30Z. --- @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).
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!3182
No description provided.