Prompts: a switch to keep the gamepad button pictures #2126

Closed
opened 2026-11-29 09:50:20 +00:00 by github-bot · 4 comments
Owner

@⁠ljy2231 on GitHub · 2026-11-29 09:45 UTC · original

Summary

The prompt icons are inverted with respect to the control mode: a keyboard
player gets the title's gamepad pictures, and a gamepad player gets keyboard key
caps.

  • VICTORY_CONTROLS=keyboard + VICTORY_MNK=1 -> no prompts lines in the
    log, the icon movie is left alone and keeps its gamepad pictures, but the
    pad does not drive the game (only mouse and keyboard do).
  • VICTORY_CONTROLS=gamepad (or unset, i.e. AUTO) -> prompts: key caps drawn into the icon movie runs, the icons become keyboard caps, and the pad does
    drive the game.

So the redraw happens exactly when the pad is the live device, and is skipped
when the keyboard is. That is backwards in both directions.

Evidence

Same build v2026.11.29.01; three runs, only VICTORY_CONTROLS / VICTORY_MNK
differing:

log CONTROLS MNK key caps lines icons shown pad works
...-094041-22640 gamepad unset 2 keyboard yes
...-100606-10316 keyboard 1 0 gamepad no
...-101516-17588 unset (AUTO) unset 2 keyboard yes

The two lines, when they appear:

prompts: key caps drawn into the icon movie bytes=23258
prompts: the title loads the icon movie with key caps

When they do not appear, the log has no prompts line at all, so the icon movie
keeps the title's own pictures.

Expected

The redraw should follow the device actually in use, or be forcible:

  • gamepad / dualsense: skip the redraw, keep the title's own pad pictures
  • keyboard: draw the key caps

Optionally a separate switch (VICTORY_PROMPTS=gamepad|keyboard) so it does not
have to be bound to the input mode at all.

Why it matters

On a controller-only setup the controls page and the HUD show Tab / Q / Z / F / C / WASD / I J K L for what on the pad are View / LB / LT / L3 / RT / left stick
/ right stick. A player who never touched the keyboard cannot read the on-screen
help. The reverse case is equally wrong: a keyboard player sees pad glyphs.

Environment

  • VIctory-NVIDIA v2026.11.29.01 (victory.exe 15.05 MB)
  • Windows 10 Pro 22H2, build 19045
  • NVIDIA GeForce RTX 5060 Laptop GPU, 8 GB VRAM, driver 621.40
  • Pad: XInput slot 0, USB\VID_413D&PID_2104 (Xbox 360 compatible)
  • Settings in all three runs: VICTORY_MENU_CONSOLE=series-s,
    VICTORY_MENU_S_RES=540, VICTORY_MENU_FRAMEGEN=2,
    VICTORY_MOUSE_CAPTURE=1

Code pointer

crates/victory-game/src/prompts.rs documents itself as

Keyboard key caps in place of the title's gamepad button pictures.

and

Prompts do not follow rebinding or a device change

which matches what is observed — but the mode that triggers the redraw looks like
the pad one rather than the keyboard one.

