Vehicles: stock alternatives of the chassis and other parts (switches) #131

Manually merged
github merged 2 commits from gh-pr/131/head into gh-pr/131/base 2026-11-26 20:12:11 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 06:27 UTC · original
holdmysocks:claude/chassis-alternatives → master · +218 −25 · 3 files · 2 commits · merged 2026-11-24 06:43 UTC

Decodes which stock pieces a vehicle shows: bonnet variants, engine pieces, aerial, light bar and number plate mounts. Until now the chassis part's alternatives were all left out. Linear: SIX-78.

What

  • Switch (6191ddc2): belongs to the part whose modifier list (61e1e572) names it (the chassis part, a bumper ...). It holds a default element (89f7b2c6, 0 = none) and options (99773916), each with a key (3ffe5fbc), a second key (295c3278, 0 = none) and an element (58994e97, 0 = none).
  • Key modifier (b21fa2e2): a key (c3afd061). Parts name key modifiers in their modifier list, in the vehicle's pack and in the shared library. So a fitted part sets keys.
  • Rule used: while its part is fitted, a switch shows the element of the option whose key is set (and whose second key is set, where it has one; such an option goes before one without), else its default element.
  • vehicles.json format 14: per vehicle switches (name, part, default, options) and part_keys (part name to keys, for the pack's own parts and the library parts its configurations name).
  • Viewer: the elements the switches give for the fitted parts are placed with them. Parts without a model that set a key a switch answers to (a front number plate ...) are listed as choices of their own, so a configuration's choice of them reaches the switches.

Checked

  • 142 vehicles have switches, 1,042 in all, 158 with a default element. 399 of 2,187 configurations of those vehicles set a key a switch answers to.
  • Renders against the 0.8.0 build: declasse500 gets its air filter and intake manifold (default elements) under the bonnet; dominator's configuration 2 gets the front plate bracket (its plate part has no model and sets the key); elegy's configuration 10, sultan, comet7 and the 16 trucks and pickups show no fault (rebel gains a roof light mount).
  • cargo test -p sixng-core -p sixng-gui passes.

Not decoded / not done

  • The rule for two matching options is my reading of two vehicles' records (second key present goes first), not checked against the game.
  • 65 configurations set keys that match more than one option of a switch.
  • Switch field f6f1b5b2 (0 in the records read) is not used.
  • A switch is taken to belong to the first part that names it.
  • The choices for parts without a model show the part's name hash, not a readable name.
  • Checked by eye on about 22 vehicles.
**@⁠holdmysocks** on GitHub · 2026-11-24 06:27 UTC · [original](https://github.com/holdmysocks/SixNG/pull/131) `holdmysocks:claude/chassis-alternatives` → `master` · +218 −25 · 3 files · 2 commits · merged 2026-11-24 06:43 UTC Decodes which stock pieces a vehicle shows: bonnet variants, engine pieces, aerial, light bar and number plate mounts. Until now the chassis part's alternatives were all left out. Linear: SIX-78. ## What - **Switch** (`6191ddc2`): belongs to the part whose modifier list (`61e1e572`) names it (the chassis part, a bumper ...). It holds a default element (`89f7b2c6`, 0 = none) and options (`99773916`), each with a key (`3ffe5fbc`), a second key (`295c3278`, 0 = none) and an element (`58994e97`, 0 = none). - **Key modifier** (`b21fa2e2`): a key (`c3afd061`). Parts name key modifiers in their modifier list, in the vehicle's pack and in the shared library. So a fitted part sets keys. - **Rule used:** while its part is fitted, a switch shows the element of the option whose key is set (and whose second key is set, where it has one; such an option goes before one without), else its default element. - `vehicles.json` format 14: per vehicle `switches` (name, part, default, options) and `part_keys` (part name to keys, for the pack's own parts and the library parts its configurations name). - Viewer: the elements the switches give for the fitted parts are placed with them. Parts without a model that set a key a switch answers to (a front number plate ...) are listed as choices of their own, so a configuration's choice of them reaches the switches. ## Checked - 142 vehicles have switches, 1,042 in all, 158 with a default element. 399 of 2,187 configurations of those vehicles set a key a switch answers to. - Renders against the 0.8.0 build: declasse500 gets its air filter and intake manifold (default elements) under the bonnet; dominator's configuration 2 gets the front plate bracket (its plate part has no model and sets the key); elegy's configuration 10, sultan, comet7 and the 16 trucks and pickups show no fault (rebel gains a roof light mount). - `cargo test -p sixng-core -p sixng-gui` passes. ## Not decoded / not done - The rule for two matching options is my reading of two vehicles' records (second key present goes first), not checked against the game. - 65 configurations set keys that match more than one option of a switch. - Switch field `f6f1b5b2` (0 in the records read) is not used. - A switch is taken to belong to the first part that names it. - The choices for parts without a model show the part's name hash, not a readable name. - Checked by eye on about 22 vehicles.
- A switch record (6191ddc2) belongs to the part whose modifier list
  names it and holds a default element and options of (key, second key,
  element). A fitted part sets keys through the key modifiers (b21fa2e2)
  in its modifier list. While its part is fitted, a switch shows the
  element of the option whose keys are set, else its default.
- vehicles.json (format 14): per vehicle `switches` and `part_keys`.
- Viewer: the elements the switches give for the fitted parts are placed
  with them (engine pieces, plate and light bar mounts, bonnet variants).
  Parts without a model that set a key a switch answers to are offered
  as choices, so a configuration's choice of them reaches the switches.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:12:09 +00:00
github manually merged commit cee6c28152 into gh-pr/131/base 2026-11-26 20:12:11 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.