[Feature proposal] Binding-aware keyboard HUD prompts and MnK safeguards #1365

Closed
opened 2026-11-28 18:08:04 +00:00 by github-bot · 4 comments
Owner

@⁠ItsYungFlexer on GitHub · 2026-11-28 18:04 UTC · original

The recent mouse/keyboard additions make the game much more usable on PC, but keyboard users still have to translate Xbox prompts into their custom bindings. An interaction labelled LB might actually require Tab.

I've put together an AI-assisted source candidate addressing that gap, alongside several focused input safeguards. I'd like to propose reviewing these as separate upstream changes rather than importing my entire CHECK-based fork.

Native keyboard/mouse HUD prompts

The candidate replaces nine common prompt sprites in the game's existing UI using the primary binding from the same parser used for gameplay input.

Examples with my current profile:

  • A → Shift arrow
  • B → R
  • X → Spacebar symbol
  • Y → F
  • LB → Tab
  • LT → Mouse2
  • RB → Q
  • RT → Mouse1
  • View → V

These follow the actual binding profile rather than assuming everyone uses the defaults. A separate custom profile was also rebuilt and verified.

F1 adds a KEYBOARD HUD PROMPTS toggle. Bindings refresh after restarting; alternate bindings still work, but the primary binding is displayed.

Why consider it for main?

  • Prompts tell keyboard users what to press.
  • Custom bindings and displayed prompts share the same input parser.
  • Game archives remain unchanged on disk.
  • No additional external dependencies or downloaded artwork are required.
  • No separate overlay or additional per-frame input polling is introduced.
  • Failed preparation or source verification leaves the original prompts intact.

The hook verifies the archive length and exact original bytes before substitution. Rebuilding preserves the entry's compressed and decoded lengths, shape IDs, and non-shape UI content, including scripts, symbols and placements. Shared background art is preserved.

Small input safeguards

These should be independently reviewable:

  • Cancel active rebinding when foreground focus is lost, before polling further keys.
  • Update the displayed in-memory binding only after its file write succeeds.
  • Create the initial default profile exclusively, preserving an existing custom profile.

The focus change specifically concerns rebind capture; upstream already filters ordinary menu hotkeys by foreground ownership.

Separate texture-retention experiment

The fork also adapts the idea in #280. Disabling retention globally produced extensive black flicker on my system.

The adaptation checks only same-description textures at moved addresses. It compares bounded first/middle/last samples using fixed stack buffers and checked arithmetic. A detected mismatch rejects the stale image; unreadable data preserves normal retention.

This remains a heuristic. Equal samples do not prove complete texture identity or GPU coherence. I am not claiming a confirmed fix for every green car or corrupted face, or zero performance cost. This should remain a separate opt-in experiment pending gameplay measurements.

Validation

  • 177 targeted tests passed, zero failed; two hardware/benchmark cases ignored.
  • Includes substitution-before-decompression tests across all four supported DirectStorage I/O modes.
  • Native prompt rebuilding verified at exactly 9,644 stored bytes and 28,148 decoded bytes.
  • Current and modified binding profiles verified.
  • Archive SHA-256 unchanged before and after preparation.
  • Asset policy passed for 305 repository files.
  • Cargo manifests, Cargo.lock and toolchain pins unchanged for these candidates.

Actual in-game placement, readability, coverage, frame times and long-session stability remain unverified. This first attempt does not replace the full controller diagram or stick/D-pad/Menu icons. Source review is not antivirus clearance.

Source and credits

HUD implementation:
github.com/ItsYungFlexer/VIctory-NVIDIA-Reviewed@1644eaeda7

HUD design, audit and limitations:
github.com/ItsYungFlexer/VIctory-NVIDIA-Reviewed@1644eaeda7/docs/keyboard-hud-candidate.md

Validation:
github.com/ItsYungFlexer/VIctory-NVIDIA-Reviewed@1644eaeda7/docs/keyboard-hud-validation.json

The archive-read mechanism builds on #937 by abilliontokens, with helpers originally credited to anoyarou's Marvisak/VIctory #3399. Gameplay MnK support comes from upstream/ItsMK1. The fork's existing renderer corrections remain credited to their original contributors.

Suggested upstream path: review the input safeguards separately, coordinate keyboard prompts with #937 and the request in #371, and introduce the HUD behind an experimental toggle until gameplay coverage is established. Keep texture retention as its own measured experiment.

