Vehicle colours: each configuration's wear levels (ladder entry per part id) #291
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!291
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/291/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-25 15:50 UTC · original
holdmysocks:wear-levels→master· +127 −8 · 2 files · 1 commits · merged 2026-11-25 16:31 UTCWhat
wear,wear_interior,wear_engine,wear_wheelsand six unnamed ones carry level modifiers (08b2439a). Each names a wear channel, a level 0 to 5 and a primer set mask. Bindings with thewearflag (75939b79, joaat "wear") give each part id its wear channel.Tables::wear_levels(vehicle_parts.json FORMAT 23): model → configuration key → each part id's level and primer mask (256 x 4 hex digits,ffff= none).part_colours.wear_recordsgetslevels_by_configandlevels_default(the levels most configurations give). The level indexes the ladder'smaterialPresetsandwearPresets. EXPORT_VERSION 28. The note in model.json says so.Checked
wear_levels_follow_the_wear_bindings; workspace tests pass.presets.Not decoded / not done
2ae7eec3,rainHash) is only on trucks with beds or boxes (biff, rubble, tiptruck, mule, towtruck, benson, iota, mb210). Its six values name no library record. Dirt is most likely set at run time.vehicle_parts.jsonat FORMAT 22 are rebuilt on first use, so this needs the same coordination with BeamNG as the format 22 change.