Advanced train network (sort of)
Posted: Wed Nov 09, 2016 12:39 pm
I'm currently trying to get an advanced train network going using circuit network.
My previous version (named it MK 1) checks available space at the main station and once there is enough space for a train, it sends a signal to all outposts, how many trains fit in there (all trains have the same size). Any full train at the outpost can then move to the main station and unload. While the trains are on their way, the controller-signal get adjusted accordingly.
Unfortunately, if I didn't require resources for a longer times and all trains are full, they leave at the same time before their departure get registered.
For my mk2 setup, I'm trying to move the intelligent part to the main station.
The idea is, to poll every outpost, how much resources are available, and send a signal to a specific train if there is enough space inside the main station. The polling-part is done I can get the values from a (nearly) infinite amount of outposts (the limit is the avaible space for combinators and the maximal number for a single wire signal).
But I have problems getting those values together with
- total space available space (per resource)
- resources already present
- delivering size (train wagons)
And finally controlling which train should deliver stuff.
Idea was to count the resources packed into the train at the outposts
once the train is full, it becomes available for delivery
When there is enough space avaible, send a signal to the first avaible train to deliver and "reserve" the space incoming train.
Once a train leaves the mainstation, a reserved space get freed again(since a delivery is complete)
My previous version (named it MK 1) checks available space at the main station and once there is enough space for a train, it sends a signal to all outposts, how many trains fit in there (all trains have the same size). Any full train at the outpost can then move to the main station and unload. While the trains are on their way, the controller-signal get adjusted accordingly.
Unfortunately, if I didn't require resources for a longer times and all trains are full, they leave at the same time before their departure get registered.
For my mk2 setup, I'm trying to move the intelligent part to the main station.
The idea is, to poll every outpost, how much resources are available, and send a signal to a specific train if there is enough space inside the main station. The polling-part is done I can get the values from a (nearly) infinite amount of outposts (the limit is the avaible space for combinators and the maximal number for a single wire signal).
But I have problems getting those values together with
- total space available space (per resource)
- resources already present
- delivering size (train wagons)
And finally controlling which train should deliver stuff.
Idea was to count the resources packed into the train at the outposts
once the train is full, it becomes available for delivery
When there is enough space avaible, send a signal to the first avaible train to deliver and "reserve" the space incoming train.
Once a train leaves the mainstation, a reserved space get freed again(since a delivery is complete)