**@⁠ljy2231** on GitHub · 2026-11-29 09:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2126) ### Summary The prompt icons are **inverted** with respect to the control mode: a keyboard player gets the title's gamepad pictures, and a gamepad player gets keyboard key caps. - `VICTORY_CONTROLS=keyboard` + `VICTORY_MNK=1` -> **no `prompts` lines** in the log, the icon movie is left alone and keeps its **gamepad** pictures, but the pad does not drive the game (only mouse and keyboard do). - `VICTORY_CONTROLS=gamepad` (or unset, i.e. `AUTO`) -> `prompts: key caps drawn into the icon movie` runs, the icons become **keyboard** caps, and the pad does drive the game. So the redraw happens exactly when the pad is the live device, and is skipped when the keyboard is. That is backwards in both directions. ### Evidence Same build `v2026.11.29.01`; three runs, only `VICTORY_CONTROLS` / `VICTORY_MNK` differing: | log | CONTROLS | MNK | `key caps` lines | icons shown | pad works | |---|---|---|---|---|---| | `...-094041-22640` | gamepad | unset | 2 | keyboard | yes | | `...-100606-10316` | keyboard | 1 | 0 | gamepad | no | | `...-101516-17588` | unset (AUTO) | unset | 2 | keyboard | yes | The two lines, when they appear: ``` prompts: key caps drawn into the icon movie bytes=23258 prompts: the title loads the icon movie with key caps ``` When they do not appear, the log has no `prompts` line at all, so the icon movie keeps the title's own pictures. ### Expected The redraw should follow the device actually in use, or be forcible: - `gamepad` / `dualsense`: skip the redraw, keep the title's own pad pictures - `keyboard`: draw the key caps Optionally a separate switch (`VICTORY_PROMPTS=gamepad|keyboard`) so it does not have to be bound to the input mode at all. ### Why it matters On a controller-only setup the controls page and the HUD show `Tab / Q / Z / F / C / WASD / I J K L` for what on the pad are View / LB / LT / L3 / RT / left stick / right stick. A player who never touched the keyboard cannot read the on-screen help. The reverse case is equally wrong: a keyboard player sees pad glyphs. ### Environment - VIctory-NVIDIA **v2026.11.29.01** (`victory.exe` 15.05 MB) - Windows 10 Pro 22H2, build 19045 - NVIDIA GeForce RTX 5060 Laptop GPU, 8 GB VRAM, driver 621.40 - Pad: XInput slot 0, `USB\VID_413D&PID_2104` (Xbox 360 compatible) - Settings in all three runs: `VICTORY_MENU_CONSOLE=series-s`, `VICTORY_MENU_S_RES=540`, `VICTORY_MENU_FRAMEGEN=2`, `VICTORY_MOUSE_CAPTURE=1` ### Code pointer `crates/victory-game/src/prompts.rs` documents itself as > Keyboard key caps in place of the title's gamepad button pictures. and > Prompts do not follow rebinding or a device change which matches what is observed — but the mode that triggers the redraw looks like the pad one rather than the keyboard one.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 09:50:23 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 09:46 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-29 09:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2126#issuecomment-7253982374) 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

@⁠ljy2231 on GitHub · 2026-11-29 10:11 UTC · original

Thanks. The play log from that run is 30 MB, so here are the lines that matter,
from victory-nvidia-play-20261129-094041-22640.log.

The start line of that run carries:

VICTORY_CONTROLS=gamepad
VICTORY_MNK=(unset)

and the prompts hook still redraws the icons anyway:

2026-11-29T09:40:47.760847Z  INFO victory_game::prompts::hook: prompts: key caps drawn into the icon movie bytes=23258
2026-11-29T09:40:48.088303Z  INFO victory_game::prompts::hook: prompts: the title loads the icon movie with key caps

No crash log was produced by that run (%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log
does not exist), so there is nothing to attach for that.

Hardware and OS:

  • GPU: NVIDIA GeForce RTX 5060 Laptop GPU, 8 GB VRAM, driver 621.40
  • OS: Windows 10 Pro 22H2, build 19045
  • Pad: XInput slot 0, USB\VID_413D&PID_2104 (Xbox 360 compatible)
  • Settings of that run: VICTORY_MENU_CONSOLE=series-s, VICTORY_MENU_S_RES=540,
    VICTORY_CONTROLS=gamepad, VICTORY_MENU_FRAMEGEN=2

If you need the full 30 MB log or a specific section of it, tell me which pattern
to extract and I will paste that part.

**@⁠ljy2231** on GitHub · 2026-11-29 10:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2126#issuecomment-7254272821) Thanks. The play log from that run is 30 MB, so here are the lines that matter, from `victory-nvidia-play-20261129-094041-22640.log`. The start line of that run carries: ``` VICTORY_CONTROLS=gamepad VICTORY_MNK=(unset) ``` and the prompts hook still redraws the icons anyway: ``` 2026-11-29T09:40:47.760847Z INFO victory_game::prompts::hook: prompts: key caps drawn into the icon movie bytes=23258 2026-11-29T09:40:48.088303Z INFO victory_game::prompts::hook: prompts: the title loads the icon movie with key caps ``` No crash log was produced by that run (`%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log` does not exist), so there is nothing to attach for that. Hardware and OS: - GPU: NVIDIA GeForce RTX 5060 Laptop GPU, 8 GB VRAM, driver 621.40 - OS: Windows 10 Pro 22H2, build 19045 - Pad: XInput slot 0, `USB\VID_413D&PID_2104` (Xbox 360 compatible) - Settings of that run: `VICTORY_MENU_CONSOLE=series-s`, `VICTORY_MENU_S_RES=540`, `VICTORY_CONTROLS=gamepad`, `VICTORY_MENU_FRAMEGEN=2` If you need the full 30 MB log or a specific section of it, tell me which pattern to extract and I will paste that part.
Author
Owner

@⁠ljy2231 on GitHub · 2026-11-29 10:14 UTC · original

