Textures: read every de-duplication table (gore textures), cached #346
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!346
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/346/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 03:09 UTC · original
holdmysocks:people-texture-dupes→master· +131 −24 · 3 files · 1 commits · merged 2026-11-26 03:22 UTCFollows #332. I checked what texture hashes are still missing after the de-duplication table and found a second table.
The second table: core_restofworld appends an
EDUPtable (33 pairs, gore textures) to the end of its pack setup XML, so it was classified as XML and not read. Tables are now found anywhere inside the small plain files (bin, xml, text under 1 MiB) of textures.rpf and the content packs. I searched every archive of the install for the magic; these two are the only real tables (the other matches are words such asTIEDUPand chance bytes in models). The merged table (17,464 pairs) is cached as<work>/index/texture_dupes.jsonand rebuilt when one of those indexes changes. A cold build takes about a second.What "missing" really was: the 111 K "still missing" in #332 was almost all tint palettes embedded in the models, which the exporter already reads from the model. Of the 391,040 referenced hashes, 7,789 now resolve through the tables (16 more than #332). The remaining 620:
5d7a3a87cc19967d, the engine default (54,889 models; already white)The install names those only in the models that use them.
Also: a test in
ttpf.rsfrom #332 had raw NUL bytes in a string literal, which made git and grep treat the file as binary. Fixed.bodyskinexample:missing(TSV of what is still missing) andheadsmodes.Tests: sixng-core lib 310 passed.