[2.0.12] Asteroid collector "Read content" signal includes content in its hand
Posted: Wed Oct 30, 2024 1:14 am
I want to make the crusher into "Set recipe" mode to automatically crush whatever is available inside an asteroid collector.
For this simple automation, I put an inserter to pull items from the asteroid collector into the crusher; connect a wire between the crusher and the asteroid collector; and set the asteroid collector's mode to "Read content" and the crusher "Set recipe".
However, this sometimes doesn't work reliably. Sometimes when the asteroid collector is seemingly filled with one or two types of asteroid chunks, where the "Read content" signal output seems to include asteroid chunks that are not inside the asteroid collector's inventory. Upon checking I found that the asteroid chunks still in the claw of the collector is also included in the signal. This mechanism can block the automation from working in the expected way because the inserter can only pull items from the collector's inventory.
I can think of two ways to fix it. Either the "Read content" signal should not count an asteroid chunk until it shows up available in the asteroid collector for pulling. Or, adjust the "Set recipe" logic to pick the strongest signal as suggested in viewtopic.php?f=6&t=116694.
For this simple automation, I put an inserter to pull items from the asteroid collector into the crusher; connect a wire between the crusher and the asteroid collector; and set the asteroid collector's mode to "Read content" and the crusher "Set recipe".
However, this sometimes doesn't work reliably. Sometimes when the asteroid collector is seemingly filled with one or two types of asteroid chunks, where the "Read content" signal output seems to include asteroid chunks that are not inside the asteroid collector's inventory. Upon checking I found that the asteroid chunks still in the claw of the collector is also included in the signal. This mechanism can block the automation from working in the expected way because the inserter can only pull items from the collector's inventory.
I can think of two ways to fix it. Either the "Read content" signal should not count an asteroid chunk until it shows up available in the asteroid collector for pulling. Or, adjust the "Set recipe" logic to pick the strongest signal as suggested in viewtopic.php?f=6&t=116694.