launcher: key-binding page, 8 GB frame-generation warning, Git's error on the first download #3421

Merged
leonida/mandy
OreoFR merged 8 commits from oreofr/launcher-keys-page into main 2026-12-04 03:23:19 +00:00 AGit

Pull request successfully merged and closed

Member

One global launcher pull request (OreoFR's request): the visual key-binding page, #3418's 8 GB frame-generation warning, and Git's own error on the first download, with a Windows TLS (schannel) retry.

What is in it

  • Key-binding page (Controls): a drawn keyboard and mouse showing what each key does on foot and in a vehicle (kbm.rs's two tables), the actions in four groups with their keys as chips, click-then-press binding, conflicts (taken or swapped), Undo, Default layout, mouse look speed and Invert up and down, all saved as LEONIDA_KBM_BINDS / LEONIDA_MOUSE_SENSITIVITY / LEONIDA_MOUSE_INVERT_Y.
  • The page fits one screen: the drawn keyboard is scaled to a height budget (KBM_BOARD_MAX_H, centred when the height limits it), tighter rows and smaller chips in the four columns, mouse speed and invert on the line under the drawing (the legend is gone: the lists' coloured titles name the groups), and the scroll bar shows only when a smaller window needs it. No scrolling at the default window (1120x740) or the one a 1366x768 screen gets (1120x675).
  • 8 GB + frame generation 4x warning (was #3418): on a card of 8 GB or less, frame generation 3x/4x shows that the game can freeze and that 2x is safer.
  • Git's error on the first download: the first-run window keeps its category line (no connection, busy, unavailable) and adds Git said: ..., the last meaningful line of Git's error (Could not resolve host: ..., Failed to connect to ... port 443, SSL certificate problem: ..., Connection timed out ...), without the user's folder or any credentials in a URL, at most 120 characters. Could not resolve host adds a hint: another DNS, or the VPN or proxy off.
  • Windows TLS (schannel) retry: when the first download's git clone, or Update Mandy's fetch, pull or ls-remote, fails on schannel (SEC_E_INVALID_TOKEN, a failed handshake), the same command runs once more with -c http.sslBackend=openssl and one line says so; CRYPT_E_NO_REVOCATION_CHECK gets -c http.schannelCheckRevoke=false instead. Per command only: the player's global Git config is never changed. A retry that fails again adds the hint that antivirus HTTPS scanning, a VPN or a proxy may be blocking Git.
  • New strings in every language (de, es, fr, pt); docs/launcher.md updated.

Tests

  • 29 standalone test files (every file named launcher, tool, docs or i18n, plus test_text_write_line_endings, test_bug_report_info, test_win_launchers) via scripts/run_standalone_tests.py -j 8: 493 tests, 0 failures (12 skipped). test_leonida_launcher: 287 tests.
  • New tests: Git error detail on real error texts, a path with the user name, user:pass@ and token URLs, the 120-character limit, the DNS hint; schannel classification on real texts, exactly one retry with exactly the right -c option, the global config never touched, an Update Mandy pull retried, the antivirus hint; a Tk test that the Controls page needs no scrolling at 1120x740 and 1120x675; the keyboard unit fits its height.
  • i18n JSON files valid; check_no_game_data.py on the changed files clean; one if __name__ == "__main__": block.
  • Screenshots (English): the first-run window with a simulated Could not resolve host, and Controls at the default size and at the 1366x768 size. Windows 11, RTX 4070 Laptop, driver 621.40 (the launcher only; the game was not started).

Launcher change: approved by OreoFR.

AI-assisted.

🤖 Generated with Claude Code

One global launcher pull request (OreoFR's request): the visual key-binding page, #3418's 8 GB frame-generation warning, and Git's own error on the first download, with a Windows TLS (schannel) retry. ## What is in it - **Key-binding page (Controls)**: a drawn keyboard and mouse showing what each key does on foot and in a vehicle (kbm.rs's two tables), the actions in four groups with their keys as chips, click-then-press binding, conflicts (taken or swapped), Undo, Default layout, mouse look speed and Invert up and down, all saved as `LEONIDA_KBM_BINDS` / `LEONIDA_MOUSE_SENSITIVITY` / `LEONIDA_MOUSE_INVERT_Y`. - **The page fits one screen**: the drawn keyboard is scaled to a height budget (`KBM_BOARD_MAX_H`, centred when the height limits it), tighter rows and smaller chips in the four columns, mouse speed and invert on the line under the drawing (the legend is gone: the lists' coloured titles name the groups), and the scroll bar shows only when a smaller window needs it. No scrolling at the default window (1120x740) or the one a 1366x768 screen gets (1120x675). - **8 GB + frame generation 4x warning** (was #3418): on a card of 8 GB or less, frame generation 3x/4x shows that the game can freeze and that 2x is safer. - **Git's error on the first download**: the first-run window keeps its category line (no connection, busy, unavailable) and adds `Git said: ...`, the last meaningful line of Git's error (`Could not resolve host: ...`, `Failed to connect to ... port 443`, `SSL certificate problem: ...`, `Connection timed out ...`), without the user's folder or any credentials in a URL, at most 120 characters. `Could not resolve host` adds a hint: another DNS, or the VPN or proxy off. - **Windows TLS (schannel) retry**: when the first download's `git clone`, or Update Mandy's `fetch`, `pull` or `ls-remote`, fails on schannel (`SEC_E_INVALID_TOKEN`, a failed handshake), the same command runs once more with `-c http.sslBackend=openssl` and one line says so; `CRYPT_E_NO_REVOCATION_CHECK` gets `-c http.schannelCheckRevoke=false` instead. Per command only: the player's global Git config is never changed. A retry that fails again adds the hint that antivirus HTTPS scanning, a VPN or a proxy may be blocking Git. - New strings in every language (de, es, fr, pt); docs/launcher.md updated. ## Tests - 29 standalone test files (every file named launcher, tool, docs or i18n, plus test_text_write_line_endings, test_bug_report_info, test_win_launchers) via `scripts/run_standalone_tests.py -j 8`: 493 tests, 0 failures (12 skipped). test_leonida_launcher: 287 tests. - New tests: Git error detail on real error texts, a path with the user name, `user:pass@` and token URLs, the 120-character limit, the DNS hint; schannel classification on real texts, exactly one retry with exactly the right `-c` option, the global config never touched, an Update Mandy pull retried, the antivirus hint; a Tk test that the Controls page needs no scrolling at 1120x740 and 1120x675; the keyboard unit fits its height. - i18n JSON files valid; `check_no_game_data.py` on the changed files clean; one `if __name__ == "__main__":` block. - Screenshots (English): the first-run window with a simulated `Could not resolve host`, and Controls at the default size and at the 1366x768 size. Windows 11, RTX 4070 Laptop, driver 621.40 (the launcher only; the game was not started). Launcher change: approved by OreoFR. AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The Controls page becomes a drawn keyboard (main block, arrows, keypad) and mouse in the
launcher's dark violet style, each bound key tinted by its action's group with an icon,
for kbm.rs's two tables (On foot / In a vehicle). The actions are listed by group with
their keys as chips and + to add one; click an action, chip or key, then press the new
key (Esc cancels, right-click frees). A key does one action per table: replacing swaps,
adding takes it from the other action, and the page says which. Undo, Default layout
(the runtime's own layout), a mouse look speed slider (LEONIDA_MOUSE_SENSITIVITY) and
inverted look (LEONIDA_MOUSE_INVERT_Y).

Saved at once in kbm_binds, only the keys that differ from kbm.rs's defaults, in its
syntax with action_named's first names; PLAY passes it as LEONIDA_KBM_BINDS through
extra_variables. Tests read kbm.rs's default tables and action_named from its text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DLSS frame generation at 4x and up on a card with 8 GB of video memory or less can
freeze the game. Settings shows a warning-coloured line under the multiplier and the
Play page one under PLAY (beside the Series X memory note); the choice is not blocked.
The card's memory is card_facts' vram (the registry's qwMemorySize, as the Graphics
card rules read it); unknown memory, Auto, FSR 3 and Off never warn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One global launcher pull request, as asked: the i18n JSON conflicts kept
every key from both sides (the new warning appended after the key-page strings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failed git clone at the first start keeps its category line (no connection,
busy, unavailable) and adds "Git said: ..." with the last meaningful line of
Git's error, scrubbed of the user's folder and of credentials in URLs, at most
120 characters. "Could not resolve host" also gets a hint: another DNS, or the
VPN or proxy off. Strings in every language; tests on real Git error texts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first download's git clone and Update Mandy's fetch, pull and ls-remote,
when they fail on schannel (SEC_E_INVALID_TOKEN, a failed handshake), run once
more with -c http.sslBackend=openssl; CRYPT_E_NO_REVOCATION_CHECK gets
-c http.schannelCheckRevoke=false instead. One line says so; the global Git
config is never changed. A retry that fails again gets the antivirus/VPN/proxy
hint. Tests on real schannel texts, the single retry and the hint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The drawn keyboard is scaled to a height budget (KBM_BOARD_MAX_H, centred when
the height limits it), the four action lists use tighter rows and smaller key
chips, the mouse look speed and Invert sit on the line under the drawing (the
legend is gone: the lists' coloured titles say the groups) and the scroll bar
shows only when a smaller window needs it. A Tk test checks the page needs no
scrolling at 1120x740 (the default window) and 1120x675 (a 1366x768 screen).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run_gui loads the system's language; the tests that follow read English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OreoFR changed title from launcher: a visual key-binding page for keyboard and mouse (LEONIDA_KBM_BINDS) to launcher: key-binding page, 8 GB frame-generation warning, Git's error on the first download 2026-12-04 03:00:01 +00:00
OreoFR merged commit c43bc64101 into main 2026-12-04 03:23:19 +00:00
Author
Member

Merging. Head 2ee2bf1de (a3b65b7d1 + main 22182e2f6 merged in), main 22182e2f6 → c43bc6410. One global launcher PR (OreoFR's request): the visual key-binding page (fits one screen, checked at 1120x740 and 1120x675), the 8 GB + frame generation 4x warning (from #3418, closed), Git's own error line on the first download with a DNS/VPN hint, and one retry with Git's own TLS when Windows' TLS (schannel) refuses the connection.

Local CI run by the merger on the head merged into current main (quick mode, launcher only): PASS, no failure.

Step Result
Merge into main clean
No game data tracked PASS (3831 files)
No game data under another name PASS
D3D12 runtime (Rust) SKIP (quick: launcher only)
Compile Python PASS
make_game.py --help PASS
Python tests (standard library) PASS
Python tests (pytest) SKIP (pytest not installed)
Sensitive files unchanged PASS

Also before the push: 493 tests in the 29 launcher/tool/docs/i18n test files, 0 failures; i18n JSON valid; one __main__ block. The CI on a3b65b7d1 merged into 4d9e4d05d passed too. Launcher change approved by OreoFR (maintainer, launcher owner). Game not launched; the key bindings are to be checked in game next.

AI-assisted (Claude Code).

Merging. Head 2ee2bf1de (a3b65b7d1 + main 22182e2f6 merged in), main 22182e2f6 → c43bc6410. One global launcher PR (OreoFR's request): the visual key-binding page (fits one screen, checked at 1120x740 and 1120x675), the 8 GB + frame generation 4x warning (from #3418, closed), Git's own error line on the first download with a DNS/VPN hint, and one retry with Git's own TLS when Windows' TLS (schannel) refuses the connection. Local CI run by the merger on the head merged into current main (quick mode, launcher only): PASS, no failure. | Step | Result | |---|---| | Merge into main | clean | | No game data tracked | PASS (3831 files) | | No game data under another name | PASS | | D3D12 runtime (Rust) | SKIP (quick: launcher only) | | Compile Python | PASS | | make_game.py --help | PASS | | Python tests (standard library) | PASS | | Python tests (pytest) | SKIP (pytest not installed) | | Sensitive files unchanged | PASS | Also before the push: 493 tests in the 29 launcher/tool/docs/i18n test files, 0 failures; i18n JSON valid; one `__main__` block. The CI on a3b65b7d1 merged into 4d9e4d05d passed too. Launcher change approved by OreoFR (maintainer, launcher owner). Game not launched; the key bindings are to be checked in game next. AI-assisted (Claude Code).
Author
Member

Verified in game by OreoFR on main: the launcher's Controls keys page rebinds a key (Forward moved off W) and the new key works in game while the old one does not; Default layout puts it back. RTX 4070 Laptop, Windows 11.

Verified in game by OreoFR on main: the launcher's Controls keys page rebinds a key (Forward moved off W) and the new key works in game while the old one does not; Default layout puts it back. RTX 4070 Laptop, Windows 11.
Sign in to join this conversation.
No description provided.