Textures: resolve de-duplicated textures (painted body skins for 2,602 characters) #332
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!332
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/332/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-26 02:00 UTC · original
holdmysocks:people-body-skin→master· +207 −7 · 4 files · 2 commits · merged 2026-11-26 02:22 UTCMost characters' painted body skin textures were missing, so bodies took the face colour at the neck. The textures are in the install: identical textures are stored once, and a table in
textures.rpfmaps the other hashes to the stored copy.Format (a plain
binentry in textures.rpf):EDUP, u32 count, then 17,431 pairs of u64 dropped hash and u64 kept hash, sorted by the dropped hash, then filler. No chains (no kept hash is itself a dropped one).Change
TtpfSet::getfalls back to the table when a hash is in no store (get_storedkeeps the exact lookup;kept,dupes). The table is read once from the textures.rpf index, so that archive needs to be indexed.model.jsongivesstored_aswhen a texture was found this way; the PNG is named after the stored hash.bodyskinexample: survey of body items per character and table coverage.Results
Tests: sixng-core lib 308 passed.