Vehicles: number plates follow their switches #223

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

@⁠holdmysocks on GitHub · 2026-11-24 23:40 UTC · original
holdmysocks:claude/number-plates → master · +30 −12 · 1 files · 2 commits · merged 2026-11-24 23:53 UTC

What

Number plates, plate frames and plate mounts now follow their switches instead of being put on every plate bone the vehicle has. Before, a plate part fitted all four of its elements wherever the bone existed, so most vehicles showed a front plate the data does not ask for, and the export listed two "the vehicle has no bone" lines per plate part.

The four plate bones are plate_f (03e3e512), plate_r (567b0a43), mod_plate_f (a0976fcb) and mod_plate_r (8e174ab3). Every plate, frame and mount part of the library has two switches over them:

  • rear: default = the element on plate_r; with key c623bf2c the one on mod_plate_r; with 68bd62ca nothing.
  • front: no default; with key 2aef799d the element on plate_f; with 2aef799d + 7be534e0 the one on mod_plate_f; with 503c4352 nothing.

The keys are set by fitted parts: c623bf2c by rear bumpers (slot bumper_r), pickup beds and boots; 7be534e0 by front bumpers (slot e7a4b1f5 = joaat bumper_f); 2aef799d and 503c4352 by parts of the vehicle (108 and 36 vehicles).

vehicles.rs:

  • a library switch whose elements are all on plate bones is taken as it is (default and empty options included); the elements it governs leave the part's element list, as for the side guards;
  • a switch several parts name is given once per part (the plate switches are shared by the plate parts; before, only the first part got them).

vehicles.json FORMAT 16 -> 17 (the viewer rebuilds the file). Switch records in it go from 1,085 to 2,303. No change in the export or viewer code: both already pick a switch's element from the fitted parts' keys.

Checked

  • Count over 4,063 configurations: 2,934 have a plate part; 2,470 get a rear plate only, 464 a front and a rear plate; 326 take the moved rear position. No plate part keeps an element on a plate bone.
  • sixng vehicle (reclaimerclassic 0 and 4, bobcatxl 0, dominator 0): one plate and one frame or mount, each "switch ...", no plate lines under not_fitted (before: two of each fitted, two "no bone" lines each).
  • Viewer, front and rear, before/after: reclaimerclassic, bobcatxl and dominator lose the front plate and keep the rear one in place; declasse500 (its parts set 2aef799d) shows front and rear plates.
  • cargo test --workspace --locked passes.

Not decoded / not done

  • The names of the keys are not known, nor what sets 68bd62ca (no part does).
  • Whether the game really shows no front plate without 2aef799d cannot be checked against the game here; it is what the switch says.
  • 63 other library switches with a default or an empty option (not on plate bones) are still left out; their parts fit every element as before.
  • Exports and renders were made with this change on the commit before the scanner's index version change (PR 221), because the shared index is still the older version; the code is the same.
  • Only four vehicles were rendered. The Metal renderer was not built or run. No unit test.
**@⁠holdmysocks** on GitHub · 2026-11-24 23:40 UTC · [original](https://github.com/holdmysocks/SixNG/pull/223) `holdmysocks:claude/number-plates` → `master` · +30 −12 · 1 files · 2 commits · merged 2026-11-24 23:53 UTC ## What Number plates, plate frames and plate mounts now follow their switches instead of being put on every plate bone the vehicle has. Before, a plate part fitted all four of its elements wherever the bone existed, so most vehicles showed a front plate the data does not ask for, and the export listed two "the vehicle has no bone" lines per plate part. The four plate bones are `plate_f` (`03e3e512`), `plate_r` (`567b0a43`), `mod_plate_f` (`a0976fcb`) and `mod_plate_r` (`8e174ab3`). Every plate, frame and mount part of the library has two switches over them: - rear: default = the element on `plate_r`; with key `c623bf2c` the one on `mod_plate_r`; with `68bd62ca` nothing. - front: no default; with key `2aef799d` the element on `plate_f`; with `2aef799d` + `7be534e0` the one on `mod_plate_f`; with `503c4352` nothing. The keys are set by fitted parts: `c623bf2c` by rear bumpers (slot `bumper_r`), pickup beds and boots; `7be534e0` by front bumpers (slot `e7a4b1f5` = joaat `bumper_f`); `2aef799d` and `503c4352` by parts of the vehicle (108 and 36 vehicles). `vehicles.rs`: - a library switch whose elements are all on plate bones is taken as it is (default and empty options included); the elements it governs leave the part's element list, as for the side guards; - a switch several parts name is given once per part (the plate switches are shared by the plate parts; before, only the first part got them). `vehicles.json` `FORMAT` 16 -> 17 (the viewer rebuilds the file). Switch records in it go from 1,085 to 2,303. No change in the export or viewer code: both already pick a switch's element from the fitted parts' keys. ## Checked - Count over 4,063 configurations: 2,934 have a plate part; 2,470 get a rear plate only, 464 a front and a rear plate; 326 take the moved rear position. No plate part keeps an element on a plate bone. - `sixng vehicle` (reclaimerclassic 0 and 4, bobcatxl 0, dominator 0): one plate and one frame or mount, each "switch ...", no plate lines under `not_fitted` (before: two of each fitted, two "no bone" lines each). - Viewer, front and rear, before/after: reclaimerclassic, bobcatxl and dominator lose the front plate and keep the rear one in place; declasse500 (its parts set `2aef799d`) shows front and rear plates. - `cargo test --workspace --locked` passes. ## Not decoded / not done - The names of the keys are not known, nor what sets `68bd62ca` (no part does). - Whether the game really shows no front plate without `2aef799d` cannot be checked against the game here; it is what the switch says. - 63 other library switches with a default or an empty option (not on plate bones) are still left out; their parts fit every element as before. - Exports and renders were made with this change on the commit before the scanner's index version change (PR 221), because the shared index is still the older version; the code is the same. - Only four vehicles were rendered. The Metal renderer was not built or run. No unit test.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:19:23 +00:00
github manually merged commit 93b24bbf60 into gh-pr/223/base 2026-11-26 20:19:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.