Help understand power draw in 2.0

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
goobie
Inserter
Inserter
Posts: 20
Joined: Wed May 24, 2017 7:44 pm
Contact:

Help understand power draw in 2.0

Post by goobie »

I've just got back into Factorio 2.0 after not playing a while. Loving it so far, nice work guys :)

I don't understand this power draw though, what is drawing 4.6GW?? I found some old 1.0 posts about bugs with satisfaction but couldn't find anything for 2.0

There's 700 roboports which are all fully charged (checked with a command). No robot tasks or active robots. There's 410 laser turrets and 2k accumulators. My understanding is accumulators don't try to charge unless supply exceeds demand. Even then, with every roboport charging, and every single laser turret firing, and all accumulators charging that's 4.3GW. And not even 10% of that is happening. It does happen at night and the steam isn't enough to keep up but i would expect around 100MW deficit from the solar.

11-13-2024, 08-02-32.png
11-13-2024, 08-02-32.png (465.81 KiB) Viewed 1209 times
Here's the normal draw:
11-13-2024, 08-02-42.png
11-13-2024, 08-02-42.png (382.04 KiB) Viewed 1209 times
adam_bise
Filter Inserter
Filter Inserter
Posts: 464
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Re: Help understand power draw in 2.0

Post by adam_bise »

I beleive the 21.2 MW / 4.6 GW is referring mostly to the potential draw by your empty accus
adam_bise
Filter Inserter
Filter Inserter
Posts: 464
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Re: Help understand power draw in 2.0

Post by adam_bise »

But that red satisfaction bar only being a tiny sliver doesn't make sense. I didnt think accu potential was visualized there especially while there is no surplus and they aren't even charging. Not sure.
MechBFP
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Sun Nov 03, 2024 4:02 am
Contact:

Re: Help understand power draw in 2.0

Post by MechBFP »

goobie wrote: Tue Nov 12, 2024 9:04 pm I've just got back into Factorio 2.0 after not playing a while. Loving it so far, nice work guys :)

I don't understand this power draw though, what is drawing 4.6GW?? I found some old 1.0 posts about bugs with satisfaction but couldn't find anything for 2.0

There's 700 roboports which are all fully charged (checked with a command). No robot tasks or active robots. There's 410 laser turrets and 2k accumulators. My understanding is accumulators don't try to charge unless supply exceeds demand. Even then, with every roboport charging, and every single laser turret firing, and all accumulators charging that's 4.3GW. And not even 10% of that is happening. It does happen at night and the steam isn't enough to keep up but i would expect around 100MW deficit from the solar.


11-13-2024, 08-02-32.png

Here's the normal draw:
11-13-2024, 08-02-42.png
I have seen similar reports before, and I think every time it was from a save game created before 2.0. Is that the case here as well?
goobie
Inserter
Inserter
Posts: 20
Joined: Wed May 24, 2017 7:44 pm
Contact:

Re: Help understand power draw in 2.0

Post by goobie »

adam_bise wrote: Tue Nov 12, 2024 9:46 pm I beleive the 21.2 MW / 4.6 GW is referring mostly to the potential draw by your empty accus
This should be 600MW by my count.. and i thought they only charged when supply exceeded demand?
Last edited by goobie on Wed Nov 13, 2024 4:58 am, edited 1 time in total.
goobie
Inserter
Inserter
Posts: 20
Joined: Wed May 24, 2017 7:44 pm
Contact:

Re: Help understand power draw in 2.0

Post by goobie »

MechBFP wrote: Tue Nov 12, 2024 10:40 pm
goobie wrote: Tue Nov 12, 2024 9:04 pm I've just got back into Factorio 2.0 after not playing a while. Loving it so far, nice work guys :)

I don't understand this power draw though, what is drawing 4.6GW?? I found some old 1.0 posts about bugs with satisfaction but couldn't find anything for 2.0

