Recover automatically from a missing D3D12 Agility SDK #277

Closed
github-bot wants to merge 6 commits from github-bot/gh-277 into main AGit
Owner

@⁠DaTweaks on GitHub · 2026-11-27 20:38 UTC · original
DaTweaks:d3d12-installer → main · +119 −59 · 5 files · 6 commits · closed without merging

Problem

On Windows 11 23H2, Victory could still fail with 0x887E0003
when D3D12\D3D12Core.dll was missing, even with the Windows runtime
fallback on main. The shader-model probe discarded the error code,
so startup continued without attempting recovery.

Changes

  • Preserve 0x887E0003 from the shader-model probe. If the local DLL
    is missing, automatically download the matching SDK from Microsoft
    NuGet into D3D12 beside victory.exe.
  • Explicitly load the PowerShell modules used to verify the SHA-256
    checksum and Microsoft signature.
  • Refresh the selected SDK version and rerun the shader-model check
    before launching the game. Keep the existing confirmation prompt
    when the runtime works but reports a shader model below 6.6.

Verification

  • cargo test --release --locked --offline -p victory passed all 26 tests.
  • On Windows 11 23H2, launched the merged build from a separate working
    directory with no local DLL. Victory downloaded the signed SDK beside
    the executable, loaded it, and reported Shader Model 6.8.
  • The smoke test stopped before game launch.
**@⁠DaTweaks** on GitHub · 2026-11-27 20:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/277) `DaTweaks:d3d12-installer` → `main` · +119 −59 · 5 files · 6 commits · closed without merging ## Problem On Windows 11 23H2, Victory could still fail with `0x887E0003` when `D3D12\D3D12Core.dll` was missing, even with the Windows runtime fallback on `main`. The shader-model probe discarded the error code, so startup continued without attempting recovery. ## Changes - Preserve `0x887E0003` from the shader-model probe. If the local DLL is missing, automatically download the matching SDK from Microsoft NuGet into `D3D12` beside `victory.exe`. - Explicitly load the PowerShell modules used to verify the SHA-256 checksum and Microsoft signature. - Refresh the selected SDK version and rerun the shader-model check before launching the game. Keep the existing confirmation prompt when the runtime works but reports a shader model below 6.6. ## Verification - `cargo test --release --locked --offline -p victory` passed all 26 tests. - On Windows 11 23H2, launched the merged build from a separate working directory with no local DLL. Victory downloaded the signed SDK beside the executable, loaded it, and reported Shader Model 6.8. - The smoke test stopped before game launch.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 20:42:50 +00:00
Author
Owner

@⁠DaTweaks on GitHub · 2026-11-27 20:49 UTC · original

Thanks for the fix in f3534e6. This PR keeps the Windows runtime fallback from that commit and adds recovery for cases where the fallback still fails.

On my Windows 11 23H2 system (build 22631.6199), the official v2026.11.27.5 executable returned none from victory.exe shader-model in a clean directory. In the same setup, the PR build surfaced 0x887E0003, automatically downloaded and verified the Microsoft SDK into D3D12 beside the executable, and reported Shader Model 6.8 on retry.

**@⁠DaTweaks** on GitHub · 2026-11-27 20:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/277#issuecomment-7227872894) Thanks for the fix in f3534e6. This PR keeps the Windows runtime fallback from that commit and adds recovery for cases where the fallback still fails. On my Windows 11 23H2 system (build 22631.6199), the official v2026.11.27.5 executable returned none from victory.exe shader-model in a clean directory. In the same setup, the PR build surfaced 0x887E0003, automatically downloaded and verified the Microsoft SDK into D3D12 beside the executable, and reported Shader Model 6.8 on retry.
Author
Owner

@⁠1tsethan on GitHub · 2026-11-27 23:01 UTC · original

Independent Windows validation of PR #277.

Tested commit: 4ca930c8c649197ae710efc76914424b686e00b9.

cargo test --locked -p victory play::tests -- --nocapture --test-threads=1

Exit: 0.

  • test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 14 filtered out; finished in 0.01s

Coverage here is launcher settings tests only, not missing/mismatched Agility DLL recovery. This branch also has a merge conflict against df2daaf; the tests ran its exact head without resolving that conflict.

Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.

**@⁠1tsethan** on GitHub · 2026-11-27 23:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/277#issuecomment-7229806260) Independent Windows validation of PR #277. Tested commit: `4ca930c8c649197ae710efc76914424b686e00b9`. `cargo test --locked -p victory play::tests -- --nocapture --test-threads=1` Exit: **0**. - test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 14 filtered out; finished in 0.01s Coverage here is launcher settings tests only, not missing/mismatched Agility DLL recovery. This branch also has a merge conflict against df2daaf; the tests ran its exact head without resolving that conflict. Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result. <!-- victory-native-validation-20261128 -->
github-bot closed this pull request 2026-11-28 19:24:58 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 19:22 UTC · original

Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.

**@⁠trustno1-coder** on GitHub · 2026-11-28 19:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/277#issuecomment-7244500032) Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.

Pull request closed

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!277
No description provided.