Vehicles: merge a chassis-named record into its model's empty record (tankercar, freight) #541
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!541
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-541"
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 05:18 UTC · original
holdmysocks:chassis-merge→master· +50 −21 · 1 files · 5 commits · merged 2026-11-28 13:05 UTCThe freight tanker car and the freight car now open with their configurations, palettes, parts and game liveries. That makes 403 more brand stickers placeable.
Builds on PR 523, which builds on PR 515.
Why
freightand point at each other's handlingIds. The handlingId merge in PR 515 therefore leaves these records apart, and so does the chassis naming in PR 523, because the model already has a record.tankercarandfreighteach had a record with only a model info. Their configurations, palettes, parts and liveries sat under hashes with no model: 045b363c (303 stickers) and acfad21b (100).tankercar, and acfad21b's isfreight.Changes
name_by_chassis: when the chassis model already has a record with no configurations and no parts, the record is merged into it. It fills what the record leaves unset, joins lists both have, and addsrecords_from. A model record with configurations or parts of its own still stays as it is.merge_into, used by both.Tests
cargo test -p sixng-core vehicles::: 4 pass.cargo test -p sixng-gui: 68 pass.sixng vehiclesinto a scratch folder: tankercar has 2 configurations, 3 palettes, 13 parts and 3 brands (303 stickers). freight has 1 configuration, 5 palettes, 11 parts and 4 brands (100 stickers). The nine records named in PR 523 and the six merges from PR 515 are unchanged.