Vehicles: every shared-part switch with a default follows its keys #227

Manually merged
github merged 1 commit from gh-pr/227/head into gh-pr/227/base 2026-11-26 20:19:41 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 00:25 UTC · original
holdmysocks:claude/part-switches → master · +9 −7 · 1 files · 1 commits · merged 2026-11-25 01:47 UTC

What

PR 223 made the number plates follow their switches. This applies the same rule to every other shared-part switch that has a default or an empty option: it shows its default (or nothing) until a fitted part sets the key of one of its options.

Before, those switches were left out and their parts fitted every element. A box truck got its fridge unit three times (one per wheelbase position), a gear lever two heads, a boat two searchlights.

Plain choices (no default, no empty option) keep the existing safety net: they are taken only when the vehicle has a part that can set one of their keys.

vehicles.json format 18; the viewer rebuilds older files.

Checked

  • New file against the format 17 one: 243 more switches on 57 vehicles, none removed. 224 belong to a part some configuration uses. Over those configurations the switch falls on its default 374 times and on a keyed option 167 times.
  • Groups covered: fridge units (mule, benson, tiptruck), the hanging accessory under a rear bumper (15 pickups), gear lever heads (25 vehicles), police scanner units, truck bed light bars, boat radars and searchlights.
  • Exports with the old and the new file for seven vehicles, pieces compared: mule 27 -> 25 and 22 -> 20, benson 29 -> 27 (two extra fridge units gone each), elegy 24 -> 23 (second lever head), lurepredator 3 -> 2 (second searchlight); yosemite1500, rhode and lowline unchanged. Nothing was added anywhere.
  • Mule with the fridge unit in the viewer: one unit, above the cab.
  • Workspace tests pass.

Not decoded / not done

  • No unit test for the rule itself; it was checked on the game data only.
  • Checked by eye on the mule only. The gear lever heads and the boat parts were compared by piece list, not looked at.
  • The names of the keys and of most of these slots are not known.
  • Tested with a build that reads the current shared index (index version set back locally, not part of this change).
**@⁠holdmysocks** on GitHub · 2026-11-25 00:25 UTC · [original](https://github.com/holdmysocks/SixNG/pull/227) `holdmysocks:claude/part-switches` → `master` · +9 −7 · 1 files · 1 commits · merged 2026-11-25 01:47 UTC ## What PR 223 made the number plates follow their switches. This applies the same rule to every other shared-part switch that has a default or an empty option: it shows its default (or nothing) until a fitted part sets the key of one of its options. Before, those switches were left out and their parts fitted every element. A box truck got its fridge unit three times (one per wheelbase position), a gear lever two heads, a boat two searchlights. Plain choices (no default, no empty option) keep the existing safety net: they are taken only when the vehicle has a part that can set one of their keys. `vehicles.json` format 18; the viewer rebuilds older files. ## Checked - New file against the format 17 one: 243 more switches on 57 vehicles, none removed. 224 belong to a part some configuration uses. Over those configurations the switch falls on its default 374 times and on a keyed option 167 times. - Groups covered: fridge units (mule, benson, tiptruck), the hanging accessory under a rear bumper (15 pickups), gear lever heads (25 vehicles), police scanner units, truck bed light bars, boat radars and searchlights. - Exports with the old and the new file for seven vehicles, pieces compared: mule 27 -> 25 and 22 -> 20, benson 29 -> 27 (two extra fridge units gone each), elegy 24 -> 23 (second lever head), lurepredator 3 -> 2 (second searchlight); yosemite1500, rhode and lowline unchanged. Nothing was added anywhere. - Mule with the fridge unit in the viewer: one unit, above the cab. - Workspace tests pass. ## Not decoded / not done - No unit test for the rule itself; it was checked on the game data only. - Checked by eye on the mule only. The gear lever heads and the boat parts were compared by piece list, not looked at. - The names of the keys and of most of these slots are not known. - Tested with a build that reads the current shared index (index version set back locally, not part of this change).
The number plate rule now covers all shared-part switches that have a
default or an empty option: the default (or nothing) shows until a
fitted part sets an option's key. Before, those parts fitted every
element, so a box truck got its fridge unit three times and a gear
lever two heads. vehicles.json format 18.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:19:40 +00:00
github manually merged commit 305f09e174 into gh-pr/227/base 2026-11-26 20:19:41 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.