energy_production_statistics like item_production_statistics

Things that already exist in the current mod API
Post Reply
blendi_93
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri May 27, 2016 5:06 am
Contact:

energy_production_statistics like item_production_statistics

Post by blendi_93 »

hello,

iam trying to export energy stats to a file for controling my led strip.

my current approch: viewtopic.php?f=25&t=52767&p=308638#wrap:

on load i go over the whole map and search for {"generator", "solar-panel", "reactor", "accumulator"} and store them in a dictonary on destroy / create events i update the dict.
i use "ent.energy" to get current avaible energy and "ent.electric_buffer_size" for the max possible energy, this works for accus and generators but not for solar-panels.

as the game processes energy alrdy somewhere, is it possible to export this?

Rseding91
Factorio Staff
Factorio Staff
Posts: 13198
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: energy_production_statistics like item_production_statistics

Post by Rseding91 »

If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Already exists”