Getting a list of all the power poles.

Place to get help with not working mods / modding interface.
Post Reply
archeious
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Dec 07, 2016 10:06 pm
Contact:

Getting a list of all the power poles.

Post by archeious »

I am really struggling with Factorio mods and LUA in general.

I want to get a list of the power poles and then read the corresponding electric_network_statistics. I am not even sure where to start.

archeious
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Dec 07, 2016 10:06 pm
Contact:

Re: Getting a list of all the power poles.

Post by archeious »

Anyone?

Pandemoneus
Fast Inserter
Fast Inserter
Posts: 127
Joined: Fri May 08, 2015 2:25 pm
Contact:

Re: Getting a list of all the power poles.

Post by Pandemoneus »

You will want to use http://lua-api.factorio.com/latest/LuaS ... s_filtered with type = "electric-pole" and then use http://lua-api.factorio.com/latest/LuaE ... statistics.

If you need a code example, let me know.
My RSO+Bob's+Angel's modpack: Farlands (outdated)
Mods (current): Resource Labels
Mods (old): Biter Spires

Post Reply

Return to “Modding help”