Original Post — Direct link

Posting this because I've only recently put all of the puzzle pieces together - particularly depots. Is there a simpler way to get trains to route properly in vanilla?

  1. Name all of your loading/unloading stations the same, e.g. [L] Iron, [U] Coal.

  2. Use circuit logic at each station to disable it if either enough items are available/needed to call a train, or a train is stopped at the station. Do this at both loading and unloading stations.

  3. To prevent trains from stopping mid-route when all of their destinations are disabled, build a depot using dummy stations and pathfinding hackery. It looks something like this

    . One exit is a dead-end with a dummy station for every normal station on the network. The dummy stations are always enabled but there's a series of signals before the stations that are wired to always be red. Use as many signals as you can fit. Each of the signals adds 1000 to the estimated distance, so trains should only try to path to a dummy station if all other options are disabled. The train will sit in the depot until a non-dummy station is enabled, repath after a few seconds, and then leave.

External link →
about 4 years ago - /u/Klonan - Direct link

Originally posted by d7856852

As far as I can tell, the change in 1.1 only removes the need to disable stations with stopped trains and the need to build a depot. You still need some circuit logic at every station. The depot is very simple to build and you only need to do it once per map.

I'm actually pretty ambivalent about 1.1 and I'm annoyed that train mechanics have been so obtuse (arguably broken) for years.

You won't necessarily need circuit network at each stop in 1.1, it depends on the design of your system.






Recent Factorio Posts