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

Manually merged
github merged 1 commit from github-bot/gh-1872 into main 2026-11-29 08:21:47 +00:00 AGit
Owner

@⁠nick0451 on GitHub · 2026-11-29 01:13 UTC · original
nick0451:fix/ttdb-graphics-check → main · +200 −0 · 2 files · 1 commits · merged 2026-11-29 08:16 UTC

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

**@⁠nick0451** on GitHub · 2026-11-29 01:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1872) `nick0451:fix/ttdb-graphics-check` → `main` · +200 −0 · 2 files · 1 commits · merged 2026-11-29 08:16 UTC 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://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/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](https://claude.com/claude-code)
A package whose data/ttdb is of another packaging (ttdb_peds.ttpf,
ttdb_props.ttpf, textures_loose.ttpf, no graphics folder) never opens
data/ttdb/graphics/ttdb_graphics.ttpf. A key the title looks up while
loading is registered only from that file, so the title stops at its
own breakpoint, +0x3e42541, with nothing saying why (#421, #595, #1622).

KnownBuild gets required_files (path, size in a copy that runs, what
happens without it). `victory run --execute` (and so `victory play`)
names a missing one and stops before the title runs;
VICTORY_SKIP_FILE_CHECK=1 runs it anyway. A file of another size is only
told, as other packagings may run with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 01:18:35 +00:00
github manually merged commit 01d41cee59 into main 2026-11-29 08:21:47 +00:00
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/trustno1-coder--VIctory-NVIDIA!1872
No description provided.