Energy production from power pole

Place to get help with not working mods / modding interface.
Post Reply
User avatar
coltonj96
Burner Inserter
Burner Inserter
Posts: 16
Joined: Thu Jan 19, 2017 2:45 am
Contact:

Energy production from power pole

Post by coltonj96 »

I want to get how much energy a power network is producing from a power pole, is this even possible?


User avatar
coltonj96
Burner Inserter
Burner Inserter
Posts: 16
Joined: Thu Jan 19, 2017 2:45 am
Contact:

Re: Energy production from power pole

Post by coltonj96 »

Yes, electric_network_statistics does not give the correct info and electric_emissions does not work

User avatar
withers
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Apr 08, 2016 4:54 pm
Contact:

Re: Energy production from power pole

Post by withers »

coltonj96 wrote:
Yes, electric_network_statistics does not give the correct info and electric_emissions does not work
I've been messing with this a bit. electric_network_statistics does give correct info. It gives the total number of joules produced. You can get power by just reading it at two different times and getting the delta. If you take take two readings at 60 ticks apart, the delta is power in watts.

User avatar
coltonj96
Burner Inserter
Burner Inserter
Posts: 16
Joined: Thu Jan 19, 2017 2:45 am
Contact:

Re: Energy production from power pole

Post by coltonj96 »

withers wrote:
coltonj96 wrote:
Yes, electric_network_statistics does not give the correct info and electric_emissions does not work
I've been messing with this a bit. electric_network_statistics does give correct info. It gives the total number of joules produced. You can get power by just reading it at two different times and getting the delta. If you take take two readings at 60 ticks apart, the delta is power in watts.
I figured that out a while ago :P

Post Reply

Return to “Modding help”