Page 1 of 1

How do I read the contents of tiles near the player?

Posted: Wed Apr 22, 2020 9:00 pm
by Assembling_machine_2
I was wondering if there was a way to see the contents of each tile in a radius around the player so I can teach an ANN to play
thanks.

Re: How do I read the contents of tiles near the player?

Posted: Wed Apr 22, 2020 9:34 pm
by Klonan
You can use find entities fitered:
https://lua-api.factorio.com/latest/Lua ... s_filtered

You can give it a position and radius, and it will return all entities in that circle

Re: How do I read the contents of tiles near the player?

Posted: Thu Apr 23, 2020 8:54 pm
by Assembling_machine_2
thanks