Recover automatically from a missing D3D12 Agility SDK #277
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/277"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DaTweaks on 2026-11-27T20:38:55Z.
Problem
On Windows 11 23H2, Victory could still fail with
0x887E0003when
D3D12\D3D12Core.dllwas missing, even with the Windows runtimefallback on
main. The shader-model probe discarded the error code,so startup continued without attempting recovery.
Changes
0x887E0003from the shader-model probe. If the local DLLis missing, automatically download the matching SDK from Microsoft
NuGet into
D3D12besidevictory.exe.checksum and Microsoft signature.
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 victorypassed all 26 tests.directory with no local DLL. Victory downloaded the signed SDK beside
the executable, loaded it, and reported Shader Model 6.8.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by DaTweaks on 2026-11-27T20:49:19Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 1tsethan on 2026-11-27T23:01:14Z.
Independent Windows validation of PR #277.
Tested commit:
4ca930c8c649197ae710efc76914424b686e00b9.cargo test --locked -p victory play::tests -- --nocapture --test-threads=1Exit: 0.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T19:22:48Z.
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