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

Closed
babuakhil wants to merge 1 commit from upstream-pr/1398 into main
babuakhil commented 2026-11-28 18:52:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by babuakhil on 2026-11-28T18:52:05Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5543505851 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1398). Originally posted by [babuakhil](https://github.com/babuakhil) on 2026-11-28T18:52:05Z. --- 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)
babuakhil commented 2026-11-28 19:01:08 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by babuakhil on 2026-11-28T19:01:08Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7244226551 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1398#issuecomment-7244226551). Originally posted by [babuakhil](https://github.com/babuakhil) on 2026-11-28T19:01:08Z. --- Closing as a duplicate of #1393, which makes the same change and was opened first. Sorry for the noise.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

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