automatic parameterized trainstation blueprint book using interrupts

Smart setups of railway stations, intelligent routing, solutions to complex train-routing problems.
Please provide - only if it makes sense of course - a blueprint of your creation.
this_dude_553
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Jan 19, 2025 10:55 am
Contact:

automatic parameterized trainstation blueprint book using interrupts

Post by this_dude_553 »

I suppose there must be quite a few of these already but I couldnt really find one that scratched my itch of wanting a train setup where the requests get sent to the trains and they just go and pickup what is needed and deliver to where it is needed, so I set out to try and build it myself and five hours later I now understand why I couldnt find it, but here is what I've come up with so far:


the green signal on the radars are all the requests these get passed on to any trains in the depot, the red signal is communication between the pickup and drop stations to make sure a request can be fulfilled (yes i know, requests on the red line and supply on the green line would have been better, i tried to swap them but that broke everything and I cant be bothered right now, perhaps later this week xd)

the request station does most of the compute, it sends out a request if the storage is less than a full train load, sets priority based on how empty it is, but it only sends the request out if there is a supply (pickup) station that is sending out a signal for that material on the red radar wire, other than that its just the regular train limit compute and stuff

the supply station checks if it has any supplies and sends out a signal for that supply on the red wire if it has, or if there is a train currently at the station, this last condition is to ensure that the request doesnt get closed once the last train gets filled with the last supplies, this caused it to get stuck at the supply station with nowhere to go, it also sets its priority based on how full it is, to ensure a higher chance of full trains, and it does the standard train limit logic

the trains have a few simple interrupts, essentially refuel, go to pickup and then dropoff if a request signal comes in, and wait at the depot otherwise

there is still one thing thats bugging me and that is that each train has to go back to the depot to receive a new order once it has completed its delivery, ideally I'd want the drop stations to also be able to pass requests on the network onto the trains, so they can go straight to the next rquest after completing a delivery, but I cant get it to work without also accidentally passing signals like letters and the own item signal that gets processed at that station, still trying to figure that one out

the depot really only needs one radar and then you can just connect all the depot stations with a green wire

in the parameters for the pickup and dropoff station you have to set what the station is supplying or requesting, the amount of chests in the station, the amount of wagons the station can have and the max train capacity of the station, please note that if you want to have stations with different lengths of wagons you will have to change their names and the interrupts in the trains otherwise it will most likely break, and even if you change the names, it wont really work well with mixed train lengths i believe since the request signal sent out wont include the train length of the station that is sending out a request....
yeah now that I'm typing that out I realize it will defenitely break, dont mix train lengths lol

I hope my first post here is of use, and any suggestions are always welcome, I believe i can still improve on my circuit skills, but I think its time to get back to my playthrough, this testworld tangent has taken enough factory expansion time off my hands now
Post Reply

Return to “Railway Setups”