Vehicles: brakes per axle; drum brakes come from the brake slots #220
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!220
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/220/head"
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-24 22:52 UTC · original
holdmysocks:claude/brake-colours→master· +133 −31 · 3 files · 2 commits · merged 2026-11-24 23:04 UTCWhat
Brakes are chosen per axle, and drum brakes are recognised. Before, the viewer and
sixng vehicleonly saw brake models a configuration names by model (brakedisc_*,caliper_*) and put one disc and one caliper on every wheel. A configuration whose brakes come through a part (all drums do) had none of its own, so the viewer borrowed another configuration's: reclaimerclassic's drum-brake pickups showed a sport disc and a red six-pot caliper.Four slot hashes are joaat of plain names:
814a6407brakediscsee557cc2brakediscs_rear98b9b49acalipers_frontc98dbea6calipers_rearA part in one of them has one element (bone 0) naming a
brakedisc_*,drumbrake_*orcaliper_*model by joaat of the name without_hi.vehexport::brake_axles(used by both the export and the viewer):brakediscs/calipers_front;brakediscs_rear/calipers_rear, else what the front has; a rear drum without a rear caliper part gets no caliper.The viewer still borrows another configuration's brakes, but only when the configuration has no brake part at all (before, disc and caliper were borrowed separately, which gave drum configurations a caliper). The export's result gains
wheels.brakes_by_axle; brake-slot parts no longer appear underleft_out.Also in passing: the rear bumper slot
8d48fd33is joaatbumper_r(not used in code here).Checked
brakediscspart never occur together; no slot holds more than one brake model; 1,820 of 1,932 configurations with a named caliper and acalipers_rearpart have a different (smaller) caliper at the rear, e.g. dominator 4-pot front / 2-pot rear, coquette 6-pot / 4-pot.sixng vehicle: reclaimerclassic configuration 0 fitsdrumbrake_001on four wheels and no caliper (before: no brakes, the drum listed underleft_out); configuration 8, dominator 2 and coquette 3 fit one disc on four wheels and the front and rear calipers on their own axles.brakes_per_axle;cargo test --workspace --lockedpasses.Not decoded / not done
calipers_frontpart (44 configurations, e.g. walton: 1-pot stock named, 2-pot in the slot) the named one is taken; which the game uses is not known.439fddacand2ba6699fholdcaliper_rimlight/drumbrake_rimlightmodels (49 configurations); their names and purpose are not known and they are still not fitted.