Skip to content

docs/models.md: the levels.rpf model rejects are texture dictionaries and probe caps - #949

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
spidercraft:docs/model-rejects
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
spidercraft:docs/model-rejects

Conversation

@spidercraft

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: new ASSET item, claim in #634 (no ID assigned yet)

What and why

docs/models.md explained the levels.rpf model rejects as "incomplete or duplicate tail pages" in the last shard, said the other shards recover 1:1, and put the 27 standalone models missing against c3708fb down to "duplicates merged". None of that holds when every candidate is classified:

  • The 1,009 last-shard rejects are texture dictionaries. They share the dictionary header that LooksLikeDrawableDictionary checks, and Rpf9TextureRecovery recovers all of them. None overlaps a recovered model.
  • 28 more levels.rpf rejects in shards 1 to 7, and 1 in story000, are models the probe's caps reject: 27 with more than 256 geometries (RageModelDecoder.cs:351; Decode allows 1,024) and 2 with a renderer list 4 count over 4,096 (:387, a count that is never used for sizing). The 27 geometry-capped models are the 27 "duplicates merged".
  • core_restofworld's 151 rejects are 140 texture dictionaries and 11 dictionaries whose drawable has radius 0.

This PR corrects those paragraphs and adds a per-archive table of reject classes with code locations. It links the upstream fixes: breadbbbb/rpf9-explorer#9 (someone else's; drops the texture dictionaries from the scan) and breadbbbb/rpf9-explorer#11 (mine; raises both probe caps). Docs only, no code change, so no Depends on:. A submodule bump would follow once #11 is merged.

Tested

Docs only. The numbers come from runs on my own copy of the 1.0.2.1 package at the 917e9b9 pin, on Linux x64 (CachyOS) with .NET SDK 8.0.428, CPU only (no GPU involved):

  • Every candidate of the six model-bearing archives was run through Rpf9ModelRecovery.RecoverAtOffsets on its own. levels.rpf reproduces ASSET-49's totals (206,981 candidates, 130,225 dictionary children) and its last-shard 1,009.
  • Rejects were classified by a copy of TryResource that records which check drops them. It agrees with the real code on all 206,981 levels.rpf candidates. It ran in a Debug build, so the reported lines aren't shifted by inlining.
  • The texture dictionaries were checked with the unmodified Rpf9TextureRecovery.RecoverAtOffsets: 1,242 of 1,242.
  • For Add AGENTS.md for coding agents #11, every candidate in the six archives was recovered and fully decoded with the pinned and the patched Core, and the outputs were compared row by row: +29 candidates (41 models), none lost or changed.
  • My copy has one extra levels.rpf reject, a zlib block that fails its checksum because of a single flipped bit in that file. The doc leaves it out of the table and explains it.

The findings were reviewed independently by a second model (Gemini), which caught the texture-dictionary identity and the local bit flip; I re-ran its claims before writing them down.

AI-assisted: an AI agent (Claude, Anthropic) did the investigation, measurements and writing on my behalf.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: no translator change.)

🤖 Generated with Claude Code

The 1,009 levels.rpf rejects in the last shard are texture dictionaries,
not incomplete or duplicate tail pages, and 28 more in shards 1 to 7 are
models the probe caps reject. The 27 standalone models below c3708fb are
those capped models, not merged duplicates. Adds a per-archive table of
reject classes and links the upstream fixes (rpf9-explorer#9, ItsNotRexed#11).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kotorvr

kotorvr commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Reviewed 74bd4cb: looks good

The line references (:78, :124, :314, :351, :387, :535) match RageModelDecoder.cs at 917e9b9. The probe's <= MaxMeshes at c3708fb really did tighten to <= 256, which accounts for the 27, and the table sums (1,037 / 151 / 1,242 / 29) and the 873 = 1,024 - 151 figure all add up. The per-archive counts need the game, so I didn't reproduce them.
Ran: fetched Core/RageModelDecoder.cs at 917e9b9, c3708fb and 48557ea to check the cited lines; python -m compileall -q make_game.py tools tests ok. Windows 11, Python 3.13.7.
Review was AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants