Viewer: characters' hair takes the colours of its hair preset #203
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!203
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/203/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-24 20:30 UTC · original
holdmysocks:claude/people-hair-colour→master· +307 −10 · 5 files · 1 commits · merged 2026-11-24 20:55 UTCWhat
Story characters' hair was drawn in the viewer's default dark colour, because their hair items store no usable tint (placeholder palette, rows 0, 0, 0).
The colour is elsewhere: a hair, brow, lash or beard item names a hair colour preset (wardrobe tag
f7b14eb8, on the item or a parent) in the appearance library of data.rpf (records of struct6f03dd54, 121 of them). A preset has two colours, an optional noise texture and seven numbers.Changes
hairtonemodule: reads the presets (cached ashair_presets.jsonin the work directory's index folder), the display mapping and the per-strand mix.ped-lookand the wardrobe parts carryhair_preset.Measured
Not decoded (stated in the code and the tooltip)
Verified
cargo test --release --workspace: 191 and 20 pass (2 new tests).Not verified against the game: the exact look (brightness and where each colour falls).