There's 700 roboports which are all fully charged (checked with a command). No robot tasks or active robots. There's 410 laser turrets and 2k accumulators. My understanding is accumulators don't try to charge unless supply exceeds demand. Even then, with every roboport charging, and every single laser turret firing, and all accumulators charging that's 4.3GW. And not even 10% of that is happening. It does happen at night and the steam isn't enough to keep up but i would expect around 100MW deficit from the solar.


11-13-2024, 08-02-32.png

Here's the normal draw:
11-13-2024, 08-02-42.png
I have seen similar reports before, and I think every time it was from a save game created before 2.0. Is that the case here as well?
I used the ~2.0.14 Linux headless binary to create the map, I did specify a 1.0 server settings file, not intentionally just by copy paste. But its running ok otherwise with the same settings file. We did port a lot of 1.0 rail blueprints across which was a bit painful.
ManaUser
Filter Inserter
Filter Inserter
Posts: 263
Joined: Sat Aug 12, 2017 9:41 pm
Contact:

Re: Help understand power draw in 2.0

Post by ManaUser »

Roboports. It's always the roboports. They have a pretty big internal "battery" and a crazy draw when they're trying to fill it up. Normally you don't need to worry about this too much, but if they all try to recharge at once for some reason they hit your power network hard. This could be a temporary thing if you're just recovering from a blackout for instance, or it could mean you have way more bot activity than your power generation can handle.
User avatar
Stargateur
Fast Inserter
Fast Inserter
Posts: 186
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: Help understand power draw in 2.0

Post by Stargateur »

If you are fine with mod https://mods.factorio.com/mod/ElectricPriority could help I just update it.
GtDRZ
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Oct 31, 2024 1:14 pm
Contact:

Re: Help understand power draw in 2.0

Post by GtDRZ »

this thread has a good explanation:

viewtopic.php?f=18&t=120828

However, i think it's shown in a really bad way in the UI. now i'm sure there's reasons for the massive power draw to fill these buffers, but it does seem extremely confusing how it's displayed in the UI - the machines all have a "maximum power draw" value you'd expect to be the maximum, but clearly that's not the case.

Makes me wonder what would happen if the buffer would just fill at the "maximum power draw" value or slightly over it.
goobie
Inserter
Inserter
Posts: 20
Joined: Wed May 24, 2017 7:44 pm
Contact:

Re: Help understand power draw in 2.0

Post by goobie »

I checked with a command, all the roboports were all charged both times i observed this. The base has been idling, no bots have moved in an hour or so.
But their draw was only 12.5MW during the brownout, less than needed. Either way, if they started leaking charge.. still that draw would need hundreds more roboports than i have to hit 4GW. These should be pulling at most 1.4GW to charge.

This is the check i used

Code: Select all

local total_energy, total_capacity = 0, 0
for _, roboport in pairs(game.player.surface.find_entities_filtered({type = "roboport"})) do
    total_energy = total_energy + roboport.energy
    total_capacity = total_capacity + roboport.electric_buffer_size
end
game.player.print("Avg charge: " .. string.format("%.2f", (total_energy / total_capacity) * 100) .. "%")
Avg charge: 100%. They are all normal quality
Last edited by goobie on Wed Nov 13, 2024 11:06 am, edited 7 times in total.
goobie
Inserter
Inserter
Posts: 20
Joined: Wed May 24, 2017 7:44 pm
Contact:

Re: Help understand power draw in 2.0

Post by goobie »

Stargateur wrote: Wed Nov 13, 2024 9:45 am If you are fine with mod https://mods.factorio.com/mod/ElectricPriority could help I just update it.
Thanks, will check that out
User avatar
Stargateur
Fast Inserter
Fast Inserter
Posts: 186
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: Help understand power draw in 2.0

Post by Stargateur »

