Vehicles: name a record with no model after its chassis model (the semi-trailer trailers and 8 more) #523

Manually merged
github merged 4 commits from github-bot/gh-523 into gh-pr/523/base 2026-11-28 12:34:23 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 02:52 UTC · original
holdmysocks:truck-box → master · +69 −5 · 2 files · 4 commits · merged 2026-11-28 12:33 UTC

Nine vehicles had no configurations, palettes or game liveries in the viewer, the semi-trailer trailers among them. Their records were filed under a name with no model. This names each one after the model its chassis part fits. 715 brand stickers become placeable.

Builds on PR 515 (it reuses records_from).

Why

  • trailers files its 38 configurations, 44 palettes, parts and 57 liveries (548 stickers) under the gameName trailer. No model has that name, so the record had no model, and the viewer showed a bare chassis with "no vehicle data".
  • The record's chassis part does name the model: its first element is trailers (then trlr_base1..3). The other parts (trlr_box_curt_ext1, trlr_flatbed2, trlr_tnkr ...) carry the box zones 161-188 that the trailer liveries use.
  • Found by the sweep of stickers that land on no model. The Mule and Biff entries of that sweep are not affected: their box zones are on the fitted truck bed (truckbeds_box_02 and the others), which the sweep's configuration 0 did not have. The viewer already places them on a boxed configuration.

Changes

  • vehicles.json (format 20): name_by_chassis. A record with configurations and no model name is named after the model its chassis part's first element is. This happens only when every chassis part of the record names the same known model, and that model has no record of its own. The record moves to that model's hash, and records_from keeps the old hash (its liveries are filed there). The stats list them (named_by_chassis).
  • sixng vehicles: liveries.json keys those hashes' brands by the model's name.

Named

model configurations brands stickers
trailers 38 57 548
trailerbaggage2 16 7 46
metromule 6 5 42
freightcar 3 1 38
metrotrain2 1 2 20
trailerboats2 1 1 11
trailerboats1 6 1 10
bus2_dmg 1 0 0
bus2_frag 2 0 0

Tests

  • New test: a record with no name takes its chassis model; one whose chassis parts name different models, or whose model has a record of its own, stays as it is.
  • cargo test -p sixng-core vehicles::: 4 pass. cargo test -p sixng-gui: 68 pass.
  • sixng vehicles into a scratch folder: the nine above are named. The six merges from PR 515 are unchanged.
  • Rendered trailers (configuration 2) with TRAILERS_BRAND_COASTALSHIPPING. Master shows a bare chassis with "no vehicle data" and "no game livery". With this change it shows the curtain-sided box, 38 configurations, and 7 stickers placed.
**@⁠holdmysocks** on GitHub · 2026-11-28 02:52 UTC · [original](https://github.com/holdmysocks/SixNG/pull/523) `holdmysocks:truck-box` → `master` · +69 −5 · 2 files · 4 commits · merged 2026-11-28 12:33 UTC Nine vehicles had no configurations, palettes or game liveries in the viewer, the semi-trailer `trailers` among them. Their records were filed under a name with no model. This names each one after the model its chassis part fits. 715 brand stickers become placeable. Builds on PR 515 (it reuses `records_from`). ## Why - `trailers` files its 38 configurations, 44 palettes, parts and 57 liveries (548 stickers) under the gameName `trailer`. No model has that name, so the record had no model, and the viewer showed a bare chassis with "no vehicle data". - The record's chassis part does name the model: its first element is `trailers` (then `trlr_base1..3`). The other parts (`trlr_box_curt_ext1`, `trlr_flatbed2`, `trlr_tnkr` ...) carry the box zones 161-188 that the trailer liveries use. - Found by the sweep of stickers that land on no model. The Mule and Biff entries of that sweep are not affected: their box zones are on the fitted truck bed (`truckbeds_box_02` and the others), which the sweep's configuration 0 did not have. The viewer already places them on a boxed configuration. ## Changes - `vehicles.json` (format 20): `name_by_chassis`. A record with configurations and no model name is named after the model its chassis part's first element is. This happens only when every chassis part of the record names the same known model, and that model has no record of its own. The record moves to that model's hash, and `records_from` keeps the old hash (its liveries are filed there). The stats list them (`named_by_chassis`). - `sixng vehicles`: liveries.json keys those hashes' brands by the model's name. ## Named | model | configurations | brands | stickers | |---|---|---|---| | trailers | 38 | 57 | 548 | | trailerbaggage2 | 16 | 7 | 46 | | metromule | 6 | 5 | 42 | | freightcar | 3 | 1 | 38 | | metrotrain2 | 1 | 2 | 20 | | trailerboats2 | 1 | 1 | 11 | | trailerboats1 | 6 | 1 | 10 | | bus2_dmg | 1 | 0 | 0 | | bus2_frag | 2 | 0 | 0 | ## Tests - New test: a record with no name takes its chassis model; one whose chassis parts name different models, or whose model has a record of its own, stays as it is. - `cargo test -p sixng-core vehicles::`: 4 pass. `cargo test -p sixng-gui`: 68 pass. - `sixng vehicles` into a scratch folder: the nine above are named. The six merges from PR 515 are unchanged. - Rendered `trailers` (configuration 2) with TRAILERS_BRAND_COASTALSHIPPING. Master shows a bare chassis with "no vehicle data" and "no game livery". With this change it shows the curtain-sided box, 38 configurations, and 7 stickers placed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 02:56:48 +00:00
github-bot changed target branch from master to gh-pr/523/base 2026-11-28 12:34:21 +00:00
github manually merged commit 014e78122c into gh-pr/523/base 2026-11-28 12:34:23 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.