Hair: read a hair asset's strand grooms from the game instead of guessing them #273
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!273
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/273/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-25 13:35 UTC · original
holdmysocks:claude/people-hair-links→master· +304 −59 · 5 files · 2 commits · merged 2026-11-25 14:10 UTCWhat
Many outfits showed a bald head, and others showed the wrong hair. The viewer guessed which strand grooms belong to a hair asset from names, archive order and geometry. The link is in fact stored, and this reads it.
The stored link
_fullincluded. The name id is the first half of MurmurHash3 x64 128 (seed 0) of the lower-case name, the same hash asmeta7a::asset_id. 1,854 of the 1,879 assets of the piece table are named this way._full, plus a piece word (_base,_hairline,_babyhair,_tail,_fringe,_crown,_front…). LODs add_lod1and so on.73bcb72dce74f11f. 6,232 of the 6,238 ids of the piece table are files of the archive; 5,711 of them are grooms.Changes
hairlinkbuilds the table from the stored link when the table of contents can be read: 878 hair, beard, brow, lash and body-hair assets, each with all its pieces, in about 15 seconds (the inferred table took about a minute and placed 276 assets at 50 % or more). The table says whether it is exact. The cache version is bumped, so it rebuilds once.rpf9toc::file_idsreads the file id column of an archive and the archives inside it.Checked
_base,_crownand_front.cargo test -p sixng-core: 261 passed. New tests: LOD chains from known piece starts, and a clump-only piece.Not done
furlink) still infers its link. The same three steps should apply.otherand are not shown.