Skip to content

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

Open
OreoFR wants to merge 34 commits into
ProjectLeonida:mainfrom
OreoFR:feat/launcher-overhaul
Open

OreoFR wants to merge 34 commits into
ProjectLeonida:mainfrom
OreoFR:feat/launcher-overhaul

Conversation

@OreoFR

@OreoFR OreoFR commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

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 e71aa0e. 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 d3d12 play-nvidia: frame generation with ray tracing, except Series X under 20 GB (D3D12-FG-WITH-RT) #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.

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

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 45dc41f, with a throwaway data folder.
    • Defaults: the -File … -Game … -Data … -Chosen none command. The game window drew its menus after 71 s, then a clean close; exit 0.
    • With -More (frame limit 40, DRED, keys file): the -Command … -More @{…} command. The game reached the world (3331 draws) and walked 60 s.
    • The runtime logged rendered_fps=40.0 (LEONIDA_FG_LIMIT_FPS) and its settings line lists the variables.
    • Frame rates in that run are not meaningful: the pipeline cache was cold.
  • Not done: a real Python install.

AI-assisted (oreofr-agent, Claude).

🤖 Generated with Claude Code

OreoFR and others added 3 commits December 2, 2026 18:06
- Sharp text: the process says it is DPI-aware, and every size in pixels follows the screen's scale.
- No white window at start: the newest screenshot is looked for off the window's thread, one over
  12 MB or not a PNG is skipped, and an error in a button's code goes to the output box.
- Settings in sections (Game, Picture, Frame generation, Ray tracing, Shaders, General,
  Diagnostics and advanced) with switches and segmented choices, in a scrolling page; frame
  generation gets Off (-NoFrameGen) beside Auto and 2x-6x.
- English, French, Spanish, Portuguese and German, following Windows' display language
  (tools/launcher_i18n/<code>.json), with a Language setting over it.
- Advanced options (LEONIDA_*=value) and crash tracing (LEONIDA_D3D12_DRED=1) reach the runtime
  through play-d3d12.ps1 -More, via powershell -Command with single-quoted arguments.
- Run in diagnostic mode (-Log and DRED, then the logs folder) and Copy my info (commit, cards and
  drivers with NVIDIA's own number, Python/Tk/Windows, options; no folder names).
- Launcher.bat looks for a Python 3.12+ that has Tcl/Tk and offers to install Python 3.12 for the
  user (winget, else the pinned python.org installer Build.bat uses, with Tcl/Tk).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l status) and a plain message when the game ends

Players read 'Exited with code 0' as an error: the end of a run now says the game closed, that it
closed right after starting (with what to send), or that it stopped with an error code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…picture, generated hero) and hardware ray tracing only

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@merzleckeier merzleckeier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

OreoFR and others added 3 commits December 2, 2026 18:20
Cards in two columns (Picture, Frame generation, Ray tracing, Shaders; General, diagnostics &
advanced), the mockup's rows and lines, hover tips for the longer texts, the NVIDIA tip box, the
advanced field under its label, Save in the violet-to-pink gradient with the legend under the
buttons, MANDY in the gradient and the state, branch, commit, card and driver in the rail. Frame
generation: DLSS / FSR (-FsrFrameGen) / Off and a frame limit (LEONIDA_FG_LIMIT_FPS via -More,
Auto = nothing passed). Ray tracing: Off / Hardware. The game folders sit in a card under them.
Nothing passed changes for settings left at their defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng goes)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@merzleckeier

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Dec 2, 2026
OreoFR and others added 4 commits December 2, 2026 18:25
…ll, relayed by OreoFR)

The picture already in the repository, shown above MANDY as in ProjectLeonida#3064; the name alone if it cannot be read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ench says Réglages everywhere

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@merzleckeier

Copy link
Copy Markdown
Contributor

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.

@OreoFR OreoFR changed the title launcher: full overhaul of the Python launcher (sharp text, no white window, sections, 5 languages, diagnostics, Python install) launcher: full overhaul of the Python launcher (mockup look, sharp text, no white window, 5 languages, diagnostics, Python install) Dec 2, 2026
OreoFR and others added 6 commits December 2, 2026 18:29
… default, e71aa0e)

Keeps main's new default: precompile_all on, -PrecompileUsed when it is turned off with the
preparation on. The overhauled Settings page drives the same setting; docs/launcher.md says so.
PLAY's command is identical to current main's on 903 settings combinations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nflicted with main)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Stop the same in red)

Lighter under the pointer, no stippled shadow; one palm frond only, top right, so the title and PLAY
sit on a clear background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o screenshot backdrop

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…), as the 'what is new' list counts them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OreoFR OreoFR closed this Dec 2, 2026
@OreoFR OreoFR reopened this Dec 2, 2026
@OreoFR OreoFR removed the needs rebase Conflicts with the base branch: rebase it on main label Dec 2, 2026

MoonEyes commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

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

@merzleckeier

Copy link
Copy Markdown
Contributor

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.

…nder 12 GB of video memory

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lixonik

lixonik commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Dec 2, 2026
@OreoFR OreoFR closed this Dec 2, 2026
@OreoFR OreoFR reopened this Dec 2, 2026
Players whose old launcher saved 'Check for updates at start' unticked saw 'Not checked yet' and never
heard of an update. The check now runs at every start whatever launcher.json says (it runs off the
window's thread; without git or network the Updates card says so), and the Settings switch is gone.
Checked in a window with check_updates false in launcher.json: the check runs (the previous code: it
does not).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@enlight3d

Copy link
Copy Markdown
Contributor

RUN (independent, in game) for the request on #3182: hardware ray tracing together with DLSS frame generation. Runtime from #3154 head 854fc34 (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)

… is on

Reverts e9b947b (greyed only on Series X under 12 GB). A player (RTX 5080, Series X) reports the game
running too fast with frame generation and hardware RT together, never with frame generation alone, so
ProjectLeonida#3230 (which lifts the script's lock) is back to draft and the launcher follows main's script: with
hardware RT, frame generation is off, its controls greyed with the note 'Off with ray tracing for now.'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OreoFR OreoFR closed this Dec 2, 2026
@OreoFR OreoFR reopened this Dec 2, 2026
A design pass with the unslop skill by @heydamir (CC BY 4.0), in polish mode:
the layout, behaviour, rules and play command stay as they were.

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fiestorra

Copy link
Copy Markdown
Contributor

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.

OreoFR and others added 2 commits December 2, 2026 23:05
Follows the unslop skill by @heydamir (https://github.com/heydamir/unslop, CC BY 4.0), as the first pass did.

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…WITH_RT

The F1 menu's d3d12/leonida-settings.txt wins over every launcher option that was not changed since the last PLAY,
so the launcher could show one value while the game started with another.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Dec 2, 2026

@merzleckeier merzleckeier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

OreoFR and others added 2 commits December 2, 2026 23:46
… profile

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…clearer DLSS subtitle and memory notes

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@merzleckeier merzleckeier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

…menu's console

Two review findings by merzleckeier on ProjectLeonida#3182.

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OreoFR

OreoFR commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

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

Output pump (review on dafad4ca).

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 merzleckeier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants