Add HeatEnergySourcePrototype and FluidEnergySourcePrototype runtime-API

User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 249
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Add HeatEnergySourcePrototype and FluidEnergySourcePrototype runtime-API

Post by Therenas »

Currently, LuaEntityPrototypes have their LuaBurnerPrototype or LuaElectricEnergySourcePrototype attached, if those are used. They do however not have anything if they are powered by heat or fluid, which is used in several of the big mods. According to Bilka, this is because there is simply no runtime interface that has been implemented for those, so nothing can be attached. I'm asking for them to be added to the runtime API.

My use case for this is mainly Factory Planner, where I'd like to calculate how much heat or fluid a machine needs to run. I can already do this for 'item'-fuel and electricity, but not for the other two power sources. (The same goes for boiler recipes and the like).

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: Add HeatEnergySourcePrototype and FluidEnergySourcePrototype runtime-API

Post by Deadlock989 »

I would also have a use for VoidEnergySourcePrototype or similar. Essentially I want to use on_selected_entity_changed to display custom chunk-based radius visualisations for entities which meet certain emissions criteria, regardless of their energy source type. You can currently finesse this for electric and burner types but it is possible to have void, fluid and I'm guessing heat energy sources that produce or negate pollution as well.

Rseding91
Factorio Staff
Factorio Staff
Posts: 14055
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add HeatEnergySourcePrototype and FluidEnergySourcePrototype runtime-API

Post by Rseding91 »

Ok, I've added all 3 of those for the next release.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: Add HeatEnergySourcePrototype and FluidEnergySourcePrototype runtime-API

Post by Deadlock989 »

Many thanks.


Post Reply

Return to “Implemented mod requests”