Remove the truncated duplicate Opaque block contradicting rsc8_audio.md and
tools/vertex_types.py, update decoder item 7, and link story.md/world.md/psin.md.
AI-assisted: Antigravity gemini-4-neon.
A data.rpf sample puts the decoded 8-bit vector on the U tangent 1,992/1,992 corner uses (median |dot| 0.999598) and bit 30 on the dP/dv side 101/104; the three exceptions are one indexed vertex with mixed UV determinants. Records the exception for a consumer building a tangent frame.
Follow-up to #2309, which found the two texture sources (embedded 0x980 textures and the companion ttdb
pools). Over the 1,732 drawables of the two core archives (17,208 references, 675 distinct 64-bit IDs):
543 IDs are in a pool (285 core, 258 shared data/ttdb; 6,403 references), none is a key of the 144
embedded dictionaries or appears in the 145 embedded-texture streams, and 132 (10,805 references) are in
no source. By slot, colour/normal/specular resolve for 93/89/85% of references; most unresolved references
come from six slots with one fixed ID each. Counts only; no IDs, names or slot hashes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/audio.md still listed a custom RSC8 audio resource as the only
mission-side container not decoded, and story.md and restofworld.md
still called the RSC8 bodies opaque. rsc8_audio.md (ASSET-56) decoded
them: all 641,428 raw RSC8 headers in the package are AWC tag 0x5c
facial/lip-sync clips beside their Opus dialogue line, none outside an
ADAT bank and none holding an audio container. Re-measured on a local
1.0.2.1 copy with tools/rsc8_audio.py over all 22 archives (counts only).
restofworld.md also said its archives hold no audio banks; story-rest
holds 15 ADAT banks, the other five none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keeps this PR from conflicting with #2708/#2746 (which change block() and the 0x21 paragraph) and with
#2838: block() is unchanged, block_with_streams appends the extra streams before the group, and the
paragraph now sits before the slot-usage paragraph.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 363 mesh shaders with a 16_16_16_16_UINT load pick each stream's load from its type (low four bits of
a per-slot descriptor word): slot 6 type 6 as 8_8_8_8_UNORM, else four raw dwords; slot 8 type 5 as
8_8_8_8_UINT, else 16_16_16_16_UINT. 198 of them read slot 17's first 8 bytes as a flag bit and element
index plus three unorm16 coordinates blended trilinearly over the element's eight points. On the data,
slot 17's width follows the influence count (338/338 and 121/121 blocks); the coordinate fit holds in the
few shared elements (39) but those are too few to confirm the reading, and the doc says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mesh shaders fetch tag 0x27 as BUF_FMT_2_10_10_10_UNORM, map each component by v*2-1, transform xyz
like the normal and cross it with the normal scaled by w. tangent_0x27 is that read, and tangent27_checks
counts per 0x27 slot: unit length, perpendicular to the face normal, along dP/du of each 0x28 stream, and
the side w gives the bitangent. docs/restofworld.md records the counts (levels slot 11: 100% unit, 96.7%
along u of stream 4, w side 99.8%).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Where slot 8 holds tag 0x25, each 0x25 slot pairs with the 0x26 slot two below it. skin_checks counts the
skin reading per block: weight sums over the weight slots, descending order, distinct joints among the
non-zero weights, zero weights with index 0, the highest joint used, and the slot-1 colour stream's byte
sum as a control. docs/restofworld.md records the counts (core_restofworld: 95.6% of 212,564 vertices sum
to 255, 99.7% descending, 100% distinct; colour control 0).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mesh shaders build a tangent from the bits the normal leaves: with bit 31 set, bits 20-29 are an angle
(v * 2pi/1023 - pi) that turns a basis made from the normal alone; with bit 31 clear, bits 16-22 and 23-29
are a 7-bit octahedral tangent. Bit 30 is the bitangent sign. tangent_0x21 is that decode, and the tool
now counts each tangent against the texture-coordinate gradient dP/du of its triangles, with a randomly
turned tangent as the chance level, and bit 30 against the side of dP/dv. docs/restofworld.md records
the counts on two archive samples.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mesh shaders branch on the sign of the 0x21 word: with bit 31 set they unfold an octahedral normal from
unorm10 x/y in bits 0-9 and 10-19; with it clear, from unorm8 x/y in bytes 0-1. normal_0x21 is that decode,
scored as candidate oct_bit31_10_or_8. Scored by class on sampled blocks, each class matches the face normals
only under its own branch (levels: median 1.00 for both); docs/restofworld.md records the counts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Standalone 0x7a resources place the 80-byte 0DRP+122 header at +0x10 after an 8-byte zero prefix + 0x50000000 page-map pointer, with 0x50000000 virtual table pointers (+0x28 structs, +0x30 enums, +0x38 blocks, +0x40/+0x50 optional) and root_objects at +0x20. PSIN LRSC sections place the same 80-byte frame at LRSC+0x08 without the 16-byte prefix, zero +0x08..+0x0f, store the 1-based root_block at +0x10, fill pointer slots (+0x18..+0x37, +0x40..+0x47) with 0xbb, and store (structs, enums, blocks, 0) at +0x38 matching LSCH, LENM and PSIN+0x08.
Add tools/odrp_7a.py with bounded-memory continuation joining across RPF9 streams, carved directories and single files, synthetic unit/CLI tests in tests/test_odrp_7a.py, and aggregate measurements in docs/restofworld.md (22,235/22,235 complete across nine archives, 0 incomplete).
Add tools/restofworld_model_join.py and synthetic unit tests to join RAGE model system streams (rmcDrawable, pgDictionary<rmcDrawable>, fragType) to their owning graphics streams directly from RPF9 archives or carved directories without the encrypted TOC via the +0x08 datResourceMap page header, 64 KiB multi-page blocking, 16-byte-padded contiguous runs, and cross-page LOD/FVF/meshlet validation.
Across core_restofworld.rpf this joins 924/924 model resources (0 unjoined: 796 drawable dictionaries = 808 child drawables, 75 standalone drawables, 53 fragments = 936 drawables total, 1,239,596 primary-LOD triangles, 1,828,800 all-LOD triangles), accounting for all 924 name-bearing system pages across 926 system streams and all 958 42 40 00 00-start streams plus all 13 mid-stream 42 40 00 00 continuations across 1,020 graphics streams, plus 1/1 drawable dictionary (3 drawables, 2,620 triangles) in story000_restofworld.rpf.
Preserve ordered records and expose file/include/setup views, with synthetic tests and counts from four complete archives. No game data included. AI-assisted.
LSNS is a u32 block count, a (u32 kind, u32 bytes) table, then the blocks,
each a whole number of 16-byte records; the empty form is 12 bytes.
psin_index.py now checks that layout per section and reports blocks,
record counts and errors. Over 5,217 sections in five archives it holds
with 0 errors.
The records are uniform bytes, occur nowhere else in their container, and
match no tested 32/64/128-bit name hash (joaat, FNV, CRC-32, Murmur3,
xxHash, MD5, BLAKE2b, SHA). psin.md records the layout and these negative
results; the contents may be encrypted and are left unread.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vertex_types.py over the seven archives with target blocks (60,442 dense
blocks, 138.9M vertices): header words constant, tag 0x28 is signed int16
pairs (85x fewer edge wraps than unsigned), tag 0x26 slot 1 has an
alpha-like byte 3, and none of 19 normal encodings explains tag 0x21.
Counts only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the #283 argparse validators to anim_index, rbf0_index, restofworld_index and rpf9_carve: --start >= 0, --limit >= 1 (decimal or 0x hex), and --max-inflate >= 1 in restofworld_index. Bad ranges now exit 2 before any scan or output instead of silently scanning everything, less, or nothing. Synthetic CLI tests in all four test files; docs notes for each tool.
New item claimed in #156. AI-assisted (OpenCode).
Add the full core_restofworld scan (1.21 GiB, 96% Bink 2 plus model/page data), re-measure story000_restofworld and story000_script, and cover the three small archives. Cross-check PSIN against script.rpf/story000 and core pages/models against packs.rpf/levels.rpf. Add a stdlib-only stream index tool and synthetic-header tests. No game data.