goobie wrote: Wed Nov 13, 2024 10:35 am I checked with a command, all the roboports were all charged both times i observed this. The base has been idling, no bots have moved in an hour or so.
But their draw was only 12.5MW during the brownout, less than needed. Either way, if they started leaking charge.. still that draw would need hundreds more roboports than i have to hit 4GW. These should be pulling at most 1.4GW to charge.

This is the check i used

Code: Select all

local total_energy, total_capacity = 0, 0
for _, roboport in pairs(game.player.surface.find_entities_filtered({type = "roboport"})) do
    total_energy = total_energy + roboport.energy
    total_capacity = total_capacity + roboport.electric_buffer_size
end
game.player.print("Avg charge: " .. string.format("%.2f", (total_energy / total_capacity) * 100) .. "%")
Avg charge: 100%. They are all normal quality
There is a difference between consumption and raw input, roboport and laser can both ask for more energy that they consume in order to fill their buffer, roboport have 5MW limit input, 700 * 5MW = 3.5GW, so you have at least 3.5GW of roboport asking energy after a blackout https://github.com/wube/factorio-data/b ... .lua#L6668
goobie
Inserter
Inserter
Posts: 20
Joined: Wed May 24, 2017 7:44 pm
Contact:

Re: Help understand power draw in 2.0

Post by goobie »

Looks like you're right
11-14-2024, 14-12-40.png
11-14-2024, 14-12-40.png (246.6 KiB) Viewed 685 times
for Roboport - I thought it was 2.1MW?
https://wiki.factorio.com/Roboport
2.0.7
Reduced max energy consumption from 5 MW to 2.1 MW.
User avatar
Stargateur
Fast Inserter
Fast Inserter
Posts: 186
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Re: Help understand power draw in 2.0

Post by Stargateur »

goobie wrote: Wed Nov 13, 2024 8:58 pm
again max CONSUMPTION != max input flow. The max consumption have been reduced cause they nerfed by half robot recharge rate (off topic: OMG THAT EXPLAIN A LOT) and so max consumption have been reduced automatically (that calculate by game engine it's not a config number). It should be possible to reduce the max input flow, since I think quality increase max input too but I'm unsure

"buffer_capacity = "100MJ"" :lol: that 20 accumulator, why.... :idea: :?:

edit: well well well, I think they could reduce a lot the max input of roboport.

EDIT2: well I update my balance mod :p https://mods.factorio.com/mod/StarBalancing
Attachments
roboport epic.png
roboport epic.png (85.72 KiB) Viewed 633 times
goobie
Inserter
Inserter
Posts: 20
Joined: Wed May 24, 2017 7:44 pm
Contact:

Re: Help understand power draw in 2.0

Post by goobie »

Stargateur wrote: Thu Nov 14, 2024 12:52 pm
goobie wrote: Wed Nov 13, 2024 8:58 pm
again max CONSUMPTION != max input flow. The max consumption have been reduced cause they nerfed by half robot recharge rate (off topic: OMG THAT EXPLAIN A LOT) and so max consumption have been reduced automatically (that calculate by game engine it's not a config number). It should be possible to reduce the max input flow, since I think quality increase max input too but I'm unsure

"buffer_capacity = "100MJ"" :lol: that 20 accumulator, why.... :idea: :?:

edit: well well well, I think they could reduce a lot the max input of roboport.

EDIT2: well I update my balance mod :p https://mods.factorio.com/mod/StarBalancing
I'm not really understanding the distinction here. There are no 'input flow' metrics on the wiki, the three factors are "Drain", "Energy consumption" and "Robot recharge rate". As no robots were recharging that recharge rate is irrelevant. Drain is the power needed when its fully charged. So what's left is the consumption when its charging its battery, which is says is 2.1MW. That seems like a mistake to me. It should say "Max energy consumption 5MW", as it can exceed the maximum of 2.1MW.
11-15-2024, 08-39-25.png
11-15-2024, 08-39-25.png (19.4 KiB) Viewed 535 times
Post Reply

Return to “Gameplay Help”