BUILD-1368 asked to index two name streams, a `nameTable` of 64-byte
records and a `nameData` of ASCII strings. Measured over all 57 pools,
neither exists: every byte of a pool is header, chunk table, ETPF
descriptors, u64 asset keys, trailing metadata that reads as uniform
random bytes, zero padding or texture data, and the virtual space has
no range left for another stream. The names do not occur in the pools
or in the inflated streams of common.rpf, script.rpf and data.rpf
either. Counts only; the trailing bytes stay unread.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An in-order alignment finds five different 4 MiB data/ttdb chunks reappearing for 65.8-97.5% of their bytes
in the 6 and 32 MiB streams, in short runs with hundreds of gaps (8.6% for the 12 MiB stream). Recorded as
shared runs, not a copy: five chunks aligning this well says they resemble each other.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The doc left matching them to the data/ttdb pools as the next check. Against all 1,026,833 chunks of the
57 pools (whole-content SHA-1 as stored and inflated, plus the first 64 bytes): 1 stream (4 KiB) is
identical to a pool chunk, 3 large ones share their first 212-582 KB with a 4 MiB chunk and then diverge,
3 share only a short common leading pattern, and 114 match nothing. Counts only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
breadbbbb/rpf9-explorer#15 merged: Core/TtpfReader.cs Patterns[2] now uses the
RDNA2/RbPlus (3, -3) order at bits 6..7 (GFX10_SW_64K_D_RBPLUS_PATINFO), as
tools/ttpf_mips.py already does. The pin also brings #13, merged just before it
(32 kHz Opus durations in 48 kHz frames). docs/textures.md "Next step" drops the
Patterns[2] item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pool.descriptor() gave asset_key_at None whenever the key sat past the record
area, which is where most of the array lives in retail pools: 28,666 of 357,115
entries over the 57 pools of a 1.0.2.1 install. TtpfReader.cs at the e293917
pin reads the key from the ID region in that case and refuses only a key split
by the boundary itself; mirror both. write_rds5_pool grows an optional area so
tests can build a straddling pool.
- tools/tex_headers.py: read mips from flags at +0x42 (flags >> 16) and preserve b6 at +0x3e.
- tools/tex_headers.py: validate system pointer tag (0x5...) and reject null pointers so all-zero buffers produce empty records.
- tools/tex_headers.py: match texture names by lowercase JOAAT32 hash rather than index position.
- docs/textures.md: wrap lines under 118 chars and label dry cell occupancy as hypothesis.
- tests/test_tex_headers.py: add tests for differing b6/mips offsets, zero buffers, invalid tags, reversed and missing names.
- Add parse_texture_dict_page in tools/tex_headers.py to extract grcTexture descriptors, name hashes, and data offsets from pgDictionary pages.
- Update docs/textures.md resolving the ASSET-274 hypothesis: all 1,313 texture page pairs are keyed by waterfog/waterfog2 joaat32 hashes matching the active world streaming grid cells, with formats strictly matching DXGI enums (0x5f = BC6H_UF16, 0x62 = BC7_UNORM, 0x4d = BC3_UNORM).
- Add synthetic unit tests in tests/test_tex_headers.py for parse_texture_dict_page.
Review of #3009:
- character_models.md said materialid is "declared but unbound on the jacket"
and "unbound on all four". The jacket's and the crop tee's material rows
reference a BC4_UNORM texture that is in the pools; the bikini top's and the
undies' rows have no such slot. Whether a shader samples it is not measured.
- textures.md still said "the jacket, crop tee and other garments have no
albedo". The bikini top and the undies are on other shaders and account for
nine of the 0xC8E8C282 references (six and three material rows).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The five slot hashes are the verified character-corpus mapping: diffusetex (0xC8E8C282) is the only albedo, speculartex (0xC6F46E79) is specular/gloss, bumptex (0x1E77BF4C) is the tangent-space normal, speculartex2 (0x739E3D0D) is packed ORM, and materialid (0x8ADB8480) is an ID/palette map. Unrecognised hashes print as unknown 0x... and are never matched by texture name.
Garment shaders d5ed50f4, ea8d09d0 and 39ddb9ca declare no 0xC8E8C282 slot, so a garment material without one is flagged garment-no-albedo instead of treating speculartex as colour. --json/--csv reports reuse gamedata_xml.py's same_report_path guard. Tests use synthetic model JSON only.
Add `tools/bcpack_history_calib.py` to derive external `--history <path>` JSON
tables (`bc1.json`..`bc7.json` or combined JSON) locally from a player's own
texture pools or exact reference block/DDS pairs using only the Python
standard library (`python -I`):
- Exact reference inversion (`--ref-dds POOL:INDEX=REF.dds`, `--ref-pairs`):
algebraically inverts direct built-in history references (`d > i` in blocks
0..255) across BC1/BC3/BC4/BC5/BC6H/BC7 into confirmed strict-mode entries.
- Read-only TTPF pool self-calibration (`inputs ...`): uses a prefix rANS lane
decoder (`decode_lanes_prefix`) together with exact BC6H/BC7 anchor MSB and
BC7 Mode-1 shared p-bit parity constraints, intra-block index smoothness
voting, and sibling raw/zlib mip endpoint fitting to derive provisional
tables usable with `--history <path> --allow-provisional`.
- Extend `tools/bcpack_tables_bptc.py`, `tools/bcpack.py`, and
`tools/ttpf_mips.py` so `--history` also accepts optional BC1-BC5 JSON
tables (`confirmed`, `provisional`, optional `replace`) alongside BC6H/BC7.
- Add synthetic unit tests in `tests/test_bcpack_history_calib.py` and document
the schemas and CLI workflow in `docs/textures.md`.
rpf9_carve over textures.rpf: 2,749 streams; 1,313 system/graphics page pairs
of one two-texture dictionary template (128x128, format code 0x5f, payload
exactly 2 x 16,384 bytes) with 1,117 distinct payloads, and 121 opaque raw
streams holding 91% of the inflated bytes. Counts only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds joaat names for 0x1E77BF4C (bumptex), 0xC6F46E79 (speculartex),
0x739E3D0D (speculartex2), 0x3FB7964F (tinttexture) and 0xC075F9B6
(lookuptexture), and a content check on a 1,500-model map sample: bumptex is
normal-map-like (1,394 vs 74), speculartex is not (69 vs 1,469). Notes the
conflict with the character table's 0xC6F46E79 row and three sRGB colour
parameters missing from ModelTextureBindings. Counts only.
AI-assisted (Claude). Measured on my own copy (1.0.2.1); docs only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #647: #576 only closes step 1 (the BC6H/BC7 block rebuilders), not
step 3 (BC6H/BC7 pixel decoders for ttpf_mips.py check), and its tracker ID
is ASSET-38 (ASSET-5 is the old #156 ID its description uses).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 48557ea pin predates the merged model-layout recovery, the packs.rpf drawable-dictionary roots, the TTPF compact/array/cubemap/volume layouts and the external skeleton reader. Re-pin to upstream 917e9b9.
rpf9dump now passes e.ResourceDrawableOffset to RageModelDecoder.Decode; without it every dictionary child would decode as the first child. The manifest also records Drawable so a row can be traced to its dictionary offset.
Measured on the 1.0.2.1 package with .NET 8.0.428: a fresh packs.rpf scan recovers 24,034 models (23,720 dictionary children plus 314 fragments) from 23,838 candidates, against 314 at the old pin. docs/models.md keeps the 48557ea/c3708fb table as the control and adds the new packs.rpf result; docs/design.md notes the other archives were not re-counted at the new pin. Build: 0 warnings, 0 errors.
The list still sent people to work that was done or is in review:
- step 1: the BC6H/BC7 rebuilders are in #576, not on main yet, so it says so
and notes that steps 1 and 3 stay open until it merges;
- step 2: the compact layout rule and multi-slice layouts are already upstream
in rpf9-explorer; only the BCPack decoder is left (ASSET-44);
- step 5: the multi-slice layouts are done (#520, rpf9-explorer #5 and #6);
what is left is the submodule pin (BUILD-101).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>