Vehicles: lamp colours from the light archetypes #84
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!84
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/84/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 22:10 UTC · original
holdmysocks:claude/lamp-colours→master· +212 −15 · 4 files · 1 commits · merged 2026-11-23 22:24 UTCWhat
ba860a07) names a light set (066532dd) of a light archetype (ea42cb63). In the library the reference is the set name in the high half and the archetype's name hash in the low half; in the packs it is the archetype's 64-bit id.82d6fc83: id at +0, name at +0x74) whose extension (7af058f7) holds named light sets (76402c3c) of lights (f54b227b) with a colour and an intensity. The vehicles' 55 light archetypes share one resource.vehlightsfinds that resource by scanning levels.rpf's meta resources (about two minutes, once) and keeps the table in<work>/index/vehicle_light_archetypes.json. If the first resource found does not cover every archetype the lamps name, all resources are read.vehicles.jsonis format 10:lights.lamp_lightsgives each lamp bone[RRGGBB, intensity](the set's brightest light). Lamp sets are also reached through the parts' link records (da592d57.dd466dfe).Checked
cargo test -p sixng-core -p sixng-gui: 156 passed.Not decoded / not done