reikotrains-1.1.1
Curse Maven Snippet
What's new
- Reported on issue #1 with just a screenshot: an express gone down a branch, its tender left on the other line.
- Cause: the cars behind followed
head.routes(which way the front went at each junction), which isn't saved, and is cleared by couple/uncouple/split/turntable settle/dropLeader. A train saved (or unloaded) partway over a junction split when it set off: the tender took the straightest way, still coupled across two lines. - Fix (
Trains.move): bogies walk from the front of the motion back; each follower's chooser (follow) takes the option leading to the bogie just ahead (Trains.distanceTo, a search bounded by 2 × longest half-length + gap + move + 2);routes, then straightest, only as fallback. Safety net intickTrain: coupled cars whose centres are more than halfLengths + BUFFER_GAP +SPLIT_SLACK(2) apart are uncoupled (split), and the back part stops.
This mod has no additional files