Page 1 of 1

energy_production_statistics like item_production_statistics

Posted: Thu Sep 21, 2017 5:10 am
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?

Re: energy_production_statistics like item_production_statistics

Posted: Thu Sep 21, 2017 3:58 pm
by Rseding91