Materials: weapon models, tiles, parameter names #110
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!110
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/110/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 03:29 UTC · original
holdmysocks:claude/weapon-presets→master· +197 −43 · 4 files · 5 commits · merged 2026-11-24 03:44 UTCFollow-up to #107.
What this adds
873ef899is the joaat of the component's model name, so the index now maps weapon models to presets (weapon_models);Index::weapon_presets(name)looks one up (LOD suffix ignored).sixng materials --weapon <regex>lists matching models with their presets and the 8 sub-material colours. Variant records now keep the part they recolour (c763edb4) beside the preset.951cf6e3->83021d7a) is decoded: a tile holds the tiling surface texturestilematerialmapandtilenormalmap. A base material names its tile (TileName), a preset can override it per sub-material (TileNameOverrides).Library::tileand the index (tiles) give per preset and sub-material: tile, both textures,tilescale,tilerotation. The fourth map (transmission profiles) is read but not interpreted.names.rs;--presetoutput shows parameter names where known.sixng materialsis run again).\tand\r).What was checked
w_ar_adb_01is 1f1f1f on all sub-materials; its barrel mixes six colours.tile*,tintmask*,engraving*,dirt*,sheen*) and fit the values (tilescale100 to 340,tilerotationin radians). The three-word names kept are those in a family (tintmask...,tintablepattern...,...blendamount); single three-word hits outside a family were dropped as likely chance matches, excepttilepresetflags.cargo test -p sixng-core: 148 passed (the matlib tests now also cover tiles and the weapon model lookup; the names test covers seven of the new hashes).ped-variationsstill fillspreset_colours(1,277 entries on the lead character's wardrobe resource).What is not decoded or not done
fd540657), of the sub-material field (aadeb53e) and of the two weapon preset fields.Tint0..2: over 4,607 tagged items the colour tag fits entry 0 (mean RGB distance 71) better than entry 1 (109) in every tint group.