Page 1 of 1

resting_consumption_ratio

Posted: Wed Jan 24, 2018 5:49 am
by Deadlock989
Having difficulty getting this to work. The documentation is worded strangely but I'm pretty sure it's saying that this is the ratio of power used even when the machine is idle. Is that right?

I'm defining it like this:

Code: Select all

machine.energy_source = {
        emissions = 0.01,
        type = "electric",
        usage_priority = "secondary-input",
        resting_consumption_ratio = 0.5,
}
But it has absolutely no effect. I know that it is at least partly working because the pollution rate ("emissions") responds to changes.

Anyone know?

Re: resting_consumption_ratio

Posted: Wed Jan 24, 2018 7:33 am
by darkfrei

Re: resting_consumption_ratio

Posted: Wed Jan 24, 2018 10:44 am
by Deadlock989
Thanks, that's what I wanted. It's entirely missing from the docs. So what's resting_consumption_ratio?

Re: resting_consumption_ratio

Posted: Wed Jan 24, 2018 12:46 pm
by Bilka
Deadlock989 wrote:Thanks, that's what I wanted. It's entirely missing from the docs. So what's resting_consumption_ratio?
What docs are you reffering to? Where do you find resting_consumption_ratio as a property?

Edit: Nevermind, found it: https://wiki.factorio.com/Types/EnergySource

The docs on the wiki are outdated in parts, as noted on https://wiki.factorio.com/Prototype_definitions . I currently do not have clear permission to update them using the source code, so I sadly cannot completely correct the page until I get that permission.

Re: resting_consumption_ratio

Posted: Fri Jan 26, 2018 12:54 pm
by Bilka
Got permissions confirmed so https://wiki.factorio.com/Types/EnergySource is up to date now :D