launcher: follow-ups after #3182 (FG+RT greying, zip to clone, game folder, AMD, clearer choices, clear cache, Controls, FSR 3 files) #3272
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3272"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T01:28:18Z.
The launcher's follow-ups after #3182 (merged) go into this one PR, as the maintainer asked. Items claimed in #2570:
Carries #3273 (merzleckeier's
Launcher.batexit status on the update's resume path:f88239534,29085dbf2, authorship kept).Carries #3289 (merzleckeier's update-card layout cancel, fixes #3285:
aec7489e3, authorship kept).Depends on: #3276 (merged) (the runtime reads
LEONIDA_KBM_BINDSonce it is merged; until then the launcher passes it and the runtime ignores it).One commit per item, plus the review fixes listed under Tested.
1. The FG + RT greying follows what play-nvidia.ps1 will hold (
a0a3189f3)This answers @merzleckeier's review of
671d0c0fa.card_facts'vramis now the largestqwMemorySizeof the display-class registry: the script's$vram, whatever-Adapterpicks. DLSS and the maker check still follow the chosen card.launch_valuescomputes what the script will hold forLEONIDA_HW_RT,LEONIDA_BVH_BUILDER,LEONIDA_FG_WITH_RT,LEONIDA_FRAME_GEN,LEONIDA_FSR_FRAMEGENand the console. It follows the script's order:$switchSettings, mirrored here and checked against the script by a test);-Morelast.settings_rulesgreys from those values. A muted note under Ray tracing says when the F1 menu or Advanced turns hardware RT on or off.2. Update Mandy makes a zip copy a git clone, installing Git when it is missing (
de2358e0b)A player who downloaded the repository as a zip got only "use a git clone" from
--update.zip_to_clone:git init, withorigin=https://github.com/ProjectLeonida/mandy.git; fetchmain, and a localmainthat follows it.git reset: the index goes tomain, the files stay as they are.%LOCALAPPDATA%\Leonida\zip-copy-backup-<date>-<time>.main's version is checked out over the tracked files. Untracked and ignored files (builds, caches,game_path.txt) are not touched.d3d12/changed..gitis removed, so the copy is a zip again, never half a clone.winget install --id Git.Git -e --source winget --silent.find_gitalso looks in Git for Windows' install paths, since PATH is stale in the running process. Without winget, or on Linux and macOS, the launcher says how to install Git and changes nothing.3. A missing game folder is a box on the Play page (
c22cd85ed)The single muted line "Choose your game folder in Settings" was missed.
4. Without an NVIDIA card PLAY passes DLSS and Smooth Motion off (
db005c435)An AMD player (RX 9070) saw DLSS greyed but still on.
-NoDlss, and-Dlss <mode>,-FrameGen Nand-SmoothMotionwere still passed when saved. On the Series S profile, that asks the script for DLSS on a card that cannot run it.for_cardturns off DLSS, its mode, DLSS frame generation's multiplier and Smooth Motion for PLAY. Frame generation on FSR or Off stays as chosen.last_switchesand the Play page's options line all use it.5. The chosen button of a row is violet with white text (
6d9a22f58)A player's screenshot did not show that FSR was the frame generation mode.
#7c3aed, white text at 5.7:1), like an "on" switch. Greyed, it is the same violet dimmed.6. Tools > Clear shader cache (
636e61f94)Players ask how to clear the cache. The new Tools button:
cache-2:play-d3d12.ps1'sLEONIDA_CACHE_DIR, which holds the translated shaders, the pipelines and the title's prepared images;The saves in
data\are not touched, and the next start makes the cache again.7. A Controls page for keyboard and mouse binds (
efa45bab9)Players asked to remap keys. A new Controls page sits between Settings and Mods:
docs/gameinput.md);The runtime's own keys (F1, F3, F4, F8, F9, Alt, Caps Lock) are refused at capture, with a red note.
What PLAY does with them:
kbm_bindsin the runtime's syntax and passed asLEONIDA_KBM_BINDS.LEONIDA_KBM_BINDStyped in the Advanced field wins, and the page says so.8. The files a card needs, by default; Tools > Fetch AMD FidelityFX files; "FSR 3" (
78a810cea)FSR 3 frame generation needs AMD's signed
amd_fidelityfx_loader_dx12.dllandamd_fidelityfx_framegeneration_dx12.dllind3d12\amd-sdk\FidelityFX\bin. Nothing fetched them, so FSR 3 stayed off without a word.The fetcher:
d3d12\scripts\get-amd-fidelityfx.ps1, withGet-AMD-FidelityFX.cmdas a wrapper.GPUOpen-LibrariesAndSDKs/FidelityFX-SDKat tag v2.4.0, the version whose frame generation and swap chain interfaces matchfsr.rs, together with AMD's licence.amd-sdk/is git-ignored.Tools: a "Fetch AMD FidelityFX files" button (about 29 MB).
By default: a new "Download the files my card needs" setting, on by default. Before PLAY, the launcher fetches what the card lacks:
This happens once, and the game starts even if a fetch fails.
With FSR 3 chosen and the DLLs missing, a note under Frame generation says so.
The frame generation mode "FSR" is now "FSR 3".
New texts in de/es/fr/pt for items 1 to 3 and 6 to 8, and
docs/launcher.mdcovers them.Tested
Windows 11, RTX 4070 Laptop. Launcher only, no game run;
play-nvidia.ps1is not touched.python -I tests/test_leonida_launcher.pypasses 130 tests (one skipped) onorigin/maind15e048a7plus this branch.f1e9718e9,b4d0f54ea,96765c480: merzleckeier's and DeadlyChirp's later rounds. The F1 menu's values are kept on AMD and Intel (-CardMask, which also survives SAVE AND RESTART, and a new card is not a player change), automatic DLSS FG follows-Adapter, the Linux cache and binds, the clear-cache race, unreadable binds kept, downloads follow the chosen modes, the options really passed are recorded, and there are no control bytes in the docs;e4af10dc1: the zip conversion stops on a folder or file in the way;daa749086: the F1 menu's NVIDIA-only values are dropped on AMD and Intel, and a hidden 1440p stays out on Series S.kbm.rsand checks every name the page can write. It is skipped on main until #3276 is in; it passes against #3276'skbm.rsviaLEONIDA_KBM_RS;ClearShaderCacheTests. Onlycache-2goes, the saves stay, it is refused while the game runs, and the folder name is the oneplay-d3d12.ps1sets. A clear that deletes the whole data folder fails these tests.ForCardTests. On AMD,-NoDlssis passed, with no-Dlss/-FrameGen/-SmoothMotion. FSR and Off are kept. NVIDIA and an unread card are unchanged. Resolution is live on AMD and greyed on NVIDIA with a DLSS mode. All 5 tests fail on the launcher before this commit.play-nvidia.ps1.find_git,install_gitandrun_updateon a zip copy, refused or allowed.origin/main, with the edit backed up and the untracked and ignored files kept;.git.play-d3d12.ps1→play-nvidia.ps1with a stubbed registry agreed with the greying in 18 of 18 cases.git archiveof an older main plus a build, agame_path.txtand a README edit was converted in about 110 s.git statusis clean apart from untracked files, and the build is kept.--update --install-git;both:G=Square;both:R=none;foot:V=RB, saved and shown on Play; F1 is refused;-SeriesS -NoDlss, DLSS and Smooth Motion are greyed and drawn off, and the saved DLSS value is kept;launcher.jsonand to Settings' field, and the box goes away.tests/test_text_write_line_endings.pyOK;scripts/check_no_game_data.pyon the changed files OK.install_gitwithfindreporting Git missing once. Winget accepted the exact command, found Git 2.56.1 already installed with nothing newer (exit0x8A15002B, no change), and the launcher then foundgit.exeand went on.Get-AuthenticodeSignaturegives Valid for both, signer CN=Advanced Micro Devices.-From) are rejected and nothing is kept; a tag that is not pinned is refused.AI-assisted (oreofr-agent, Claude Code).
🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T01:35:21Z.
Rechecked
a0a3189fond15e048a. The launcher suite had 94 passes and one skip on Linux. With integer registry values, the real wrapper dry run agrees with the UI for the selected 8 GiB card beside a 24 GiB card, and with HW RT from F1 or Advanced. I also confirmed the current script's F1-off precedence after a newly enabled launcher Hardware RT choice.One remaining representation mismatch for a follow-up.
card_factsaccepts an eight-byteqwMemorySize, whileplay-nvidia.ps1casts$qdirectly to[uint64]inside the registry-walk try block. In PowerShell 7.4.21 with Series X, hardware RT and explicit 2×, I had the actual public scripts read two synthetic registries:Decoding the eight-byte value with
[BitConverter]::ToUInt64($q, 0)before the cast in a disposable copy made both cases agree and kept the integer and F1/Advanced controls green. This uses the same binary representation the Python code already supports. Synthetic only, with registry and GPU queries stubbed. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:38:20Z.
VERIFY-3272 — green at its head, and it is one commit away from
#3273, which is notRan at the head (
a0a3189f3):So this branch is green, and the suite is 95 tests in 0.36 s — the launcher's tests never start the launcher, which is why a 3 500-line rewrite runs in a fifth of a second.
And the relationship with
#3273is worth having in writing, because the two look like alternatives and are not:#3272is#3273plus that commit — not an ancestor relationship (the histories were rebased, so the SHAs differ), but one commit of content. And the test counts differ: 95 here, 87 there, which is the other half of it — this branch has the tests that branch does not.What that means for the queue:
#3273is red on one literal (I posted the exactexit /b %ERRORLEVEL%versusexit /b\r\n:start\r\nin that pull request) and#3272carries the same file, green. If the newer work is the one to keep,#3273closes and its one commit's worth of content is already here — and if#3273is meant to be merged first, then this one should be rebased on top of it rather than merged beside it.What I verified and what I did not: the two test files, which is 106 tests; not the 6 485 added lines — the four 315-line i18n JSONs,
Launcher.bat's 151 lines andtools/leonida_launcher.py's 3 521.python -m json.toolon the four JSONs would be the cheap next check and I did not run it.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:38:28Z.
Follow-up to my own comment, because I said I had not run it: the four i18n files parse.
So the 315 lines each are well-formed JSON, not a truncated paste — which is the cheapest failure a 315-line translation file has, and it is not there.
What I still have not checked about them: that the four have the same key set — a missing key in
es.jsonwould fall back to English or to a blank label, andjson.toolwould not say a word. If the launcher's loader does not already refuse a missing key, that comparison is three lines of Python and belongs intests/test_leonida_launcher.pynext to the rest.Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:38:58Z.
The key-set check, run: all four files carry the same 321 keys, and none is empty
I said in my last comment that "three lines of Python" would compare the four i18n files and that I had not run it. Run now, on the head:
So the translation is complete on this branch — 321 keys in four languages, no missing key, no blank label, no placeholder left as the key name. That is the failure mode a
json.toolmiss would have hidden, and it is not there.And the check belongs in the suite rather than in a comment: a
tests/test_launcher_i18n.pythat loads the four files and asserts the key sets are equal and no value is blank is ten lines, runs in milliseconds, and fails the day someone adds an English string without its three translations. The launcher already has the pattern —switches.md's--checkis the same idea for the switches.What this does not say: that the translations are right — only that each key has one. A wrong word in
de.jsonis invisible to this and to any test; that is what the four-language reviewers are for.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:39:22Z.
Correction to my own comment, one minute after posting it
I wrote "values identical to their key: 0 in each". That was wrong — the check printed 12 / 8 / 13 / 11, and I repeated the number I expected instead of the one I got.
The real result, with the keys named:
And they are not a defect:
Auto,Hardware,Mods,Console,Capture,Shadersare the words these languages use as-is (PortugueseConsole, SpanishMods, FrenchCapture), andAuto ({language})is a format string whose placeholder stays in English on purpose. So "identical to the key" is my heuristic's false positive, not a missing translation — which is exactly why a check like this belongs in the suite with the empty test and not with a guess about words.What stands from the comment: the four files carry the same 321 keys, and no value is blank — both measured, both printed above my mistake.
The lesson is the one I keep running into tonight, now about my own output: I posted the expected number, not the measured one, in a comment whose whole value was that it had been measured. The empty-value count was 0 and I let it carry the neighbouring number with it.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:54:06Z.
The eight-byte
qwMemorySizeis a good catch, and the two cases you list are the ones that would have been reported as "frame generation disappears" by a player — the UI says one thing, the dry run says another, and neither is wrong on its own.Your fix is the one I would take:
[BitConverter]::ToUInt64($q, 0)before the cast, because the value is eight bytes in the registry and a cast is not a decode. And the fact that you proved it in a disposable copy — both cases agree, the integer case unchanged — is the right way to settle a representation question, whereas reading the two files and reasoning would have left a doubt.One thing worth saying about the follow-up: if it rides a later pull request, the two cases make a good test — an eight-byte-only value and an integer-then-eight-byte value, asserting that
card_factsand the dry run agree in both. That is a table test over registry shapes, and it runs on Windows without the title.And the recheck itself is worth recording: 94 passes and one skip on Linux is a different number from the 95 I saw here, which is exactly what a platform-dependent test should look like — the skip names itself, and the count difference is accounted for.
No objection from me to it landing as it stands.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T01:59:53Z.
Re-verified at
c22cd85ed: 101 tests, and the i18n folder is still here — my test is notOn the current base (
d15e048a7, after#3182):101, against the 95 I measured before
#3182— so the push added six tests and the whole suite still passes on the new launcher.And one thing I checked while I was there:
tests/test_launcher_i18n.pyis not in the branch, whiletools/launcher_i18n/is — so the branch's translations have no test that they carry the same keys or that none is blank. That is exactly what mytest-launcher-i18nbranch adds (5f63199a7,Depends on: #3272): 321 keys in each of the four, no blank, and it skips while the folder is absent.The
qwMemorySizefollow-up you described is still open — the two cases you listed (eight-byte only, and integer followed by eight bytes) would make a good table test, and that one needs the registry shapes, not the folder.Nothing to ask: this head is verified as far as the suite goes, and the only thing I would add is the twelve-line test above, which is already written and waiting on the branch.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T02:00:00Z.
Addendum, measured after I posted: 326 keys now, in four files, and still no test that they match
The folder check I ran just after posting the comment above:
326, not the 321 I measured an hour ago — so the push added five strings — and the files are still bare of any check that the four agree. My
test-launcher-i18ncompares the four key sets rather than a hard-coded count, so it does not care whether it is 321 or 326, which is the reason it is written that way.The five new strings are also the reason a test is worth more than the number: each translation pass adds to one file first, and the gap between "the four have 326" and "the four have whatever each of them has" is invisible until somebody reads that menu in Portuguese.
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T02:00:29Z.
The four files agree: 326 keys in each, nothing missing — measured on
c22cd85edI said a minute ago that nothing checks whether the four translations carry the same keys. I checked, and they do:
So the branch is correct as it stands on this head, and my
test-launcher-i18nwould go green on it rather than find something — which is what a guard is supposed to do on a good day.The reason the guard is still worth having: the next string goes into whichever file the author is working in. Five strings were added since an hour ago (321 → 326), they landed in all four at once this time, and the only thing that says so is a comparison nobody runs —
json.toolwould call a file with 325 keys valid, and the launcher would render one English label among 326 Portuguese ones without an error.So: nothing to ask, nothing to fix. The test is a guard against the next commit, not a complaint about this one, and that is the honest way to put it — a pull request that is already right does not need a test to prove it was wrong.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:03:41Z.
Review: COMMENTED
[P1] Protect local files and directories during ZIP conversion. I tested
c22cd85eon currentmain(d15e048a) with real Git and a disposable local origin. In one case the ZIP copy hadlayout/local-notes.txtand incomingmaintracked a file namedlayout. In the other, the ZIP copy had a local file namedsettingsand incomingmaintrackedsettings/defaults.txt. Both updates returned0. In both cases the local content disappeared from the copy and was absent from the backup. A modified regular file was backed up correctly, and unrelated ignored and untracked files survived.In
zip_to_clone,--diff-filter=MTleaves these path collisions outside the backup list, thengit checkout HEAD -- .replaces the local content. Check each incoming path and its parent directories before checkout. I tested an early abort in a disposable copy. It preserved both conflicting paths and removed the newly initialized.git, and the ordinary launcher suite still had 100 passes and one skip.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:22:52Z.
Review: COMMENTED
Tested
6d9a22f5merged ontod15e048a. The two launcher suites had 110 passes and seven skips with Linux PowerShell 7.7.0. Two additional dry-run cases exercise the new card filter through the actualplay-d3d12.ps1wrapper.LEONIDA_MENU_SMOOTH_MOTION=1still producedLEONIDA_MENU_SMOOTH_MOTION=1on first and repeat PLAY. With the Streamline files stubbed, an F1 file withLEONIDA_FRAME_GEN=2produced 2x on both AMD and Intel on repeat PLAY.for_cardremoves those requests from the command line, but the filtered arguments are unchanged or there is no previous PLAY, so-Chosen noneleaves the saved F1 values in effect. The empty-menu control kept both off, and an explicit FSR choice still worked. Keep the saved F1 values for a later NVIDIA launch and apply the card restriction to the effective launch settings.-Resolutionand the dry run succeeds. The AMD-filtered command sends-NoDlss -Resolution 1440and exits 1 because Series S outputs 1080p. Validate the now-effective resolution against the profile before passing it.Merge-order note for #3235 at
b3174332: Git merges cleanly, butLaunchValuesTests.test_the_switch_table_is_the_scriptsfails because PowerShell now gives both RT switches ownership of the saved RT values. Updating the Python mirror and reversing the oldHardwareRTregression expectation made the desktop suite pass again (104 passed, two skips). All fixtures above were synthetic. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T02:22:58Z.
Thanks @merzleckeier, the P1 is fixed in
e4af10dc1.The new
zip_collisionsfinds the paths where conversion would lose something:layout/local-notes.txtcase);settingscase).When there is one,
zip_to_clonestops before the backups and the checkout:.git;Tests:
.git,update_statussays zip again, and nothing is written.zip_collisionson its own.zip_collisionsreturning nothing (the old behaviour), both real-git cases fail.(oreofr-agent, AI-assisted)
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:26:53Z.
Confirmed the ZIP P1 from my earlier review is fixed at
e4af10dcond15e048a. I reran the original two collision fixtures with real Git and a local bare origin. Both returned 1, named the obstructing path, kept the local content, and left neither the temporary.gitnor a backup. The modified regular-file control still converted successfully and preserved the original in its backup. The two launcher suites had 113 passes and seven skips with PowerShell 7.7.0 on Linux. All files in the conversion probes were synthetic. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T02:30:22Z.
Thanks @merzleckeier, both P2s are fixed in
daa749086.card_chosenaddsNoDlss,NoFrameGenandSmoothMotionto-Chosenthere.play-nvidia.ps1then drops the menu's savedLEONIDA_UPSCALE,LEONIDA_FRAME_GENandLEONIDA_MENU_SMOOTH_MOTIONas it does for a typed switch.dlss, 2x, Smooth Motion 1, or FSR 1). Without the names, the menu's 2x wins. With them, the upscale is the stretch, frame generation and Smooth Motion are off, and FSR is kept. A test also checks that each name maps to a$switchSettingsentry.-NoDlss. One at 1080 or less, one on Series X, or one that was passed already is unchanged.111 launcher tests and 12 script tests OK. Counter-test: with
card_chosenandfor_cardas before, both new launcher tests fail.Noted for #3235: once both are in, the switch-table mirror and the
HardwareRTexpectation need updating, whichever merges second.(oreofr-agent, AI-assisted)
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:35:40Z.
Review: COMMENTED
Rechecked
daa74908ond15e048a. The two launcher suites had 116 passes and seven skips with Linux PowerShell 7.7.0. The original AMD/Intel dry runs kept the saved NVIDIA modes off, FSR still worked, and the Series S case with hidden 1440p returned 0. Two additional scenarios remain.card_chosen(). WithDryRun=truethe temporary menu file keptLEONIDA_UPSCALE=dlss,LEONIDA_FRAME_GEN=2,LEONIDA_MENU_SMOOTH_MOTION=1andLEONIDA_FSR_FRAMEGEN=1. WithDryRun=false, the write left only the FSR entry. The capability filter marks the three options as user-chosen switches, and normal PLAY persists the removal of those keys. Apply the per-launch capability mask independently of that saved-settings deletion path so those values remain available when the NVIDIA adapter is selected again.LEONIDA_ADAPTER=AMD Radeon RX 7800 XTandLEONIDA_FRAME_GEN=2. NamingNoFrameGenin-Chosendrops the F1 entry, but the launch has no actual-NoFrameGenflag and the initial auto detection sees the other card. Passing the flag through the wrapper suppressed DLSS FG in the same fixture and still allowed an explicit-FsrFrameGen.Synthetic fixtures only. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-12-03T02:46:04Z.
Native Windows confirmation of the already reported F1-settings P2 on current PR head
636e61f9427aeecaa6f7c97aab40b72945a37c7d:play-nvidia.ps1into a disposable synthetic tree and created a menu file withLEONIDA_UPSCALE=dlss,LEONIDA_FRAME_GEN=2,LEONIDA_MENU_SMOOTH_MOTION=1, andLEONIDA_FSR_FRAMEGEN=1.Get-CimInstancereturned an AMD adapter. I invoked the same three typed switches produced by the non-NVIDIA card filter (NoDlss,NoFrameGen,NoSmoothMotion), with-DryRunomitted.Start-Processwas stubbed to avoid launching anything.leonida-settings.txtcontained onlyLEONIDA_FSR_FRAMEGEN=1; the three saved NVIDIA choices were removed. The committed card-switch test uses-DryRun, so it does not exercise this persistence path.This confirms the existing review finding remains on the current head. Synthetic files only; no game data, game launch, or GPU used.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:47:39Z.
Review: COMMENTED
Reviewed the cache-clearing addition at
636e61f9ond15e048a. The two launcher suites had 120 passes and seven skips with PowerShell 7.7.0 on Linux. Two additional synthetic checks exercised the Tools action and the Linux launch path.play_command(..., windows=False)with a stand-in Wine process. With a temporaryXDG_DATA_HOME, PLAY usedleonida/cache, while the Tools action attools/leonida_launcher.py:1585–1587looked underLeonida/d3d12/cache-2. It reported that the cache was already empty and left the test file in PLAY’s actual cache. The action needs the same platform-specific path selection as PLAY, or a Windows-only scope.clear_cachemethod with a fake dialog that changed the externally detected game state from stopped to running. There was onegame_running()query before the dialog. After confirmation, the callback at line 4425 checked onlyself.process, so it deleted the synthetic cache and reported success. Includinggame_running()in that final check preserved the fixture and showed the expected “Close the game first” message.All files and process states were synthetic. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T02:58:11Z.
Review: COMMENTED
Reviewed the new Controls page at
efa45babwith #3276 at2ab7c60eon2791b775. I resolved the conflict intests/test_leonida_launcher.pylocally by keeping the launcher tests from this PR and adding the VRAM assertions from #3279. The two launcher suites had 125 passes and seven skips with PowerShell 7.7.0 on Linux. Two additional probes used synthetic settings and a stand-in Wine process.kbm_binds=both:G=Squaresaved by the launcher, the command fromplay_command(..., windows=False)runsscripts/play-linux.shwithLEONIDA_KBM_BINDSunset at the runtime boundary. The same script passes the binding through when the variable is inherited. The Controls page is available on Linux and says the setting applies on the next launch. Please pass the saved value through the Linux launch environment and preserve the documented precedence of Advanced overrides.both:G=Square;vehicle:N=FutureAction, add H for Square, and save. The settings file ends up with onlyboth:H=Square, including loss of the valid G binding. The same action on a readable list keeps G and adds H.kbm_add()clearskbm_rawbefore capture, so the subsequent save replaces the original even though the page promises to keep an unreadable value whole. Please retain the original value or require an explicit reset before replacing it.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:11:16Z.
Review: COMMENTED
Reviewed the automatic SDK downloads at
14b37488with #3276 at2ab7c60eon2791b775. The two launcher suites had 135 passes and seven skips with Linux PowerShell 7.7.0. I exercised the launcher callbacks with synthetic settings and stand-ins for the UI, downloads and game process.-FsrFrameGen -NoDlss, while the AMD files are still missing. With NVIDIA’s files already present it queues no download.play-nvidia.ps1drops FSR 3 when those files are absent. Please account for the selected mode when planning downloads and make the note follow the same decision.start_game()records Performance inlast_switchesbecause it reads the live settings after the download. The next PLAY leavesDlssout of-Chosen, so a saved F1 mode can override the Performance change. Capture the normal launch’s switch list with the queued command and save that snapshot once the process starts.The install path in
docs/launcher.mdalso contains literal0x07and0x08bytes where the backslashes beforeamd-sdkandbinbelong.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:18:02Z.
Thanks @merzleckeier and @DeadlyChirp. The six findings from the 02:35, 02:47 and 02:58 reviews and the 02:46 confirmation are fixed in
f1e9718e9, merged with the branch's head inc8baf9b74:-Chosen. The launcher passes-CardMask NoDlss,NoFrameGen,SmoothMotion(card_mask), andplay-d3d12.ps1hands it over.play-nvidia.ps1leaves those settings out of this start only, keeps them inleonida-settings.txt, and says so. The menu's FSR 3 stays.-DryRun,Start-Processstubbed): the file keepsLEONIDA_UPSCALE=dlss,LEONIDA_FRAME_GEN=2andLEONIDA_MENU_SMOOTH_MOTION=1, while this start's settings have them off.-Adapter, the automatic DLSS frame generation judges the cards whose name holds it (all of them when none does), and the mask'sNoFrameGenalso keeps it off. Dry runs on AMD + RTX 4070:-Adapter "AMD Radeon RX 7800 XT": none;-Adapter "RTX 4070": 2x;-Adapter: 2x;play-linux.sh'sLEONIDA_CACHE_DIR, or${XDG_DATA_HOME:-~/.local/share}/leonida/cache.game_running()again. In a real window, a game started during the dialog leaves the cache in place and gives "close the game first".play-linux.sh's environment (env NAME=value sh play-linux.sh ...): the Controls binds and the advanced options, with Advanced winning. Neither was passed on Linux before.split_kbm_bindskeeps the entries the page cannot read, and they are written back after the rows.both:G=Square;vehicle:N=FutureActionnow saves G, H and the unknown entry, checked in a real window.t()withtext=, which crashed it as soon as an unreadable entry showed. The placeholder is now{entries}, and a test guards against anyt(..., text=...).Tests:
tests/test_win_launchers.py: 12 OK;check_no_game_dataOK.Counter-tests: with the mask ignored, the adapter filter off, the Linux env or cache path,
split_kbm_bindsorcard_maskreverted, each fails its test.(oreofr-agent, AI-assisted)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:21:49Z.
Thanks @merzleckeier, the three points of your 03:11 review are fixed in
b4d0f54ea, merged on top of the 1-6 fixes as4b64ba9e4.FSR 3 chosen queues AMD's files.
needed_filesnow takes PLAY's settings as well as the card:Your case, an RTX 4070 with FSR 3 and no SDK files, now queues
get_fidelityfx.Recorded options.
launch_snapshottakes the normal launch's switches together with the command, andstart_gamerecords that snapshot. A mode saved during the download no longer counts as passed.Control bytes. The BEL and BS in
docs/launcher.md'sd3d12\amd-sdk\FidelityFX\binare replaced with the backslashes. A newNoControlCharactersTestsfails on any control byte but tab, LF and CR indocs/*.md, the READMEs, the launcher and its translations.133 launcher tests OK, and the script, docs-links and line-ending tests too. Counter-tests: modes ignored, live settings recorded, or a BEL appended each fail their test.
(oreofr-agent, AI-assisted)
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:26:02Z.
Review: COMMENTED
Rechecked
4b64ba9eon currentmain(516c9eaa, with #3276). Confirmed that explicit FSR 3 now queues FidelityFX on the RTX 4070, a save during the download no longer overwrites the recorded launch options, and the documentation path has no control bytes. The Controls setting and Advanced override now reach Linux PLAY, adding a bind keeps the unreadable entry, and the default Linux cache and confirmation-race fixtures pass. The first AMD PLAY kept the F1 file intact, and mixed-adapter automatic DLSS FG followed the selected adapter. I found four remaining cases.test_only_the_cache_goesandtest_the_default_data_folder_and_sizesexpect Windowscache-2paths while calling the platform-default Linux resolver. On Linux PowerShell 7.7.0 the two launcher suites had 140 passes, two failures and seven skips. The newer Linux-specific cache tests pass.last_switchesfrom the preceding NVIDIA PLAY and changed only the adapter to AMD. With the actual wrapper and a stand-in runtime, PLAY sent-Chosen Adapter,Dlss,FrameGen,NoDlss,SmoothMotionas well as-CardMask. The F1 merge dropped the savedLEONIDA_UPSCALE,LEONIDA_FRAME_GENandLEONIDA_MENU_SMOOTH_MOTIONvalues. Comparing options after the card filter makes the filter look like user edits. Please separate the user’s switch changes from the per-card output.LEONIDA_FRAME_GEN=2. I used the exact generatedLEONIDA_MENU_ARGSfor a second dry run with the same adapter. It contains-MenuRestartand omits-CardMask, so the second launch emitsLEONIDA_FRAME_GEN=2. Please replay the mask and cover the generated restart command.LEONIDA_CACHE_DIRset through the launcher’s Advanced options, the actual Linux launch script uses the custom cache. The Tools action resolves the default path, reports success after clearing it, and leaves the active cache intact. Both cache directories and the save were synthetic.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:33:33Z.
Thanks @merzleckeier, all four are fixed in
96765c480, which also merges main with #3276.windows=True, andclear_shader_cachetakeswindows. The suite passes 139 tests under Linux (WSL Ubuntu, Python 3.12), where the old tests fail on these two exactly as in CI.-Chosennow compares the player's own switches (the saved settings, plus-Logfor a diagnostic start), andlast_switcheskeeps those too. It is still taken with the queued command. The card's part goes only as-CardMask. In your case it is now-Chosen Adapterwith-CardMask NoDlss,NoFrameGen,SmoothMotion.LEONIDA_MENU_ARGScarries-CardMask.test_win_launchersruns the generated restart command:LEONIDA_FRAME_GENstays masked and the upscale is the stretch.LEONIDA_CACHE_DIRtyped in the Advanced options, on both systems, instead of the default cache.Counter-tests: the old snapshot and chosen logic plus no Advanced lookup fail 3 of 3 tests, and a restart without
-CardMaskfails the restart case.test_win_launchers: 12 OK.(oreofr-agent, AI-assisted)
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:39:57Z.
Review: COMMENTED
Rechecked
29085dbfon516c9eaa. The two launcher suites had 144 passes and seven skips with Linux PowerShell 7.7.0. All four earlier cases pass: the Linux cache tests, the NVIDIA-to-AMD switch preserving all F1 keys, the generated F1 restart retaining-CardMask, and clearing an absolute Advanced cache path while keeping the default cache. Thanks for carrying both #3273 commits. I reran the old-batch-to-new-batch update with a synthetic updater under Wine CMD. Statuses 0, 7, 128 and 255 all reached the caller.[P1] Resolve relative cache paths consistently before recursive cleanup. In a Linux fixture launched from outside its checkout, PLAY ran the shell with the checkout as its working directory. A relative Advanced cache path was therefore created under the checkout. The Tools action resolved that same setting from the GUI’s working directory and selected a different existing directory. I intercepted the removal call and observed the two resolved paths. Please use the same absolute cache path for PLAY, confirmation and deletion. The Advanced value currently becomes the recursive deletion target directly, so the cleanup also needs to reject paths overlapping the saves or installation directories.
The path fixtures were synthetic. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:46:15Z.
Thanks @merzleckeier, the P1 is fixed in
69925a7c0.shader_cache_dirmakes an AdvancedLEONIDA_CACHE_DIRabsolute from where the runtime starts:d3d12on Windows, where play-nvidia.ps1 pushes, and the checkout on Linux. The confirmation and the deletion use that same path.cache_dir_problemrefuses a drive's root, a folder that holds the home folder or the data folder, and any folder that holds or sits in the saves, the game folder or Mandy's own folder. A relative value always resolves inside the checkout, so it is refused too. The default<data>/cache-2stays allowed.CacheDirGuardTestscovers both. 141 OK. Counter-test with the guard off and the removal stubbed: both tests fail.(oreofr-agent, AI-assisted)
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:50:07Z.
Review: COMMENTED
Rechecked
69925a7con516c9eaa. The two launcher suites had 146 passes and seven skips with Linux PowerShell 7.7.0. An Advanced cache path relative to the checkout is resolved correctly: the in-checkout case is refused, and a dedicated sibling cache resolves to the same folder in PLAY and Tools.cache_dir_problemalways builds the protected Saves path fromdata_root(settings)/data. In a synthetic Linux run,play-linux.shselected its platform-specific saves directory, and the validator accepted that effective path as a cache cleanup target. I tested the validator directly for this case. Please protect the effective saves location, includingLEONIDA_DATA_DIRoverrides, using the same defaults and resolution as PLAY.LEONIDA_CACHE_DIRstill skips normalization. With the GUI started outside its checkout, PLAY used the checkout-relative cache and Tools selected the working-directory-relative one. A typed tilde path also differed: PLAY used it literally while Tools expanded it. I intercepted the removal call in both fixtures. Please resolve the same absolute cache path for launch and cleanup.AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T03:54:20Z.
Thanks @merzleckeier, both are fixed in
9fa65d1e7.[P1] The effective saves are protected. The new
runtime_dirgives the runtime's own folder forLEONIDA_DATA_DIRandLEONIDA_CACHE_DIR, in this order:<data>/cache-2and<data>/dataon Windows,${XDG_DATA_HOME:-~/.local/share}/leonida/{cache,data}on Linux.cache_dir_problemnow refuses anything that holds or sits in those effective saves, on top of<data_root>/data.[P2] One resolution for inherited and typed paths. Relative values resolve from where the runtime starts:
d3d12on Windows, the checkout on Linux.~is no longer expanded, matching leonida-core's config, which takes the value as it is.Tests:
RuntimeDirTests. An inherited relative path, a typed~, the Linux default saves and their parent, and an AdvancedLEONIDA_DATA_DIRon both systems are covered. The Linux default cache stays allowed. 143 OK. With the old saves guard, the new test fails.(oreofr-agent, AI-assisted)
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:58:30Z.
Rechecked the two cache findings at
9fa65d1e. In a synthetic Linux launch throughplay-linux.sh, inherited relative and typed tilde paths now resolve from the checkout in both PLAY and Tools. The guard refuses the in-checkout targets, and a dedicated sibling cache still resolves to the same folder in both. The validator now rejects the effective Linux saves directory. The added default and Advanced saves tests passed, with removal intercepted in my separate alignment fixture.I also checked the new update-card fix #3289 (
26f7d4a1) together with this head. They merge cleanly and the real-Tk regression and four cache tests pass together. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T04:21:08Z.
Merging (OreoFR's OK): head
aec7489e3, CI green on all six checks against main, no conflict, all review rounds addressed (merzleckeier's last recheck at 03:58 found nothing new; #3273 and #3289 carried with authorship kept). Sent to the merge queue. (oreofr-agent, AI-assisted)