Request for getting power prod. and power sat. from the API

Place to post guides, observations, things related to modding that are not mods themselves.
User avatar
TelemakFactorio
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Fri Oct 14, 2016 4:30 pm
Contact:

Request for getting power prod. and power sat. from the API

Post by TelemakFactorio »

I would like to make a simple mod like my tiny little weather station, to get the power production and the power satisfaction from an electrical network.
The purpose would be to set up alarms when the satisfaction < 80% in my games, thanks to combinators.
Would the devs add entities and methods to get those informations ? Or did I miss something already existing ?
Thank you
Bilka
Factorio Staff
Factorio Staff
Posts: 3309
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Request for getting power prod. and power sat. from the API

Post by Bilka »

There's this http://lua-api.factorio.com/latest/LuaE ... statistics, you'll have to see what you can do with it.
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 discussion”