Vehicles: part colours for vehicles in shared tables, no gradient map as base colour #111

Manually merged
github merged 1 commit from gh-pr/111/head into gh-pr/111/base 2026-11-26 20:10:39 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 03:30 UTC · original
holdmysocks:claude/merged-part-sets → master · +64 −16 · 2 files · 1 commits · merged 2026-11-24 03:37 UTC

Two faults from the whole-fleet check: journey had no part colours, and journey and pulsebike had olive parts.

What

  • Vehicles without a pack of their own. vehcolour read a vehicle's variation sets (the link to its part set) and its configurations only from a pack holding a single model. Both records name their vehicle, so they are now also read from the tables that hold several vehicles. journey has no pack of its own and now gets its part set and 12 configuration looks.
  • Configurations gathered once. A vehicle's configurations can sit in more than one resource. They are now collected across all of them (each part list once) and applied to the base set once. Two unnamed vehicles with two packs had their modifiers applied twice, the second time on an already modified set.
  • Gradient map as base colour. On the vehicle two-layer shaders the base colour slot often binds the layer's gradient-position map (lyr0diffusetex: linear data whose green picks the palette column; mean about 128, 120, 21). Shown as a colour it turned parts olive. A base texture that also sits in a layer slot of any material of the model as linear data is no longer used as base colour. sRGB textures in that slot and ones with an alpha channel in use (the decal shaders) are left alone.
  • vehicle_parts.json format 10, part_colours_version 11 (vehicles are exported again on first open).

Checked

  • Tables before and after: 320 vehicles with a part set (319 before; the new one is journey), no vehicle lost a configuration, part sets otherwise identical except the two vehicles that had been applied twice (5 of their configurations change).
  • Renders: journey has a white roof, blue stripes (the configuration's paint), dark lower body and chrome bumpers where it was blue and olive; pulsebike's fork, headlight and exhausts are chrome where they were olive; comet7, sultan, benson and rebel look as before.
  • cargo test -p sixng-core -p sixng-gui: 156 passed (no new tests).

Not decoded / not done

  • rhino's camouflage and other liveries: still not decoded (decal layers and livery modifiers are not read).
  • pulsebike still looks unfinished: large body panels are missing, which is a model / parts question, not looked into here.
  • Whether an sRGB texture in the layer slot is a real colour (journey has a brown one) is assumed from its format.
**@⁠holdmysocks** on GitHub · 2026-11-24 03:30 UTC · [original](https://github.com/holdmysocks/SixNG/pull/111) `holdmysocks:claude/merged-part-sets` → `master` · +64 −16 · 2 files · 1 commits · merged 2026-11-24 03:37 UTC Two faults from the whole-fleet check: journey had no part colours, and journey and pulsebike had olive parts. ## What - **Vehicles without a pack of their own.** `vehcolour` read a vehicle's variation sets (the link to its part set) and its configurations only from a pack holding a single model. Both records name their vehicle, so they are now also read from the tables that hold several vehicles. journey has no pack of its own and now gets its part set and 12 configuration looks. - **Configurations gathered once.** A vehicle's configurations can sit in more than one resource. They are now collected across all of them (each part list once) and applied to the base set once. Two unnamed vehicles with two packs had their modifiers applied twice, the second time on an already modified set. - **Gradient map as base colour.** On the vehicle two-layer shaders the base colour slot often binds the layer's gradient-position map (`lyr0diffusetex`: linear data whose green picks the palette column; mean about 128, 120, 21). Shown as a colour it turned parts olive. A base texture that also sits in a layer slot of any material of the model as linear data is no longer used as base colour. sRGB textures in that slot and ones with an alpha channel in use (the decal shaders) are left alone. - `vehicle_parts.json` format 10, `part_colours_version` 11 (vehicles are exported again on first open). ## Checked - Tables before and after: 320 vehicles with a part set (319 before; the new one is journey), no vehicle lost a configuration, part sets otherwise identical except the two vehicles that had been applied twice (5 of their configurations change). - Renders: journey has a white roof, blue stripes (the configuration's paint), dark lower body and chrome bumpers where it was blue and olive; pulsebike's fork, headlight and exhausts are chrome where they were olive; comet7, sultan, benson and rebel look as before. - `cargo test -p sixng-core -p sixng-gui`: 156 passed (no new tests). ## Not decoded / not done - rhino's camouflage and other liveries: still not decoded (decal layers and livery modifiers are not read). - pulsebike still looks unfinished: large body panels are missing, which is a model / parts question, not looked into here. - Whether an sRGB texture in the layer slot is a real colour (journey has a brown one) is assumed from its format.
- vehcolour read a vehicle's variation sets and configurations only from
  a pack with a single model. Both name their vehicle, so they are now
  read from the tables that hold several vehicles too: journey, which has
  no pack of its own, gets its part set. A vehicle's configurations are
  gathered across all resources and applied once (two vehicles with two
  packs had theirs applied twice, on an already modified set).
- On the vehicle two-layer shaders the base colour slot often binds the
  layer's gradient-position map (lyr0diffusetex, linear data). Shown as a
  colour it turned parts olive (journey's roof, pulsebike's fork and
  exhausts). Such a texture is no longer taken as base colour; sRGB
  textures and ones with alpha in use (decals) are left alone.

vehicle_parts.json format 10, part_colours_version 11.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:10:37 +00:00
github manually merged commit fad00727aa into gh-pr/111/base 2026-11-26 20:10:39 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.