[MOD 0.17.x] Inserter Fuel Leech

Topics and discussion about specific mods
Post Reply
User avatar
Oktokolo
Filter Inserter
Filter Inserter
Posts: 883
Joined: Wed Jul 12, 2017 5:45 pm
Contact:

[MOD 0.17.x] Inserter Fuel Leech

Post by Oktokolo »

Inserter Fuel Leech (GitHub) makes all inserters take ("leech") fuel from the fuel inventories of entities at their pickup position. They do that whenever their hand is hovering over the pickup location and they or their drop target need refuelling.

Works with vanilla and modded inserters. Does not add or modify prototypes.
Inserters leech from anything that has a burner. They do not leech if they or their drop target do not need fuel.

If you want to use burner inserters for anything else than smelter input, cascade burner tech (example: ore to steel), or want to be able to leech fuel from vehicles into burner tech - this mod is for you.
Images
Last edited by Oktokolo on Thu Mar 14, 2019 11:02 pm, edited 1 time in total.

Aphelius
Burner Inserter
Burner Inserter
Posts: 13
Joined: Mon Apr 23, 2018 7:43 am
Contact:

Re: [MOD 0.16.x] Inserter Fuel Leech

Post by Aphelius »

I feel like this should be vanilla, at least for black inserters. The ability to build massive low tech power free smelters is really nice. As of now burner inserters serve almost no purpose,which is bad design imo.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [MOD 0.16.x] Inserter Fuel Leech

Post by darkfrei »

Aphelius wrote: ↑
Fri Jun 01, 2018 9:45 am
I feel like this should be vanilla, at least for black inserters. The ability to build massive low tech power free smelters is really nice. As of now burner inserters serve almost no purpose,which is bad design imo.
It's another one "vanilla, but disabled" feature.
code

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [MOD 0.16.x] Inserter Fuel Leech

Post by Klonan »

darkfrei wrote: ↑
Sun Sep 15, 2019 3:07 pm
Aphelius wrote: ↑
Fri Jun 01, 2018 9:45 am
I feel like this should be vanilla, at least for black inserters. The ability to build massive low tech power free smelters is really nice. As of now burner inserters serve almost no purpose,which is bad design imo.
It's another one "vanilla, but disabled" feature.
code
Well the logic was just added, and isn't even released yet...

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [MOD 0.16.x] Inserter Fuel Leech

Post by darkfrei »

Klonan wrote: ↑
Sun Sep 15, 2019 5:40 pm
Well the logic was just added, and isn't even released yet...
And the burnt_result_inventory is still unavailable for all inserters?
Attachments
Xl41S9g[1].png
Xl41S9g[1].png (453.06 KiB) Viewed 5021 times

User avatar
Oktokolo
Filter Inserter
Filter Inserter
Posts: 883
Joined: Wed Jul 12, 2017 5:45 pm
Contact:

Re: [MOD 0.16.x] Inserter Fuel Leech

Post by Oktokolo »

Klonan wrote: ↑
Sun Sep 15, 2019 5:40 pm
darkfrei wrote: ↑
Sun Sep 15, 2019 3:07 pm
It's another one "vanilla, but disabled" feature.
Well the logic was just added, and isn't even released yet...
Nice. Will happily replace the on-tick teleport logic with that single flag.

Having an additional leech-enable flag for recipe ingredients would also be nice.
Implementing recipe ingredient leeching is the feature i planned to implement next and it would come with the same UPS implications and uglyness like the current fuel leeching.

Roady
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Jan 27, 2017 11:21 pm
Contact:

Re: [MOD 0.17.x] Inserter Fuel Leech

Post by Roady »

Got this error loading a save today.
Playing with full Angel, Bob, Clowns and Omni.
Attachments
err.png
err.png (105 KiB) Viewed 4590 times

User avatar
Oktokolo
Filter Inserter
Filter Inserter
Posts: 883
Joined: Wed Jul 12, 2017 5:45 pm
Contact:

Re: [MOD 0.17.x] Inserter Fuel Leech

Post by Oktokolo »

Roady wrote: ↑
Mon Apr 27, 2020 7:57 am
Got this error loading a save today.
Playing with full Angel, Bob, Clowns and Omni.
There seems to exeist an item without a fuel value that is still accepted by a burner inventory. That should never happen (and in vanilla it doesn't happen).
One of the mods probably added such an item. I will add a check for items to actually have a fuel value to my mod soon (TM).

User avatar
Oktokolo
Filter Inserter
Filter Inserter
Posts: 883
Joined: Wed Jul 12, 2017 5:45 pm
Contact:

Re: [MOD 0.17.x] Inserter Fuel Leech

Post by Oktokolo »

Roady wrote: ↑
Mon Apr 27, 2020 7:57 am
Got this error loading a save today.
Playing with full Angel, Bob, Clowns and Omni.
I added a check to ensure a fuel value greater than zero. This should prevent the fuel cheat from trying to feed the inserters with an item wich's prototype is defined to be in the accepted fuel category but having no fuel value.
If you by now know the mod defining that prototype, it would be nice to inform that author too. An item prototype having a fuel category but no fuel value makes no sense, so it probably isn't meant to be that way...

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [MOD 0.17.x] Inserter Fuel Leech

Post by darkfrei »

There is another same mod Burner-Leech that uses vanilla-side logic, that can be enabled just with:

Code: Select all

for i, v in pairs (data.raw.inserter) do
  if v.energy_source and v.energy_source.type == "burner" then
    v.allow_burner_leech = true
  end
end
Works it better with such zero fuel values?

User avatar
Oktokolo
Filter Inserter
Filter Inserter
Posts: 883
Joined: Wed Jul 12, 2017 5:45 pm
Contact:

Re: [MOD 0.17.x] Inserter Fuel Leech

Post by Oktokolo »

darkfrei wrote: ↑
Mon May 04, 2020 6:52 am
There is another same mod Burner-Leech that uses vanilla-side logic, that can be enabled just with:
The vanilla-side logic is enabled in my mod too.
The issue occured in the refuel-cheat logic, wich regularly feeds made-up items having a tiny amount of power to burner inserters wich are out of power to enable them to sloooowly grab themselves some real fuel.
The prototype of that item is automatically determined by iterating over all prototypes having a fuel category supported by the inserter's burner. The fix was to add fuel_value > 0 to the filter.

Post Reply

Return to β€œMods”