Script launcher: mouse and keyboard on from F1 gets its bindings file #1398

Closed
github-bot wants to merge 1 commit from github-bot/gh-1398 into main AGit
Owner

@⁠babuakhil on GitHub · 2026-11-28 18:52 UTC · original
babuakhil:fix/mnk-script-launcher → main · +17 −0 · 1 files · 1 commits · closed without merging

Fixes #1369. May also be the cause of #1379 (L/R are Tab/Q in the default bindings, which only work once mouse and keyboard is on).

The fault

With MOUSE AND KEYBOARD on in F1, the script launcher (play-nvidia.ps1 → play-foxhound.ps1) passes VICTORY_MNK=1 from victory-settings.txt but never VICTORY_MNK_BINDINGS. Only victory.exe's play sets that (apps/victory/src/play.rs:865). Without it, mnk.rs load() returns None, so mouse and keyboard stays off, and F1's KEY BINDINGS (Binds::open) finds no file and says to enable mouse and keyboard although it is on. The log in #1369 is named victory-nvidia-<date>-<time>.log, the script launcher's name.

The change

scripts/play-foxhound.ps1, after the F1 switches and -More are applied, does what play.rs does:

  • bindings.ini in %LOCALAPPDATA%\victory (or VICTORY_HOME): the same file victory.exe uses, so both launchers share one set of bindings;
  • written with the repository's bindings.ini the first time, left alone after that (edits kept);
  • a VICTORY_MNK_BINDINGS given with -More still names another file;
  • set after the window's leftover VICTORY_* switches are cleared, so it reaches the game.

Tested

  • The new block run in Windows PowerShell 5.1 against fake settings and a fake %LOCALAPPDATA%: off (nothing written), on first run (file written, identical to the repository's defaults), on with an edited file (kept), -More naming a file (used), VICTORY_HOME set (used); a path with a space. The whole script parses with no errors.
  • Not yet run in the game.
  • CI will be red for reasons already on main at 9300875 (its own CI run fails the same way): two clippy lints (manual_is_multiple_of, let_and_return) in files this does not touch, and xtask policy rejecting bindings.ini (file type not on the allowlist). Everything else in cargo test --workspace passes.

🤖 Generated with Claude Code

**@⁠babuakhil** on GitHub · 2026-11-28 18:52 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1398) `babuakhil:fix/mnk-script-launcher` → `main` · +17 −0 · 1 files · 1 commits · closed without merging Fixes #1369. May also be the cause of #1379 (L/R are Tab/Q in the default bindings, which only work once mouse and keyboard is on). ## The fault With MOUSE AND KEYBOARD on in F1, the script launcher (`play-nvidia.ps1` → `play-foxhound.ps1`) passes `VICTORY_MNK=1` from `victory-settings.txt` but never `VICTORY_MNK_BINDINGS`. Only `victory.exe`'s play sets that (`apps/victory/src/play.rs:865`). Without it, `mnk.rs` `load()` returns `None`, so mouse and keyboard stays off, and F1's KEY BINDINGS (`Binds::open`) finds no file and says to enable mouse and keyboard although it is on. The log in #1369 is named `victory-nvidia-<date>-<time>.log`, the script launcher's name. ## The change `scripts/play-foxhound.ps1`, after the F1 switches and `-More` are applied, does what `play.rs` does: - `bindings.ini` in `%LOCALAPPDATA%\victory` (or `VICTORY_HOME`): the same file `victory.exe` uses, so both launchers share one set of bindings; - written with the repository's `bindings.ini` the first time, left alone after that (edits kept); - a `VICTORY_MNK_BINDINGS` given with `-More` still names another file; - set after the window's leftover `VICTORY_*` switches are cleared, so it reaches the game. ## Tested - The new block run in Windows PowerShell 5.1 against fake settings and a fake `%LOCALAPPDATA%`: off (nothing written), on first run (file written, identical to the repository's defaults), on with an edited file (kept), `-More` naming a file (used), `VICTORY_HOME` set (used); a path with a space. The whole script parses with no errors. - **Not yet run in the game.** - CI will be red for reasons already on `main` at `9300875` (its own CI run fails the same way): two clippy lints (`manual_is_multiple_of`, `let_and_return`) in files this does not touch, and `xtask policy` rejecting `bindings.ini` (file type not on the allowlist). Everything else in `cargo test --workspace` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With MOUSE AND KEYBOARD on in F1, play-nvidia.ps1 / play-foxhound.ps1
passed VICTORY_MNK=1 but never VICTORY_MNK_BINDINGS, which only
victory.exe's play set. The layer reads its keys from that file and
stays off without it, and F1's KEY BINDINGS said to enable mouse and
keyboard although it was on (#1369).

The script now does what play.rs does: bindings.ini in
%LOCALAPPDATA%\victory (or VICTORY_HOME), the same file victory.exe
uses, written with the repository's defaults the first time. A
VICTORY_MNK_BINDINGS given with -More still names another file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 18:56:35 +00:00
github-bot closed this pull request 2026-11-28 19:02:25 +00:00
Author
Owner

@⁠babuakhil on GitHub · 2026-11-28 19:01 UTC · original

Closing as a duplicate of #1393, which makes the same change and was opened first. Sorry for the noise.

**@⁠babuakhil** on GitHub · 2026-11-28 19:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1398#issuecomment-7244226551) Closing as a duplicate of #1393, which makes the same change and was opened first. Sorry for the noise.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1398
No description provided.