Train pathfinding misses reversing oppertunities

Trains
HunterNL [github] · 3 months ago

Issue description

Train pathfinding only seems to consider reversing at the end of track when it could be significantly faster to reverse on any bidirectional piece of track. Attaching a dummy spar track forces pathfinding to consider it for reversing results in the expected behaviour.

Note how one screenshot has trains driving all the way to the dead end instead of reversing eagerly. The other screenshot adds a dummy spar track that results in a shorter route

Reproduction steps

  1. Build and run a train line between two stations that requires reversing
  2. Observe trains not taking the quickest path

Game version and build number

v0.8.6 (b609)

Operating system

Linux

Attachments

Image
Image

47 Showing 1–1 of 1