Launch fixes: VILauncher Agility hash, FSR 3 frame gen needs DLSS, Windows 10 runtime; ask for logs

get-d3d12.ps1 listed the nupkg's SHA-256 before D3D12Core.dll's. VILauncher
takes the first hash after a line naming D3D12Core.dll as the DLL's, so
"Fix and verify" looked for a DLL with the package's hash and refused every
Agility package. The DLL's hash now comes first.

FSR 3 frame generation with DLSS upscaling off leaves the title on its own
FidelityFX upscaler and it breaks at victory-image+0x2219650 5-11 s in, on
either console (issues #272, #308, #331). FSR 3 frame generation now needs
DLSS upscaling; the F1 notice says so and why it is off.

With v2026.11.27.6 Windows 10 got a device, but its own Direct3D 12 refuses
the root signatures the translated shaders need (descriptor heaps indexed
directly), and the title closed a second after its first frame (issue
#290: Windows 10 21H2 LTSC, RTX 4060, shader model 6.8 from System32's
runtime). check_shader_model offered the Agility SDK only below 6.6. On
Windows 10 (build below 22000, from RtlGetVersion; VICTORY_WINDOWS_BUILD
stands in for it) without a D3D12 folder, it is now offered whatever the
shader model; declined or failed, the game still starts, with a warning.

needs-logs.yml asks for the play log and crash log on a new issue that has
no attached file and no pasted log lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
trustno1-coderandClaude Opus 5.5 committed 2026-11-27 13:31:15 -08:00
1 parent 0f0ada1909
commit df2daafeb1
6 files changed
+110 -38

No files matched your search

+26
View File
@@ -111,6 +111,32 @@ fn os_runtime() -> u32 {
.map_or(4, |v| v.min(614))
}
/// Windows' build number (19045 is Windows 10 22H2, 22000 and up Windows
/// 11), from `RtlGetVersion`, which no compatibility shim changes.
/// `VICTORY_WINDOWS_BUILD` stands in for it (to try Windows 10's path).
#[cfg(windows)]
pub(crate) fn windows_build() -> Option<u32> {
if let Some(build) = std::env::var("VICTORY_WINDOWS_BUILD").ok().and_then(|v| v.trim().parse().ok()) {
return Some(build);
}
#[repr(C)]
struct OsVersionInfo {
size: u32,
major: u32,
minor: u32,
build: u32,
platform: u32,
service_pack: [u16; 128],
}
#[link(name = "ntdll")]
unsafe extern "system" {
fn RtlGetVersion(info: *mut OsVersionInfo) -> i32;
}
let mut info = OsVersionInfo { size: size_of::<OsVersionInfo>() as u32, major: 0, minor: 0, build: 0, platform: 0, service_pack: [0; 128] };
// SAFETY: `info` is an OSVERSIONINFOW with its size set, as RtlGetVersion takes.
(unsafe { RtlGetVersion(&mut info) } == 0).then_some(info.build)
}
/// Asks Windows for the Agility SDK version of the `D3D12\D3D12Core.dll`
/// beside this program, or for its own runtime where there is none. First
/// thing in `main`, and again after `victory play` fetched the file: Windows
+26 -6
View File
@@ -660,18 +660,33 @@ pub(crate) fn get_d3d12() -> Result<()> {
/// Microsoft's newer runtime is fetched beside this program, after asking.
/// Below 6.6 every pipeline is refused and the title closes within seconds,
/// so a start that still cannot run it stops here, saying why.
///
/// On Windows 10 the runtime is fetched even where its own reports 6.6 or
/// more (an up-to-date driver says 6.8): Windows 10's own Direct3D 12
/// refuses the root signatures the translated shaders need (descriptor
/// heaps indexed directly), and the title closed a second after its first
/// frame (2026-11-27, Windows 10 21H2 LTSC with an RTX 4060, issue #290;
/// #123 and discussion #186 found the same refusal).
fn check_shader_model() -> Result<()> {
let needed = victory_hle::streamline::SHADER_MODEL_NEEDED;
let Some(found) = shader_model() else { return Ok(()) };
if found >= needed {
return Ok(());
}
let to = d3d12_dir()?;
let had = to.join("D3D12Core.dll").is_file();
let windows_10 = !had && crate::windows_build().is_some_and(|build| build < 22000);
if found >= needed && !windows_10 {
return Ok(());
}
if !had {
println!("This PC's Direct3D 12 runs shader model {}.{}, and the game's translated shaders need 6.6.", found.0, found.1);
println!("Windows 10's own Direct3D 12 stops at 6.5; Microsoft's newer runtime (the D3D12 Agility SDK)");
println!("runs 6.6. It is Microsoft's own, under Microsoft's licence, from nuget.org (about 22 MB, once),");
if found < needed {
println!("This PC's Direct3D 12 runs shader model {}.{}, and the game's translated shaders need 6.6.", found.0, found.1);
println!("Windows 10's own Direct3D 12 stops at 6.5; Microsoft's newer runtime (the D3D12 Agility SDK)");
println!("runs 6.6.");
} else {
println!("This is Windows 10: its own Direct3D 12 refuses root signatures the game's translated shaders");
println!("need, and the game would close at the start. Microsoft's newer runtime (the D3D12 Agility SDK)");
println!("takes them.");
}
println!("It is Microsoft's own, under Microsoft's licence, from nuget.org (about 22 MB, once),");
println!("and goes into {}.", to.display());
let yes = if std::io::stdin().is_terminal() {
print!("Download it now? [Y/n] ");
@@ -702,6 +717,11 @@ fn check_shader_model() -> Result<()> {
}
}
}
if found >= needed {
println!("Starting with Windows 10's own Direct3D 12: the game may close at the start.");
println!("`victory get-d3d12` fetches Microsoft's newer runtime later.");
return Ok(());
}
let now = shader_model().unwrap_or(found);
anyhow::bail!(
"this PC's Direct3D 12 runs shader model {}.{}, and the game needs 6.6: every shader would be \