Check the required package archive before title startup #12

Manually merged
github merged 3 commits from gh-pr/12/head into gh-pr/12/base 2026-11-26 03:46:24 +00:00
Owner

@⁠Raxstreams on GitHub · 2026-11-23 22:54 UTC · original
Raxstreams:codex/startup-breakpoint-diagnostics → main · +143 −12 · 6 files · 3 commits · merged 2026-11-25 00:10 UTC

Refs #8.

On an RTX 3080 Ti with the executable SHA-256 reported in the issue, omitting only appdata0.rpf from a temporary package layout reproduced both the breakpoint at title+0x2237178 and the reported register values (rax=rbx=rcx=0, rdx=0x66). Restoring that archive to the same layout brought up the window and frame 2 recorded a successful host draw. The successful run also logged the rpcrt4.dll refusal. The local driver was 32.0.16.1714. The reporter's package and driver still need independent confirmation.

Changes

  • Identify the Series 1.0.2.1 executable by BLAKE3. Before executing that build, check that the startup archive beside the executable opens and has an RPF9 header. An error now gives the path and recovery guidance.
  • Add opt-in first-chance breakpoint reports and include caller frames in the existing host DLL refusal warning for further investigation.

Verification

  • The missing archive, a short header, and an invalid header each produced the expected error before image mapping. A bind-only run succeeded without the archive.
  • With the archive restored, the title presented to a window on the hardware adapter. Testing stopped after the first successful host draw.
  • The workspace diagnostics run passed with 223 tests passing and three ignored. The staged changes passed the repository asset policy.

For the reporter, the first file to check is appdata0.rpf beside the executable. If the startup check passes and the breakpoint persists, the README describes how to collect the first-chance report.

