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

+32
View File
@@ -0,0 +1,32 @@
# Asks for the logs when a new issue has none: no attached file and no pasted log lines.
name: needs-logs
on:
issues:
types: [opened]
permissions:
issues: write
jobs:
ask:
if: github.event.issue.user.login != github.repository_owner
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
env:
REPLY: |
Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there.
1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`.
2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`.
Also say which GPU, Windows version (10 or 11)
with:
script: |
const body = context.payload.issue.body || '';
// An attached file (GitHub's upload links) or pasted log lines count as logs.
const attached = /https:\/\/github\.com\/(user-attachments\/files|[^\/\s]+\/[^\/\s]+\/files)\//.test(body);
const pasted = /victory_gpu::|victory_hle::|unhandled exception|crashes\.log:|\b(INFO|WARN|ERROR)\s+victory|\.(dll|exe)\+0x[0-9a-f]+|\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d/i.test(body);
if (attached || pasted) return;
await github.rest.issues.createComment({
owner: context.repo.owner, repo: context.repo.repo,
issue_number: context.issue.number, body: process.env.REPLY,
});
+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 \
+15 -22
View File
@@ -346,25 +346,27 @@ pub fn init(asked: &Asked) -> Available {
} else {
Some(NoDlss::Card)
};
// FSR 3 frame generation needs the title's upscaling to run: on Series X that is DLSS's
// (the title's own FidelityFX takes the Series S sizes only, and the title fails without it).
let fsr_needs_series_s = asked.fsr_framegen && !asked.series_s && !available.dlss;
if fsr_needs_series_s {
// FSR 3 frame generation needs DLSS for the upscaling, on either console. On Series X the
// title's own FidelityFX takes the Series S sizes only and the title fails without DLSS; on
// Series S, with its own FidelityFX upscaler running beside our frame generation, the title
// stopped on a check (0x80000003 at +0x2219650) seconds into the start (2026-11-27: muted
// runs here, issues #272, #308 and #331; with DLSS on, both consoles ran).
let fsr_needs_dlss = asked.fsr_framegen && !available.dlss;
if fsr_needs_dlss {
tracing::warn!(
"FSR 3 frame generation stays off: on Series X it needs DLSS for the upscaling, which this card or these files do not give; the Series S profile runs it"
"FSR 3 frame generation stays off: it needs DLSS for the upscaling, which is off, or this card or these files do not give; without it the title stops at the start"
);
}
let fsr_framegen = asked.fsr_framegen && !fsr_needs_series_s && fsr::init(&asked.fidelityfx_dir);
let fsr_framegen = asked.fsr_framegen && !fsr_needs_dlss && fsr::init(&asked.fidelityfx_dir);
let _ = FACTS.set(Facts {
adapter: default_adapter().map(|a| a.0).unwrap_or_default(),
series_s: asked.series_s,
no_dlss,
files_missing,
dlss_fg_asked: asked.framegen,
dlss_fg_supported: available.framegen,
fsr_asked: asked.fsr_framegen,
fsr_loaded: fsr_framegen,
fsr_needs_series_s,
fsr_needs_dlss,
});
Available { fsr_framegen, ..available }
}
@@ -372,7 +374,6 @@ pub fn init(asked: &Asked) -> Available {
/// What the start found out about frame generation on this card ([`notice`]).
struct Facts {
adapter: String,
series_s: bool,
/// Why DLSS upscaling is not running (`None`: it runs).
no_dlss: Option<NoDlss>,
/// Streamline's files did not load (nothing is known of the card).
@@ -381,7 +382,8 @@ struct Facts {
dlss_fg_supported: bool,
fsr_asked: bool,
fsr_loaded: bool,
fsr_needs_series_s: bool,
/// FSR 3 frame generation was asked and stays off: DLSS upscaling is not running.
fsr_needs_dlss: bool,
}
/// Why DLSS upscaling is not running: the notice must not blame a card that
@@ -448,23 +450,14 @@ fn notice_of(f: &Facts, dlss_live: bool, fsr_live: bool) -> Vec<String> {
} else {
"FRAME GEN: AMD FSR 3 (CHOSEN IN F1), 2X AT MOST".into()
});
if !f.series_s {
lines.push("SERIES X WITH FSR 3 NEEDS DLSS UPSCALING (ON)".into());
} else if f.no_dlss.is_some() {
lines.push("SERIES S MODE: FSR 3 RUNS WITHOUT DLSS".into());
}
} else if f.fsr_needs_series_s {
lines.push("FRAME GEN OFF: FSR 3 ON SERIES X NEEDS DLSS ON".into());
lines.push("FSR 3 FRAME GEN NEEDS DLSS UPSCALING (ON)".into());
} else if f.fsr_needs_dlss {
lines.push("FRAME GEN OFF: FSR 3 NEEDS DLSS UPSCALING ON".into());
lines.push(match f.no_dlss {
Some(NoDlss::FilesMissing) => "NVIDIA DLSS FILES NOT FOUND (VICTORY_STREAMLINE_DIR)",
Some(NoDlss::Card) => "THIS CARD HAS NO DLSS UPSCALING",
_ => "DLSS UPSCALING IS OFF: TURN IT ON IN F1 > DLSS",
}.into());
lines.push(if f.no_dlss == Some(NoDlss::Card) {
"USE F1 > CONSOLE > SERIES S (THE GAME RESTARTS)"
} else {
"OR F1 > CONSOLE > SERIES S (THE GAME RESTARTS)"
}.into());
} else if f.fsr_asked && !f.fsr_loaded {
lines.push("FRAME GEN OFF: AMD FSR 3 FILES NOT FOUND".into());
lines.push("(AMD FIDELITYFX DLLS, VICTORY_FIDELITYFX_DIR)".into());
+7 -8
View File
@@ -876,17 +876,16 @@ mod tests {
assert_eq!(size_of::<PrepareV2>(), 232);
}
fn facts(dlss: bool, dlss_fg_supported: bool, fsr_loaded: bool, series_s: bool) -> super::super::Facts {
fn facts(dlss: bool, dlss_fg_supported: bool, fsr_loaded: bool, _series_s: bool) -> super::super::Facts {
super::super::Facts {
adapter: "NVIDIA GeForce RTX 3080".into(),
series_s,
no_dlss: if dlss { None } else { Some(super::super::NoDlss::Card) },
files_missing: false,
dlss_fg_asked: true,
dlss_fg_supported,
fsr_asked: true,
fsr_loaded,
fsr_needs_series_s: !series_s && !dlss,
fsr_needs_dlss: !dlss,
}
}
@@ -916,9 +915,11 @@ mod tests {
// RTX 20/30 on Series X with DLSS: FSR 3 instead, 2X.
let rtx30 = lines(facts(true, false, true, false), false, true);
assert!(rtx30.contains("NOT ON THIS CARD") && rtx30.contains("FSR 3") && rtx30.contains("2X"));
// No DLSS at all, Series X: FSR 3 needs Series S.
let amd_x = lines(facts(false, false, false, false), false, false);
assert!(amd_x.contains("HAS NO DLSS") && amd_x.contains("SERIES S"), "{amd_x}");
// No DLSS at all, either console: FSR 3 stays off, as the title stops without DLSS.
for series_s in [false, true] {
let amd = lines(facts(false, false, false, series_s), false, false);
assert!(amd.contains("HAS NO DLSS") && amd.contains("NEEDS DLSS"), "{amd}");
}
// A card with DLSS, only turned off: say so, not "this card".
let mut off = facts(false, true, false, false);
off.no_dlss = Some(super::super::NoDlss::TurnedOff);
@@ -929,8 +930,6 @@ mod tests {
missing.files_missing = true;
let missing = lines(missing, false, false);
assert!(missing.contains("FILES NOT FOUND") && !missing.contains("THIS CARD"), "{missing}");
// No DLSS, Series S: FSR 3 runs.
assert!(lines(facts(false, false, true, true), false, true).contains("RUNS WITHOUT DLSS"));
// Nothing asked: nothing said.
let mut quiet = facts(true, true, true, false);
(quiet.dlss_fg_asked, quiet.fsr_asked) = (false, false);
+4 -2
View File
@@ -14,9 +14,11 @@ $ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
$dir = if ($To) { $To } else { Join-Path (Resolve-Path (Join-Path $PSScriptRoot '..')).Path 'target\release\D3D12' }
# The SHA-256 of the copies tested (Microsoft.Direct3D.D3D12 1.614.1, D3D12Core.dll 1.614.1.0).
$package = '9880AA91602DD51DD6CF7911A2BCA7A2323513B15338573CDE014B3356EEAFF2'
# The SHA-256 of the copies tested: D3D12Core.dll 1.614.1.0 first, since launchers take the first hash after
# that name as the DLL's (VILauncher's "Fix and verify" took the package's and then refused every package).
$core = '8A23D826B25B4329522FF451CB52B7F2B34D7F2913CFEB878371CE8BD765FE2D'
# The package it comes in, Microsoft.Direct3D.D3D12 1.614.1.
$package = '9880AA91602DD51DD6CF7911A2BCA7A2323513B15338573CDE014B3356EEAFF2'
$url = "https://api.nuget.org/v3-flatcontainer/microsoft.direct3d.d3d12/$Version/microsoft.direct3d.d3d12.$Version.nupkg"
$target = Join-Path $dir 'D3D12Core.dll'