Page 1 of 1

idle energy usage and electric energy drain

Posted: Sun Oct 07, 2018 12:13 pm
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?

Re: idle energy use and electric energy drain

Posted: Sun Oct 07, 2018 12:17 pm
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"

Re: idle energy usage and electric energy drain

Posted: Mon Oct 08, 2018 9:09 am
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%.