Inserter Fuel Leech


In addition to normal behaviour, all Inserters take fuel from entities containing a burner when they or their drop target have no fuel left.

Tweaks
7 months ago
0.16 - 2.0
77.8K
Logistics

b Throughput snags

7 months ago

Hi! Thanks so much for finally porting this to 2.0!

I noticed a couple issues compared to how it was in 1.1
- The time it takes for an burner inserter to pass fuel from one machine to another is very slow (eg the source machine has extra fuel but the inserter would still take time to pick it up either for itself or passing it on)
- The buffer size of target machines (fuel placed from one machine to another - not from belt/storage) is always maxed at 1 (one) and not 5 (vanilla default)

Both of these combined make a long chain of burner machines (eg furnaces) take an awfully long time to pass fuel through.

I noticed you also added some delays and measures for UPS control, is there some setting changes I can do to fix this for me?

7 months ago

If everything has fuel, the mod calculates the shortest duration until the inserter, target, or pickup could run out of fuel items at maximum consumption rate. So if you have chains that are longer than the common ore-to-steel setup, the burner of the target might run dry after another inserter stole it's fuel before the inserter fueling it is checked again.
There also is a maximum delay of the maximum of the 3 "Delay when" settings + the minimum of the 3 "Delay when" settings + "Delay variation" setting.
That leads to a maximum delay of 43 seconds at default settings.
That's perfectly fine for steel smelting with chains of two smelters (my main use case).

You can try to set the 4 map settings with "[s]" in their name to 1 and change "enable extra leeching for" from "all inserters" to "item-fueled" (saves UPS if you only use burners for fuel leeching).
If that works for your use case, I consider an extra setting to limit the delay for when fuel is used and everything has fuel.

I consider making the leeching stock up to vanilla counts.
Currently, leeching happens when the fuel inventory is empty, and it's always a full inserter hand if available (which is maximally 3 items for vanilla burner inserters with full vanilla research).

7 months ago

Ah yes, these worked out, thanks so much for the help! I'll try it for a bit and report back if there's some issues still. Thanks again!

7 months ago

Thanks for the confirmation.

I will implement keeping fuel inventories stocked with N fuel items when I find the time and can resist playing (don't hold your breath; you know the lure of this game).
N will likely be close to vanilla behavior to make it intuitive for users. It's hopefully not just a static count but dependent on max energy use and fuel energy density.

3 months ago

Any luck with this? I am having the same issue because there is no buffer.

New response