fix(play): fetch the D3D12 runtime on Windows 10 when no device is made #210

Manually merged
github merged 1 commit from github-bot/gh-210 into main 2026-11-29 08:21:30 +00:00 AGit
Owner

@⁠Cuon7 on GitHub · 2026-11-27 19:48 UTC · original
Cuon7:fix/d3d12-fetch-when-no-device → main · +38 −7 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC

Changes

On Windows 10 22H2, victory.exe exports D3D12SDKVersion = 614 (#10862a6). Without D3D12\D3D12Core.dll beside it, no Direct3D 12 device is made at all, so victory shader-model prints none rather than 6.5. That left two gaps:

  • victory play: check_shader_model() took no answer as fine, so it never offered the runtime on Windows 10, and the game started and failed.
  • play-foxhound.ps1, and with it play-nvidia.ps1 and PLAY_FRAMEGEN.cmd, runs victory run directly and never checked the shader model.

The changes:

  • check_shader_model(): no answer and no D3D12Core.dll also offers the download, with the same prompt and message. If there is still no answer afterwards, the start goes on as it did before, so nothing that started before is blocked.
  • play-foxhound.ps1: only while D3D12\D3D12Core.dll is missing beside victory.exe, it asks victory shader-model. Below 6.6 or none, it runs victory get-d3d12, the same hash- and signature-checked fetch. At 6.6 or above nothing is fetched, so Windows 11 is unchanged apart from that one check. It stops only when the answer was a definite shader model below 6.6 and the fetch failed.
  • README: one line saying the script launchers do this too.

Validation

Windows 10 22H2 (19045), RTX 5070 Ti, release build of 0cef07e plus this change:

  • Without target\release\D3D12, victory shader-model prints none. After victory get-d3d12, it prints runtime ...\D3D12\D3D12Core.dll and 6.8.
  • I ran the new play-foxhound.ps1 block from another working folder. With no D3D12 folder, it reported "none (no device)", fetched 1.614.1 and reached the game start. With the folder present, it skipped the check (9 ms).
  • cargo build --release --locked -p victory succeeds, and cargo clippy reports nothing on the changed lines.

Not covered: Windows 11, victory play end to end, and a play session.

AI-assisted change.

**@⁠Cuon7** on GitHub · 2026-11-27 19:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/210) `Cuon7:fix/d3d12-fetch-when-no-device` → `main` · +38 −7 · 3 files · 1 commits · merged 2026-11-29 08:16 UTC ## Changes On Windows 10 22H2, `victory.exe` exports `D3D12SDKVersion` = 614 (#10862a6). Without `D3D12\D3D12Core.dll` beside it, no Direct3D 12 device is made at all, so `victory shader-model` prints `none` rather than `6.5`. That left two gaps: - `victory play`: `check_shader_model()` took no answer as fine, so it never offered the runtime on Windows 10, and the game started and failed. - `play-foxhound.ps1`, and with it `play-nvidia.ps1` and `PLAY_FRAMEGEN.cmd`, runs `victory run` directly and never checked the shader model. The changes: - **`check_shader_model()`**: no answer and no `D3D12Core.dll` also offers the download, with the same prompt and message. If there is still no answer afterwards, the start goes on as it did before, so nothing that started before is blocked. - **`play-foxhound.ps1`**: only while `D3D12\D3D12Core.dll` is missing beside `victory.exe`, it asks `victory shader-model`. Below 6.6 or `none`, it runs `victory get-d3d12`, the same hash- and signature-checked fetch. At 6.6 or above nothing is fetched, so Windows 11 is unchanged apart from that one check. It stops only when the answer was a definite shader model below 6.6 and the fetch failed. - **README**: one line saying the script launchers do this too. ## Validation Windows 10 22H2 (19045), RTX 5070 Ti, release build of `0cef07e` plus this change: - Without `target\release\D3D12`, `victory shader-model` prints `none`. After `victory get-d3d12`, it prints `runtime ...\D3D12\D3D12Core.dll` and `6.8`. - I ran the new `play-foxhound.ps1` block from another working folder. With no `D3D12` folder, it reported "none (no device)", fetched 1.614.1 and reached the game start. With the folder present, it skipped the check (9 ms). - `cargo build --release --locked -p victory` succeeds, and `cargo clippy` reports nothing on the changed lines. Not covered: Windows 11, `victory play` end to end, and a play session. AI-assisted change.
victory.exe exports D3D12SDKVersion 614. On Windows 10 22H2 without
D3D12\D3D12Core.dll beside it, no D3D12 device is made at all, so
`victory shader-model` answers "none" rather than 6.5.
check_shader_model() took no answer as fine, so `victory play` never
offered the runtime there, and the script launchers (play-foxhound.ps1,
play-nvidia.ps1, PLAY_FRAMEGEN.cmd) never checked.

- check_shader_model(): no answer and no D3D12Core.dll also offers the
  download. With still no answer afterwards the start goes on as before.
- play-foxhound.ps1: while D3D12\D3D12Core.dll is missing, ask
  `victory shader-model`; below 6.6 or "none", run `victory get-d3d12`.
  Nothing is fetched at 6.6 or above (Windows 11).
- README: the script launchers do this too.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:52:59 +00:00
github manually merged commit b1a374f5eb into main 2026-11-29 08:21:30 +00:00
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!210
No description provided.