Game liveries: one option per brand slot, as the game fits it #459

Manually merged
github merged 2 commits from github-bot/gh-459 into gh-pr/459/base 2026-11-27 05:54:55 +00:00 AGit
Owner

@⁠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 UTC

A 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.
  • Viewer: putting on a brand fits one variant, option k of every slot with several options. The Game livery menu has a button per variant, and --livery-brand takes NAME:k (k from 1). The status line says which variant is on.
  • The viewer's brand cache is renamed so the new fields are read.

Tests

  • cargo test -p sixng-core vehstickers: 2 pass. cargo test -p sixng-gui: 53 pass.
  • Rendered the Rhode with variants 1 and 2. Each draws its own set: small white lettering for 1, a red swoosh with a red and blue stripe for 2.

Not changed

  • Which option the game picks is random by the probabilities. The viewer defaults to the first option.
  • The Buffalo gang brands have two such slots (20 and 9 options). Their zones 93-99 are still on no geometry.
**@⁠holdmysocks** on GitHub · 2026-11-27 04:50 UTC · [original](https://github.com/holdmysocks/SixNG/pull/459) `holdmysocks:brand-variants` → `master` · +82 −42 · 2 files · 2 commits · merged 2026-11-27 05:52 UTC A 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. - Viewer: putting on a brand fits one variant, option k of every slot with several options. The Game livery menu has a button per variant, and `--livery-brand` takes `NAME:k` (k from 1). The status line says which variant is on. - The viewer's brand cache is renamed so the new fields are read. ## Tests - `cargo test -p sixng-core vehstickers`: 2 pass. `cargo test -p sixng-gui`: 53 pass. - Rendered the Rhode with variants 1 and 2. Each draws its own set: small white lettering for 1, a red swoosh with a red and blue stripe for 2. ## Not changed - Which option the game picks is random by the probabilities. The viewer defaults to the first option. - The Buffalo gang brands have two such slots (20 and 9 options). Their zones 93-99 are still on no geometry.
A brand's slot can list several parts, each with a probability; the game
fits one. The export kept every option, so the Rhode police brand drew its
six decal sets (one inherited slot, 16.7 % each) on top of each other.

liveries.json (format 4) now gives each sticker its slot, option index,
option count and probability. The viewer puts on one variant: option k of
every slot with several. The Game livery menu offers each variant, and
--livery-brand takes NAME:k.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 04:54:00 +00:00
github-bot changed target branch from master to gh-pr/459/base 2026-11-27 05:54:54 +00:00
github manually merged commit a652cc8384 into gh-pr/459/base 2026-11-27 05:54:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.