A clothing part whose weighted cloth or accessory bones are not in the master skeleton was refused whole. Each such hash now becomes a joint bone_0x<hash> under the skeleton root with identity local transform and the root's inverse bind, so the rest pose is unchanged; clips can still drive it.
Squash-merged after review of PR #4881 - anim_clips: count clip windows; the clip timing rule over all 785,174 entries (was 4,471 in 300 sampled dictionaries)
Zero zero-weight joint indices before the palette lookup, so the numpy path matches the stdlib path instead of raising IndexError.
Strengthen the packed test to set bits 12-15, and add tests for mesh_blob.sections and the empty component list. Document that only 0x8C is accepted (no measured 0x8B layout), add the 0x8C docs row and correct the test count to 15.
The component list already summed to 2,631, so replace the contradictory 453 total and spell out that the 908 are the resources using the skin/flesh shader. On the skeleton page, name both common.rpf managers and state that neither maps a variation index to a drawable plus texture, replacing the false claim that no such manager exists.
Slots 8/9 may store four u32 words per vertex with the joint index in bits 0..11. Convert that to the same 4 x u8 rows as 0x25, rejecting an index above 255 and a stream shorter than 16 bytes per vertex.
Add synthetic coverage for the decode, an out-of-range index and a short stream; document the layout beside 0x25.
tools/anim_glb.py reads a fragment's skeleton (drawable +0x18: bone records,
inverse bind matrices, parents), binds part meshes to it through the model
bone list at grmModel+0x28 (ASSET-12 skin layouts), and writes decoded
anim.rpf clips as glTF animations: bonerotation/bonetranslation/bonescale
drive the joint with the track's bone hash, bone hash 0 drives a mover node,
and a clip entry maps animation time t to (t - start) / rate. --coverage
counts how many clip bone tracks name a skeleton joint.
docs/character_skeleton.md: the instance table was read 0x40 bytes late, so
each row paired a bone with the next bone's TRS. Read from the record start,
the default transforms compose to the stored inverse bind matrices (5.1e-6 m
female, 3.3e-6 m male, all 14,212 skeletons in packs.rpf within 1e-3). The
model bone list is at +0x28, not +0x20. New "Animated glTF export" section
with the measured counts; animation.md, models.md, character_models.md and
the docs index follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/skin_streams.py carves drawable resources out of an RPF9 archive without the
TOC, walks drawable -> LOD -> grmModel -> geometry -> FVF, classifies the skin
slots (16/17 weights, 20/21 indices) and validates the decoded bytes against each
model's bone count. docs/character_skeleton.md gets the measured layout table and
the corrected skin section. Synthetic tests in tests/test_skin_streams.py.
Mandy is a KeyLento persistent/cutscene character schedule (KeyLento/Perschars/Peds/Unique/Mandy, pack PSP_KeyLento_perschars_peds), not a unique drawable. A read-only search of the 1.0.2.1 package found no mandy/cs_mandy/ig_mandy/mp_mandy drawable or fragment in packs.rpf (144,364 streams / 9.74 GB, 24,034 models, 12,338 name records), data.rpf (28,509 / 1.41 GB), common.rpf (954 / 50 MB), levels.rpf (2,051 nested archives, first 4 MiB per stream), story000.rpf (0-4 GiB and 14 GiB regions), script/rest-of-world/audio/anim/movies/textures.
The only name hits are an iFruit billboard and a house photo prop; story000 has *_mandy.clip animation names but no drawable. Hash controls resolve cs_kenton, u_f_o_rhonda, cs_monalisa and cs_lucia; Mandy does not. The delivered mandy/ export is therefore a labelled cs_monalisa proxy. Caveats: levels prefix-bounded at 4 MiB, raw RSC8/Bink not decoded, encrypted RPF9 TOC. No game data or localized strings included.
Add a character-skeleton page: 597-name #ft table, the following 597-record parent/reference-TRS table, the model bone-hash mapping, and the character material texture-parameter split. Update animation.md with the partial clip decode (two named clips, 0x48-byte track arrays, 63/38 and 12/38 masks) and the 46-byte MoVE header correction. Link the new page from models.md and design.md. No game data.