From 03b51ee0f1d559734595d4173fa43dd4da27540a Mon Sep 17 00:00:00 2001 From: "Manley.B" Date: Sat, 28 Nov 2026 20:14:39 +1100 Subject: [PATCH] Get-D3D12.cmd: Microsoft's newer Direct3D 12 runtime for a build of your own, in one double-click (#861) On Windows 10, a build of your own started from the script launchers needs D3D12\D3D12Core.dll beside target\release\victory.exe, and only victory.exe play offers it. scripts\get-d3d12.ps1 fetches it, but started as .\get-d3d12.ps1 it is refused where Windows runs no scripts, its default ("running scripts is disabled on this system", #861). Get-D3D12.cmd runs it with -ExecutionPolicy Bypass, as Get-NVIDIA-DLSS.cmd and Get-AMD-FSR.cmd run theirs; the README names it beside them. --- Get-D3D12.cmd | 9 +++++++++ README.md | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Get-D3D12.cmd diff --git a/Get-D3D12.cmd b/Get-D3D12.cmd new file mode 100644 index 000000000..9a4ad5d26 --- /dev/null +++ b/Get-D3D12.cmd @@ -0,0 +1,9 @@ +@echo off +rem Downloads Microsoft's newer Direct3D 12 runtime (the D3D12 Agility SDK, D3D12Core.dll, about 22 MB) +rem from nuget.org and puts it where the layer looks for it (target\release\D3D12 in this folder). Only +rem Windows 10 needs it: its own Direct3D 12 stops at shader model 6.5, and the translated shaders are 6.6. +rem Run it once. It is Microsoft's, under Microsoft's licence, which is saved beside it; this repository +rem does not contain it. victory.exe get-d3d12 does the same beside the victory.exe it is run as. +powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\get-d3d12.ps1" %* +echo. +pause \ No newline at end of file diff --git a/README.md b/README.md index e6bd64b3b..f9b3ff0c3 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,8 @@ 6.6 the game shows a black screen and closes within seconds. So the first start there offers to fetch Microsoft's newer Direct3D 12 runtime (the D3D12 Agility SDK, `D3D12Core.dll`, about 22 MB from nuget.org). It goes into a `D3D12` - folder beside `victory.exe`. `victory.exe get-d3d12` does the same by hand. + folder beside `victory.exe`. `victory.exe get-d3d12` does the same by hand, and + `Get-D3D12.cmd` does it for a build of your own (into `target\release\D3D12`). The file is checked against Microsoft's signature and the tested SHA-256. Windows 11 keeps using its own runtime. A `D3D12` folder that is already there, for example from a repack or another guide (1.618, 1.620), is used @@ -311,6 +312,7 @@ git clone https://github.com/trustno1-coder/VIctory-NVIDIA cd VIctory-NVIDIA copy victory.example.toml victory.toml # then set game_dir to your dump's folder, outside this one .\Get-NVIDIA-DLSS.cmd # once: NVIDIA's DLSS and frame generation files, about 70 MB +.\Get-D3D12.cmd # once, Windows 10 only: Microsoft's newer Direct3D 12 runtime, about 22 MB scripts\play-nvidia.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' ```