**@⁠Raxstreams** on GitHub · 2026-11-23 22:54 UTC · [original](https://github.com/Marvisak/VIctory/pull/12) `Raxstreams:codex/startup-breakpoint-diagnostics` → `main` · +143 −12 · 6 files · 3 commits · merged 2026-11-25 00:10 UTC Refs #8. On an RTX 3080 Ti with the executable SHA-256 reported in the issue, omitting only `appdata0.rpf` from a temporary package layout reproduced both the breakpoint at `title+0x2237178` and the reported register values (`rax=rbx=rcx=0`, `rdx=0x66`). Restoring that archive to the same layout brought up the window and frame 2 recorded a successful host draw. The successful run also logged the `rpcrt4.dll` refusal. The local driver was 32.0.16.1714. The reporter's package and driver still need independent confirmation. ## Changes - Identify the Series 1.0.2.1 executable by BLAKE3. Before executing that build, check that the startup archive beside the executable opens and has an RPF9 header. An error now gives the path and recovery guidance. - Add opt-in first-chance breakpoint reports and include caller frames in the existing host DLL refusal warning for further investigation. ## Verification - The missing archive, a short header, and an invalid header each produced the expected error before image mapping. A bind-only run succeeded without the archive. - With the archive restored, the title presented to a window on the hardware adapter. Testing stopped after the first successful host draw. - The workspace diagnostics run passed with 223 tests passing and three ignored. The staged changes passed the repository asset policy. For the reporter, the first file to check is `appdata0.rpf` beside the executable. If the startup check passes and the breakpoint persists, the README describes how to collect the first-chance report.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:46:22 +00:00
github manually merged commit c63262f1e9 into gh-pr/12/base 2026-11-26 03:46:24 +00:00
Author
Owner

@⁠Sunkiller-qc on GitHub · 2026-11-23 23:46 UTC · original

Thanks for the repro work on #8. This conflicts with main in crates/victory-loader/src/crash.rs, since handler now calls emulate_amd_only before the FATAL check (#10), and it would also overlap #34/#38. It might be easier to review and land as two PRs: the appdata0.rpf startup check, and the opt-in breakpoint logging. Adding the 1.0.2.1 BLAKE3 hash to KNOWN_BUILDS is probably fine, but maybe worth a quick check against docs/asset-policy.md. Static review, not built or run.

**@⁠Sunkiller-qc** on GitHub · 2026-11-23 23:46 UTC · [original](https://github.com/Marvisak/VIctory/pull/12#issuecomment-7117355563) Thanks for the repro work on #8. This conflicts with main in `crates/victory-loader/src/crash.rs`, since `handler` now calls `emulate_amd_only` before the FATAL check (#10), and it would also overlap #34/#38. It might be easier to review and land as two PRs: the `appdata0.rpf` startup check, and the opt-in breakpoint logging. Adding the 1.0.2.1 BLAKE3 hash to `KNOWN_BUILDS` is probably fine, but maybe worth a quick check against `docs/asset-policy.md`. Static review, not built or run.
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 00:10 UTC · original

Could not validate this head on Linux: merging #39 (required, main does not build here) conflicts in crates/victory-loader/src/crash.rs, so the tree is not a clean stack and the result would not be trustworthy.

  • Everything else merges; the conflict is one file, and crash.rs is Windows-gated, so the portable suite still builds inside that tree — but the PR's own loader change is not exercised.
  • A rebase onto #39 (or main once #39 lands) would let me run cargo test --workspace and report the real numbers.
  • No game data used.

AI-assisted (DeepSeek V4.1 Flash coding agent).

**@⁠DaviTostes** on GitHub · 2026-11-24 00:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/12#issuecomment-7117777802) Could not validate this head on Linux: merging **#39** (required, `main` does not build here) **conflicts in `crates/victory-loader/src/crash.rs`**, so the tree is not a clean stack and the result would not be trustworthy. - Everything else merges; the conflict is one file, and `crash.rs` is Windows-gated, so the portable suite still builds inside that tree — but the PR's own loader change is not exercised. - A rebase onto #39 (or main once #39 lands) would let me run `cargo test --workspace` and report the real numbers. - No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 01:29 UTC · original

Tested c63262f both ways:

  • Windows build under Wine 11.22 + vkd3d-proton 3.1 (AMD RX 9060 XT, RADV 26.3.1): victory-loader 18 passed, 0 failed; tests/crash_log.rs 1 passed (the new first_chance_breakpoint_logging).
  • Native Linux: cargo test -p victory-loader gives 0 passed, 3 failed in prepare::tests::*, all Pe(Malformed("Unknown file magic")) — those tests parse the test binary itself as a PE image, and on Linux it is ELF. That is pre-existing and is what #112 gates; not caused by this PR.
  • The "Check the required package archive before title startup" path is not something the portable tests exercise end to end (it needs a package), but the loader suite is green on Windows.

No game data used.

**@⁠DaviTostes** on GitHub · 2026-11-24 01:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/12#issuecomment-7119155778) Tested `c63262f` both ways: - **Windows build under Wine 11.22 + vkd3d-proton 3.1** (AMD RX 9060 XT, RADV 26.3.1): `victory-loader` **18 passed, 0 failed**; `tests/crash_log.rs` **1 passed** (the new `first_chance_breakpoint_logging`). - **Native Linux**: `cargo test -p victory-loader` gives `0 passed, 3 failed` in `prepare::tests::*`, all `Pe(Malformed("Unknown file magic"))` — those tests parse the test binary itself as a PE image, and on Linux it is ELF. That is pre-existing and is what #112 gates; not caused by this PR. - The "Check the required package archive before title startup" path is not something the portable tests exercise end to end (it needs a package), but the loader suite is green on Windows. No game data used.
Author
Owner

@⁠superboynick on GitHub · 2026-11-24 16:16 UTC · original

Package side only — no driver or runtime data here.

The package half of this PR's request can be confirmed from a second, independently obtained copy of the 1.0.2.1 package. What follows is a package-wide check, not a repeat of the single startup-archive check this PR already implements.

Package totals

  • 208.51 GiB over 108 files; all 108 file sizes match the published file listing, with none missing and none extra.
  • Every archive in the package opens as RPF9: 22 of them, 12 at the package root and 10 under pack/. The existing check covers one archive beside the executable; this covers the whole package.

Executable

  • game_scarlett_master.exe — 120,181,760 bytes
  • SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993
  • BLAKE3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93

Scope, stated plainly: this is file-size and container-identification work. We did not run a second content-level pass over the archives and we are not claiming one. No loader output, bound counts, or frame data appear here.

Driver and runtime confirmation for this build still needs someone who can actually start the title; that side cannot come from us.

AI-assisted. No game data reproduced here.

**@⁠superboynick** on GitHub · 2026-11-24 16:16 UTC · [original](https://github.com/Marvisak/VIctory/pull/12#issuecomment-7137397193) Package side only — no driver or runtime data here. The package half of this PR's request can be confirmed from a second, independently obtained copy of the 1.0.2.1 package. What follows is a package-wide check, not a repeat of the single startup-archive check this PR already implements. Package totals - 208.51 GiB over 108 files; all 108 file sizes match the published file listing, with none missing and none extra. - Every archive in the package opens as RPF9: 22 of them, 12 at the package root and 10 under `pack/`. The existing check covers one archive beside the executable; this covers the whole package. Executable - `game_scarlett_master.exe` — 120,181,760 bytes - SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993` - BLAKE3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93` Scope, stated plainly: this is file-size and container-identification work. We did not run a second content-level pass over the archives and we are not claiming one. No loader output, bound counts, or frame data appear here. Driver and runtime confirmation for this build still needs someone who can actually start the title; that side cannot come from us. AI-assisted. No game data reproduced here.
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/Marvisak--VIctory!12
No description provided.