**@⁠ItsYungFlexer** on GitHub · 2026-11-28 18:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1365) The recent mouse/keyboard additions make the game much more usable on PC, but keyboard users still have to translate Xbox prompts into their custom bindings. An interaction labelled LB might actually require Tab. I've put together an AI-assisted source candidate addressing that gap, alongside several focused input safeguards. I'd like to propose reviewing these as separate upstream changes rather than importing my entire CHECK-based fork. ## Native keyboard/mouse HUD prompts The candidate replaces nine common prompt sprites in the game's existing UI using the primary binding from the same parser used for gameplay input. Examples with my current profile: - A → Shift arrow - B → R - X → Spacebar symbol - Y → F - LB → Tab - LT → Mouse2 - RB → Q - RT → Mouse1 - View → V These follow the actual binding profile rather than assuming everyone uses the defaults. A separate custom profile was also rebuilt and verified. F1 adds a KEYBOARD HUD PROMPTS toggle. Bindings refresh after restarting; alternate bindings still work, but the primary binding is displayed. ### Why consider it for main? - Prompts tell keyboard users what to press. - Custom bindings and displayed prompts share the same input parser. - Game archives remain unchanged on disk. - No additional external dependencies or downloaded artwork are required. - No separate overlay or additional per-frame input polling is introduced. - Failed preparation or source verification leaves the original prompts intact. The hook verifies the archive length and exact original bytes before substitution. Rebuilding preserves the entry's compressed and decoded lengths, shape IDs, and non-shape UI content, including scripts, symbols and placements. Shared background art is preserved. ## Small input safeguards These should be independently reviewable: - Cancel active rebinding when foreground focus is lost, before polling further keys. - Update the displayed in-memory binding only after its file write succeeds. - Create the initial default profile exclusively, preserving an existing custom profile. The focus change specifically concerns rebind capture; upstream already filters ordinary menu hotkeys by foreground ownership. ## Separate texture-retention experiment The fork also adapts the idea in #280. Disabling retention globally produced extensive black flicker on my system. The adaptation checks only same-description textures at moved addresses. It compares bounded first/middle/last samples using fixed stack buffers and checked arithmetic. A detected mismatch rejects the stale image; unreadable data preserves normal retention. This remains a heuristic. Equal samples do not prove complete texture identity or GPU coherence. I am not claiming a confirmed fix for every green car or corrupted face, or zero performance cost. This should remain a separate opt-in experiment pending gameplay measurements. ## Validation - 177 targeted tests passed, zero failed; two hardware/benchmark cases ignored. - Includes substitution-before-decompression tests across all four supported DirectStorage I/O modes. - Native prompt rebuilding verified at exactly 9,644 stored bytes and 28,148 decoded bytes. - Current and modified binding profiles verified. - Archive SHA-256 unchanged before and after preparation. - Asset policy passed for 305 repository files. - Cargo manifests, Cargo.lock and toolchain pins unchanged for these candidates. Actual in-game placement, readability, coverage, frame times and long-session stability remain unverified. This first attempt does not replace the full controller diagram or stick/D-pad/Menu icons. Source review is not antivirus clearance. ## Source and credits HUD implementation: https://github.com/ItsYungFlexer/VIctory-NVIDIA-Reviewed/commit/1644eaeda763cf922606589f6b48c9882097c5a4 HUD design, audit and limitations: https://github.com/ItsYungFlexer/VIctory-NVIDIA-Reviewed/blob/1644eaeda763cf922606589f6b48c9882097c5a4/docs/keyboard-hud-candidate.md Validation: https://github.com/ItsYungFlexer/VIctory-NVIDIA-Reviewed/blob/1644eaeda763cf922606589f6b48c9882097c5a4/docs/keyboard-hud-validation.json The archive-read mechanism builds on #937 by abilliontokens, with helpers originally credited to anoyarou's Marvisak/VIctory #3399. Gameplay MnK support comes from upstream/ItsMK1. The fork's existing renderer corrections remain credited to their original contributors. Suggested upstream path: review the input safeguards separately, coordinate keyboard prompts with #937 and the request in #371, and introduce the HUD behind an experimental toggle until gameplay coverage is established. Keep texture retention as its own measured experiment.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 18:08:04 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-28 18:04 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-28 18:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1365#issuecomment-7243515377) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠ItsYungFlexer on GitHub · 2026-11-28 18:15 UTC · original

image image
**@⁠ItsYungFlexer** on GitHub · 2026-11-28 18:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1365#issuecomment-7243647082) <img width="2559" height="1439" alt="image" src="https://github.com/user-attachments/assets/5ea4669d-40c2-4dbe-a420-8df8d0bb3388" /> <img width="2559" height="1439" alt="image" src="https://github.com/user-attachments/assets/5e950350-68a0-4f1b-9af2-f4a5ffee5525" />
Author
Owner

@⁠hussainmussa on GitHub · 2026-11-29 08:47 UTC · original

/claim (the three small input safeguards only, not the HUD prompts, which #1610 covers)

I'd like to send these as three small changes against main, each with tests: rebinding cancelled when the window loses focus, the binding shown only after its file write succeeds, and the default profile created exclusively so an existing one is kept.

@⁠ItsYungFlexer, if you would rather send them from your fork yourself, say so and I'll step back.

Written with help from Claude.

**@⁠hussainmussa** on GitHub · 2026-11-29 08:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1365#issuecomment-7253332172) /claim (the three small input safeguards only, not the HUD prompts, which #1610 covers) I'd like to send these as three small changes against main, each with tests: rebinding cancelled when the window loses focus, the binding shown only after its file write succeeds, and the default profile created exclusively so an existing one is kept. @⁠ItsYungFlexer, if you would rather send them from your fork yourself, say so and I'll step back. Written with help from Claude.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:44 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1365#issuecomment-7283504860) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
This discussion has been locked. Commenting is limited to contributors.
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#1365
No description provided.