Vehicles: name a record with no model after its chassis model (the semi-trailer trailers and 8 more) #523
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!523
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-523"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCNine vehicles had no configurations, palettes or game liveries in the viewer, the semi-trailer
trailersamong 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
trailersfiles its 38 configurations, 44 palettes, parts and 57 liveries (548 stickers) under the gameNametrailer. No model has that name, so the record had no model, and the viewer showed a bare chassis with "no vehicle data".trailers(thentrlr_base1..3). The other parts (trlr_box_curt_ext1,trlr_flatbed2,trlr_tnkr...) carry the box zones 161-188 that the trailer liveries use.truckbeds_box_02and 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, andrecords_fromkeeps 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
Tests
cargo test -p sixng-core vehicles::: 4 pass.cargo test -p sixng-gui: 68 pass.sixng vehiclesinto a scratch folder: the nine above are named. The six merges from PR 515 are unchanged.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.