Parametrised Train Network (PTN)
Image
Description
v 1.1 - Added a missing wire to fluid depots, fixed fluid train interrupts (thanks joepiejaapie on YT for the report)
v 1.2 - Updated reciever blueprint, which removes the first limitation.
The PTN system intends to replicate the behaviour of the LTN mod, thanks to blueprint parameterisation, schedule interrupts, and a bunch of combinators.
Train stops are separated into Depots, Requesters, and Providers. Requesters read the contents of their buffer chests and send a request through the radar system when the buffer falls below a certain threshold. Trains, waiting at Depots, read the request, search for a Provider station supplying that item, and deliver it to the Requester, before returning to the Depot to begin the cycle again.
Thanks to blueprint parameterisation, stops can be easily configured based on item, train length, buffer size, and waiting bays. Expanding the system is as simple as placing down a blueprint and wiring in the buffer chests. The combinators will handle all the math.
There are three main limitations to this system:
- Cannot handle items with a stack size of 1 (asteroid chunks, rocket silos, etc.) - REMOVED VIA UPDATE
- All depots of the same type must be in the same location
- All trains of the same type must be the same length.
I have design ideas in the works to remove the second two limitations. This blueprint and description will be updated in time.
I made a video demonstrating the system here: https://www.youtube.com/watch?v=Wx8yc6P6q6A&t=2s&ab_channel=Yorven