Game liveries: one option per brand slot, as the game fits it #459
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!459
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-459"
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-27 04:50 UTC · original
holdmysocks:brand-variants→master· +82 −42 · 2 files · 2 commits · merged 2026-11-27 05:52 UTCA brand's slot can list several parts, each with a probability, and the game fits one of them. The livery export kept every option, so brands drew all their alternatives on top of each other. 604 of 1,898 brands have such slots, with 2 to 40 variants.
Example: the Rhode police brand inherits one slot of six decal sets at 16.7 % each. Before this change, all six were drawn at once.
Changes
vehstickers(liveries.json format 4): each sticker gives its slot, its option index, the slot's option count and its probability.--livery-brandtakesNAME:k(k from 1). The status line says which variant is on.Tests
cargo test -p sixng-core vehstickers: 2 pass.cargo test -p sixng-gui: 53 pass.Not changed