Show stock Victory keyboard prompts in game #1610

Merged
Maddoux merged 1 commit from upstream-pr/1610 into main 2026-11-29 08:16:55 +00:00
Maddoux commented 2026-11-28 22:22:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Maddoux on 2026-11-28T22:22:26Z.


Related to #1365. Supersedes #1549.

What it changes

  • Draws stock Victory keyboard keycaps in the game's existing prompt icons by default on Xbox Series 1.0.2.1. The replacement UI is generated in memory.
  • Shares the stock key definitions between the input handler and the prompt renderer. Mouse input and camera behavior stay as they are on main.
  • Custom binding profiles and animated hold icons retain the original artwork. VICTORY_PROMPTS=gamepad restores Xbox prompts for the stock profile.

The renderer is ported from imjustprism's upstream PR.

How it was tested

  • Windows 11, RTX 5080, Series X profile, 4K output, DLSS Performance and 2× DLSS Frame Generation. On a normal launch of the local prompt-only build, the title screen displayed the keyboard Enter keycap for Player in place of the Xbox A glyph.
  • Release tests passed on this PR branch for victory, victory-core, victory-formats, victory-game, victory-hle, and victory-loader.
  • The repository-wide asset check reported one existing failure. crates/victory-shader/src/emit/lower.rs is 667,523 bytes on both this branch and main, above the 655,360-byte limit.

Checked for overlap

  • Searched open pull requests and the triage issue #1138. Related work includes the custom-profile proposal #1365 and the input changes in #1356.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545148807 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1610). Originally posted by [Maddoux](https://github.com/Maddoux) on 2026-11-28T22:22:26Z. --- Related to #1365. Supersedes #1549. ## What it changes - Draws stock Victory keyboard keycaps in the game's existing prompt icons by default on Xbox Series 1.0.2.1. The replacement UI is generated in memory. - Shares the stock key definitions between the input handler and the prompt renderer. Mouse input and camera behavior stay as they are on main. - Custom binding profiles and animated hold icons retain the original artwork. `VICTORY_PROMPTS=gamepad` restores Xbox prompts for the stock profile. The renderer is ported from [imjustprism's upstream PR](https://github.com/Marvisak/VIctory/pull/3433). ## How it was tested - Windows 11, RTX 5080, Series X profile, 4K output, DLSS Performance and 2× DLSS Frame Generation. On a normal launch of the local prompt-only build, the title screen displayed the keyboard Enter keycap for Player in place of the Xbox A glyph. - Release tests passed on this PR branch for `victory`, `victory-core`, `victory-formats`, `victory-game`, `victory-hle`, and `victory-loader`. - The repository-wide asset check reported one existing failure. `crates/victory-shader/src/emit/lower.rs` is 667,523 bytes on both this branch and main, above the 655,360-byte limit. ## Checked for overlap - [x] Searched open pull requests and the triage issue #1138. Related work includes the custom-profile proposal #1365 and the input changes in #1356.
amazedturnip commented 2026-11-29 05:38:38 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by amazedturnip on 2026-11-29T05:38:38Z.


Live-tested on Xbox Series 1.0.2.1 (9800X3D + RTX 5070 Ti 16 GB, 21m+ session) alongside #1570. Hook installed and redrew the icon movie cleanly (23,258 bytes) with zero UI issues. Note for anyone pairing with #1570: if VICTORY_MNK=1 is still in settings, VICTORY_MNK_BINDINGS disables prompts unless guarded on VICTORY_NATIVE_MOUSE=0.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7251374718 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1610#issuecomment-7251374718). Originally posted by [amazedturnip](https://github.com/amazedturnip) on 2026-11-29T05:38:38Z. --- Live-tested on Xbox Series 1.0.2.1 (9800X3D + RTX 5070 Ti 16 GB, 21m+ session) alongside #1570. Hook installed and redrew the icon movie cleanly (23,258 bytes) with zero UI issues. Note for anyone pairing with #1570: if VICTORY_MNK=1 is still in settings, VICTORY_MNK_BINDINGS disables prompts unless guarded on VICTORY_NATIVE_MOUSE=0.
JoeY54 commented 2026-11-29 06:18:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by JoeY54 on 2026-11-29T06:18:45Z.


Hands-on report on this PR (head fea7bb3), RTX 5090.

I used this PR's GFX parser, key-cap renderer and hook, with two changes:

the hook's places, the UI string and request layouts, the icon cell size and the icon table are read from a local data file instead of the source;
each icon shows the key the player's own key layout binds to its control, rather than the stock bindings. Space, Shift, Ctrl, Alt, digits and the mouse buttons got short labels.

In game the hook was placed and the title loaded the redrawn icon movie. Prompts showed keyboard keys in photo mode, the map legend and other menus, and stayed readable.

Limits as in the PR: the movie is redrawn when it is loaded, so a rebinding shows after a restart; hold animations keep their pictures; one icon is shared by menus and gameplay, so a control bound to several keys shows one of them.

Same question as on #1570: would the data-file split be of use upstream?

Generated by Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7251778047 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1610#issuecomment-7251778047). Originally posted by [JoeY54](https://github.com/JoeY54) on 2026-11-29T06:18:45Z. --- Hands-on report on this PR (head fea7bb3), RTX 5090. I used this PR's GFX parser, key-cap renderer and hook, with two changes: the hook's places, the UI string and request layouts, the icon cell size and the icon table are read from a local data file instead of the source; each icon shows the key the player's own key layout binds to its control, rather than the stock bindings. Space, Shift, Ctrl, Alt, digits and the mouse buttons got short labels. In game the hook was placed and the title loaded the redrawn icon movie. Prompts showed keyboard keys in photo mode, the map legend and other menus, and stayed readable. Limits as in the PR: the movie is redrawn when it is loaded, so a rebinding shows after a restart; hold animations keep their pictures; one icon is shared by menus and gameplay, so a control bound to several keys shows one of them. Same question as on #1570: would the data-file split be of use upstream? Generated by [Claude Code](https://claude.ai/code)
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!1610
No description provided.