One more finding, which points at the condition being the wrong way round rather
than just missing a switch.

Comparing two runs of the same build:

A. VICTORY_CONTROLS=gamepad, VICTORY_MNK unset

prompts: key caps drawn into the icon movie bytes=23258
prompts: the title loads the icon movie with key caps

-> the icons are keyboard caps, and the pad does drive the game.

B. VICTORY_CONTROLS=keyboard, VICTORY_MNK=1

No prompts lines in the log at all, so the icon movie keeps its own pictures:

-> the icons are the title's gamepad pictures, but the pad no longer drives
the game, only mouse and keyboard do.

So the redraw happens exactly when the pad is the active device, and is skipped
when the keyboard is. That is backwards from what a player sees:

  • in gamepad mode the player gets keyboard caps for buttons they are not
    pressing;
  • in keyboard mode the player gets pad pictures for keys they are not pressing.

Two separate things would fix it, and I would take either:

  1. skip the key-cap redraw when VICTORY_CONTROLS is gamepad / dualsense, so
    the title keeps its own pad pictures (the missing switch I asked for); or
  2. if the redraw is meant to be unconditional, then it is currently skipped in
    keyboard/MNK mode by accident and should also run there.

The first is what a controller-only player needs. Log lines above are from
victory-nvidia-play-20261129-094041-22640.log (A) and
victory-nvidia-play-20261129-100606-10316.log (B), both v2026.11.29.01.

**@⁠ljy2231** on GitHub · 2026-11-29 10:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2126#issuecomment-7254304340) One more finding, which points at the condition being the wrong way round rather than just missing a switch. Comparing two runs of the same build: **A. `VICTORY_CONTROLS=gamepad`, `VICTORY_MNK` unset** ``` prompts: key caps drawn into the icon movie bytes=23258 prompts: the title loads the icon movie with key caps ``` -> the icons are keyboard caps, and the pad *does* drive the game. **B. `VICTORY_CONTROLS=keyboard`, `VICTORY_MNK=1`** No `prompts` lines in the log at all, so the icon movie keeps its own pictures: -> the icons are the title's **gamepad** pictures, but the pad no longer drives the game, only mouse and keyboard do. So the redraw happens exactly when the pad is the active device, and is skipped when the keyboard is. That is backwards from what a player sees: - in `gamepad` mode the player gets keyboard caps for buttons they are not pressing; - in `keyboard` mode the player gets pad pictures for keys they are not pressing. Two separate things would fix it, and I would take either: 1. skip the key-cap redraw when `VICTORY_CONTROLS` is `gamepad` / `dualsense`, so the title keeps its own pad pictures (the missing switch I asked for); or 2. if the redraw is meant to be unconditional, then it is currently skipped in `keyboard`/`MNK` mode by accident and should also run there. The first is what a controller-only player needs. Log lines above are from `victory-nvidia-play-20261129-094041-22640.log` (A) and `victory-nvidia-play-20261129-100606-10316.log` (B), both v2026.11.29.01.
Author
Owner

@⁠ljy2231 on GitHub · 2026-11-29 10:18 UTC · original

Closing as a duplicate: #2105 and #2088 describe the same inversion, and #2134
fixes it (the prompt hook checks the effective input mode instead of the
presence of the bindings file).

One data point worth keeping for #2134, in case it is useful:

  • VICTORY_CONTROLS=keyboard + VICTORY_MNK=1 -> the log has no prompts
    line at all
    , so the icon movie is never redrawn and the title keeps its own
    gamepad pictures.
  • VICTORY_CONTROLS=gamepad (or unset / AUTO) -> the two key caps lines
    appear and the icons become keyboard caps.

So in this build the redraw runs exactly when the pad is the live device, which
is the inversion #2134 addresses.

**@⁠ljy2231** on GitHub · 2026-11-29 10:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2126#issuecomment-7254348725) Closing as a duplicate: #2105 and #2088 describe the same inversion, and #2134 fixes it (the prompt hook checks the effective input mode instead of the presence of the bindings file). One data point worth keeping for #2134, in case it is useful: - `VICTORY_CONTROLS=keyboard` + `VICTORY_MNK=1` -> the log has **no `prompts` line at all**, so the icon movie is never redrawn and the title keeps its own gamepad pictures. - `VICTORY_CONTROLS=gamepad` (or unset / `AUTO`) -> the two `key caps` lines appear and the icons become keyboard caps. So in this build the redraw runs exactly when the pad is the live device, which is the inversion #2134 addresses.
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#2126
No description provided.