Run: a known build's missing game files are named before it runs (#421: +0x3e42541) #1872

Merged
nick0451 merged 1 commit from upstream-pr/1872 into main 2026-11-29 08:16:54 +00:00
nick0451 commented 2026-11-29 01:13:14 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T01:13:14Z.


For #421 (and #595 and #1622, the same crash): 0x80000003 at victory-image-…+0x3e42541 is a game copy whose data\ttdb folder comes from another packaging. Today the title just stops on its own breakpoint, with nothing saying why. With this change, victory run --execute, and so victory play, says which file is missing before the title runs.

The cause (details in #421)

At +0x3e42541 the title looks up one key built into its code. That key is registered only from data/ttdb/graphics/ttdb_graphics.ttpf. The crash log attached in #421 never opens that file. Its texture databases are a different set (ttdb_peds.ttpf, ttdb_props.ttpf, textures_loose.ttpf, and no graphics folder), under the same executable.

The change

  • victory-game: KnownBuild gets required_files. Each entry has its path in the package, its size in a copy that runs, and what the title does without it, as told to the player. check_package(build, dir) returns the files that are missing and the ones of another size. The retail build lists the one file above.
  • run.rs: once the build is identified, check_package_files runs. A missing file is named on a missing files line, and with --execute the run stops there. VICTORY_SKIP_FILE_CHECK=1 runs it anyway, like VICTORY_SKIP_CPU_CHECK. A file of another size is only told (package files), since other packagings may run with it. An unknown build isn't checked.
  • Per docs/asset-policy.md, only a path and a size are stored: no hash of the file and nothing from the executable. Package file names already appear the same way (Bink2Scarlett.dll, XboxBvhBuilder.dll in run.rs).

What a player sees with the file missing:

Error: the game's files are incomplete, or from another packaging than this executable: <game folder>\data\ttdb\graphics\ttdb_graphics.ttpf is not there: without it the title stops while loading, at its own breakpoint +0x3e42541 (#421). Verify the game's files, or copy them again (VICTORY_SKIP_FILE_CHECK=1 runs it anyway)

Tested

RTX 3090, Windows 11, release build on main f9dfb76:

  • A folder with only the executable and MicrosoftGame.Config: both victory run --execute and victory play stop with the message above (exit 1) before the image is mapped.
  • The complete game folder: no missing files line. 3 of 3 fresh starts reached the world.
  • cargo test -p victory-game: 7 passed (3 new: well-formed entries, a complete package passes, a missing or shortened file is named). cargo test -p victory --bin victory: 30 passed (1 new: a missing file stops an executing run, and not with the skip or without --execute).
  • Clippy reports nothing in the two changed files.

Found and written with an AI assistant (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5546336017 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1872). Originally posted by [nick0451](https://github.com/nick0451) on 2026-11-29T01:13:14Z. --- For #421 (and #595 and #1622, the same crash): `0x80000003 at victory-image-…+0x3e42541` is a game copy whose `data\ttdb` folder comes from another packaging. Today the title just stops on its own breakpoint, with nothing saying why. With this change, `victory run --execute`, and so `victory play`, says which file is missing before the title runs. ## The cause (details in [#421](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/421#issuecomment-7248435557)) At `+0x3e42541` the title looks up one key built into its code. That key is registered only from `data/ttdb/graphics/ttdb_graphics.ttpf`. The crash log attached in #421 never opens that file. Its texture databases are a different set (`ttdb_peds.ttpf`, `ttdb_props.ttpf`, `textures_loose.ttpf`, and no `graphics` folder), under the same executable. ## The change - `victory-game`: `KnownBuild` gets `required_files`. Each entry has its path in the package, its size in a copy that runs, and what the title does without it, as told to the player. `check_package(build, dir)` returns the files that are missing and the ones of another size. The retail build lists the one file above. - `run.rs`: once the build is identified, `check_package_files` runs. A missing file is named on a `missing files` line, and with `--execute` the run stops there. `VICTORY_SKIP_FILE_CHECK=1` runs it anyway, like `VICTORY_SKIP_CPU_CHECK`. A file of another size is only told (`package files`), since other packagings may run with it. An unknown build isn't checked. - Per `docs/asset-policy.md`, only a path and a size are stored: no hash of the file and nothing from the executable. Package file names already appear the same way (`Bink2Scarlett.dll`, `XboxBvhBuilder.dll` in `run.rs`). What a player sees with the file missing: ``` Error: the game's files are incomplete, or from another packaging than this executable: <game folder>\data\ttdb\graphics\ttdb_graphics.ttpf is not there: without it the title stops while loading, at its own breakpoint +0x3e42541 (#421). Verify the game's files, or copy them again (VICTORY_SKIP_FILE_CHECK=1 runs it anyway) ``` ## Tested RTX 3090, Windows 11, release build on main `f9dfb76`: - A folder with only the executable and `MicrosoftGame.Config`: both `victory run --execute` and `victory play` stop with the message above (exit 1) before the image is mapped. - The complete game folder: no `missing files` line. 3 of 3 fresh starts reached the world. - `cargo test -p victory-game`: 7 passed (3 new: well-formed entries, a complete package passes, a missing or shortened file is named). `cargo test -p victory --bin victory`: 30 passed (1 new: a missing file stops an executing run, and not with the skip or without `--execute`). - Clippy reports nothing in the two changed files. Found and written with an AI assistant (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!1872
No description provided.