Advanced item request for space platforms
Posted: Thu Jan 16, 2025 12:19 am
Hi everyone!
After hundreds of hours in Factorio I fully understand logistic networks and can use them to manage most of the tasks in my factory. After Space Age was released I also managed to semi-automate building a space platform and set up automatic cargo routes between planets. However, I came across a conundrum with this specific situation:
1. Space platform circulate constantly between Nauvis and another planet.
2. When the platform arrives to the other planet it requests two different items. I want both of them to be delivered in ANY available quantity ONCED (it can be two rockets - one for each type of item, so it would be easier) and then continue travelling through space.
3. When arriving at the second location all items from the first location are dumped, the space platform requests specific quantities of particular items (basic replenishment of rocket part for the other planet) and the cycle begins anew...
Step 2 is the problematic one...
I managed to achieve half of it using this approach:
1. Setting the space platform request for each item to be 100k (or any other large number to fill the rocket) but setting the new minimal cargo to 1. In this case, even if the rocket won't be fully filled it can still go. The parameters for a space platform leaving the planet is to have at least 1 item of each type (it's not perfect as I wanted the space platform to circulate between planets even if production of one of the items would halt) so after one shipment of each item platform may go.
This caused a problem cause even if the Silo will automatically receive requests for those items. The rocket will not wait for the robots to fill the silo with all available items but after the first robot reaches the silo, the rocket will start with this one item. If the silo would have the option to automate the start of the rocket then I could play with hand-made "inactivity' condition. For example: if there was no change in cargo for 5 seconds (all robots delivered their packages) then start the rocket. But, there is no way to trigger the rocket to start with the signals so this solution won't work.
Another problem is an "endless race of new rockets". The time from rocket engine ignition to cargo reaching a platform is exactly 30s. By that time a new rocket will emerge from the silo and will initiate a new ignition. As a result the platform will never leave as there is always a new rocket with one item reaching it.
I tried stopping loading silos after each rocket start to prevent that. I thought that for a split second after each start a silo will be completely empty and I can start a timer from that moment for 31s so the platform may go after receiving the first cargo.
However, another problem occurred: if the buffer was full the inserter will hold extra excess material and will insert it IMMIEDIETLY after the start so the silo is never empty and the timer will not start.
I watched many videos and tutorials about managing space platforms but I couldn't find a solution.
To finalise my question:
"How to automate space platform to request all available items of a given type and then leave the planet immediately after receiving first rocket shipment of it."
(Plus it would be nice if a space platform could also recognise when there are no available items and leave the planet immediately but I guess that the only solution to this is a simple waiting time condition)
Thanks in advance for all the help, I'm really curious about your ideas.
After hundreds of hours in Factorio I fully understand logistic networks and can use them to manage most of the tasks in my factory. After Space Age was released I also managed to semi-automate building a space platform and set up automatic cargo routes between planets. However, I came across a conundrum with this specific situation:
1. Space platform circulate constantly between Nauvis and another planet.
2. When the platform arrives to the other planet it requests two different items. I want both of them to be delivered in ANY available quantity ONCED (it can be two rockets - one for each type of item, so it would be easier) and then continue travelling through space.
3. When arriving at the second location all items from the first location are dumped, the space platform requests specific quantities of particular items (basic replenishment of rocket part for the other planet) and the cycle begins anew...
Step 2 is the problematic one...
I managed to achieve half of it using this approach:
1. Setting the space platform request for each item to be 100k (or any other large number to fill the rocket) but setting the new minimal cargo to 1. In this case, even if the rocket won't be fully filled it can still go. The parameters for a space platform leaving the planet is to have at least 1 item of each type (it's not perfect as I wanted the space platform to circulate between planets even if production of one of the items would halt) so after one shipment of each item platform may go.
This caused a problem cause even if the Silo will automatically receive requests for those items. The rocket will not wait for the robots to fill the silo with all available items but after the first robot reaches the silo, the rocket will start with this one item. If the silo would have the option to automate the start of the rocket then I could play with hand-made "inactivity' condition. For example: if there was no change in cargo for 5 seconds (all robots delivered their packages) then start the rocket. But, there is no way to trigger the rocket to start with the signals so this solution won't work.
Another problem is an "endless race of new rockets". The time from rocket engine ignition to cargo reaching a platform is exactly 30s. By that time a new rocket will emerge from the silo and will initiate a new ignition. As a result the platform will never leave as there is always a new rocket with one item reaching it.
I tried stopping loading silos after each rocket start to prevent that. I thought that for a split second after each start a silo will be completely empty and I can start a timer from that moment for 31s so the platform may go after receiving the first cargo.
However, another problem occurred: if the buffer was full the inserter will hold extra excess material and will insert it IMMIEDIETLY after the start so the silo is never empty and the timer will not start.
I watched many videos and tutorials about managing space platforms but I couldn't find a solution.
To finalise my question:
"How to automate space platform to request all available items of a given type and then leave the planet immediately after receiving first rocket shipment of it."
(Plus it would be nice if a space platform could also recognise when there are no available items and leave the planet immediately but I guess that the only solution to this is a simple waiting time condition)
Thanks in advance for all the help, I'm really curious about your ideas.