idle energy usage and electric energy drain

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

idle energy usage and electric energy drain

Post by darkfrei »

Hi all!

Here are three parts of code of vanilla 0.16.51:

Code: Select all

data.raw["rocket-silo"]["rocket-silo"].energy_usage = "250kW" 
data.raw["rocket-silo"]["rocket-silo"].idle_energy_usage = "10KW" 

Code: Select all

data.raw.inserter.inserter.energy_source.type = "electric" 
data.raw.inserter.inserter.energy_source.usage_priority = "secondary-input" 
data.raw.inserter.inserter.energy_source.drain = "0.4kW" 

Code: Select all

data.raw["electric-turret"]["laser-turret"].energy_source.type = "electric" 
data.raw["electric-turret"]["laser-turret"].energy_source.buffer_capacity = "801kJ" 
data.raw["electric-turret"]["laser-turret"].energy_source.input_flow_limit = "9600kW" 
data.raw["electric-turret"]["laser-turret"].energy_source.drain = "24kW" 
data.raw["electric-turret"]["laser-turret"].energy_source.usage_priority = "primary-input" 
As you see, the rocket-silo has idle energy use, inserters and electric turrets have energy drain and all another entities have default 3% electric energy drain from entity.energy_usage.

Is it possible to add energy_usage and idle_energy_usage to all entities instead of drain? As you read this, you probably can't see common difference between them.

Drain: the energy, that entity takes 100% of time, there is no difference works this entity or not. So total energy in this situation is energy_usage+drain.

Energy usage is the power of working entity: this power is consumption power when this entity works, but apart from grain energy.

Idle energy usage is the power, what this energy takes when it doesn't work. Instead of drain, this power has no affect on working machine.


So, why we have drain power, when we can define separately energy_usage and idle_energy_usage?
Last edited by darkfrei on Sun Oct 07, 2018 12:23 pm, edited 2 times in total.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: idle energy use and electric energy drain

Post by darkfrei »

The question/suggestion comes from mod:
What if the entities need more energy when they are idle? For example

Code: Select all

entity.energy_usage = "100kW"
entity.idle_energy_usage = "500kW"
So you must optimize production for energy consumption reducing.

Right now it's impossible to make it with energy_usage and drain:

Code: Select all

entity.energy_usage = "-400kW"
entity.energy_source.drain = "500kW"
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: idle energy usage and electric energy drain

Post by bobingabout »

honestly, I think drain is bullcrap.

what colours my opinion so much is basically the pump. I hadn't noticed it before, but if you have a pump that is BARELY pumping, it consumes way less power than a pump that has stopped. I think the idle drain is something like 10%, but when it's just pumping a trickle, it can use as low as 1%.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding interface requests”