Modified MadZuri's smart unloading getting stuck and nothing unloads
Posted: Wed Nov 21, 2018 4:38 pm
So a while ago I had a problem with my trains where they weren't being fulling unloaded at a station because the chests for the last 2 wagons were full, while the front two wagon chests were completely empty (using provider chests and bots to pull from them). it was then suggested to me to have some cascaded chests such that it would be something like this: Train -> Inserter -> chest -> inserter -> provider Chest, and to have the second inserter setup with some circuit conditions such that they would try to pull evenly from the regular chests. That way if on the provider chests got full, the inserters wouldn't pull from any of the regular chests, because they couldn't all pull evenly from the regular chests. I'm using something similar to the link below
https://www.reddit.com/r/factorio/comme ... ion_guide/
The change i'm making to this however is instead of making sure all all the chests are loaded into evenly, i'm wanting to make sure i'm pulling from chests evenly. This works great.... most of the time. The problem is sometimes i'll run into a problem where all the chests will have about the same amount, and then nothing gets pulled from the chests. So heres my setup
-there are 48 normal chests (12 per wagon, and 6 on each side)
-all normal chests are connected with green wires and are fed into the input of the arithmatic combinator
-all inserters (pulling from the normal chests) are connected with green wires and connected to the output of the combinator
-each inserter is connected directly to it's normal chest with a green wire
-Combinator is setup to take everything from the input and divide it by Negative number of chests (so divided by -48 in my case)
-combinator outputs everything
-inserters are setup to be enabled when everything is >=0
the problem happens when the chests get down to close to 1K of items. each chest will have around 950 items but the output of the combinator will be something like -963. so then 950 + (-963) is not greater than 0, so non of the inserters move anything.
I'm not quite sure what's going wrong... am i missing something simple? Thanks for any advice!
https://www.reddit.com/r/factorio/comme ... ion_guide/
The change i'm making to this however is instead of making sure all all the chests are loaded into evenly, i'm wanting to make sure i'm pulling from chests evenly. This works great.... most of the time. The problem is sometimes i'll run into a problem where all the chests will have about the same amount, and then nothing gets pulled from the chests. So heres my setup
-there are 48 normal chests (12 per wagon, and 6 on each side)
-all normal chests are connected with green wires and are fed into the input of the arithmatic combinator
-all inserters (pulling from the normal chests) are connected with green wires and connected to the output of the combinator
-each inserter is connected directly to it's normal chest with a green wire
-Combinator is setup to take everything from the input and divide it by Negative number of chests (so divided by -48 in my case)
-combinator outputs everything
-inserters are setup to be enabled when everything is >=0
the problem happens when the chests get down to close to 1K of items. each chest will have around 950 items but the output of the combinator will be something like -963. so then 950 + (-963) is not greater than 0, so non of the inserters move anything.
I'm not quite sure what's going wrong... am i missing something simple? Thanks for any advice!