Ped clothing colours from the wardrobe tint palettes #46
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!46
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/46/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-23 13:26 UTC · original
holdmysocks:claude/ped-colours→master· +412 −14 · 11 files · 1 commits · merged 2026-11-23 13:36 UTCPed clothing now exports in the colours the wardrobe stores, through the game's tint palettes.
What the data says
ped_standard_muvand relatives) bind no colour texture. Their packed data map (slot739e3d0d) holds R = 255, G = the fabric shade and B = a flat per-region value.textures.rpf(ped_tint_generic_clean,ped_tint_vstation_generic,ped_tint_hair,animal_tint_*…).SW_4KB_Slayout. The dictionary decode scrambles them, because it assumes another tiling for 4-byte texels.f795e8ba) names its palette by the joaat of that texture name (5ecf9331), and gives three tint bytes (c4d75d79,f4fb3dec,ab5d2a85) that are the rows of tints 0–2; 255 means off.ped_tint_vstation_genericwhen it names none.Changes
pedtint(new): palette loading fromtextures.rpf, the tint rule, the shade-to-palette bake, and--tintparsing.ped-variations: each item gets atint(spec, palette, palette name, rows, the item that set it, whether the default palette is used). Each variation gets atintsstring foroutfit --tint.outfit --tint drawable=palette:r0.r1.r2,…/ExportOptions::ped_tints.739e3d0dmap looks like a shade map gets a baked base-colour texture: palette row tint 0 at G, or grey G for parts without a tint. It is recorded asped_tintin the material extras.Checked
2b21010,2b34010): 10 of 43 female and 12 of 75 male variations store tints. Duty shirt → navy (mid colour 27,42,86); casual shirt → magenta; chinos → cream; flip-flops → navy; tanktop → near black.Not done
46d26d93(an ARGB colour on a few texture sets) is not used.fcef23e3(eyes, teeth, belts) is not in the tint dictionary.