resting_consumption_ratio

Place to get help with not working mods / modding interface.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

resting_consumption_ratio

Post 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?
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: resting_consumption_ratio

Post by Deadlock989 »

Thanks, that's what I wanted. It's entirely missing from the docs. So what's resting_consumption_ratio?
Bilka
Factorio Staff
Factorio Staff
Posts: 3470
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: resting_consumption_ratio

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Bilka
Factorio Staff
Factorio Staff
Posts: 3470
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: resting_consumption_ratio

Post by Bilka »

Got permissions confirmed so https://wiki.factorio.com/Types/EnergySource is up to date now :D
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 “Modding help”