[0.17.69] Drain with burner EnergySource on pump

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Fast Inserter
Fast Inserter
Posts: 173
Joined: Sun Sep 18, 2016 6:53 pm

[0.17.69] Drain with burner EnergySource on pump

Post by moon69 »

I've modded a pump to use a burner EnergySource.

Watching LuaBurner.remaining_burning_fuel, you can see it's slowly draining fuel (once fueled) even when freshly built and not connected to any pipes.
Bilka wrote:
Thu Oct 03, 2019 8:07 pm
Because of:
Pump update function wrote: if (!pumpedAnything)
this->energySource->extractEnergyAndPollute(prototype.energyUsage * ElectricEnergySource::restingEnergyConsumption, ...);
No idea why this code exists. Consider making a bug report, most likely that code was just not adjusted after the possibility to use non-electric energy sources in the pump was added.
Attached is simple mod that shows the issue, with save game with no other mods installed, and it's matching log file.
(7.82 KiB) Downloaded 77 times
(1.14 MiB) Downloaded 59 times
(3.27 KiB) Downloaded 68 times

Filter Inserter
Filter Inserter
Posts: 886
Joined: Thu Oct 03, 2019 7:10 am

Re: [0.17.69] Drain with burner EnergySource on pump

Post by Honktown »

Try adding fuel_category = "chemical"

Edit: Also try removing ".enabled = true". Your pump currently can't hook up to networks, and I think that's a circuit-set option, not one that should be defined anywhere else.

Also use clearer variable names.
I have mods! I guess!

Factorio Staff
Factorio Staff
Posts: 2853
Joined: Sat Aug 13, 2016 9:20 am

Re: [0.17.69] Drain with burner EnergySource on pump

Post by Bilka »

Thanks for the report, fixed for the next version.
Honktown wrote:
Wed Oct 09, 2019 3:38 pm
Recommendation: Don't give unsolicited and wrong advice.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Problems and Bugs”