Original Post — Direct link

Hey guys, I want do some statistical analysis on the clustering of the alien bases on some factorio servers. Is there any way of getting these co-ordinates? Maybe through an API or a mod? I'm a complete noob in this respect so as much detailed aid as possible would be great!

Thanks:)

External link →
18 days ago - /u/Klonan - Direct link

Its pretty easy, you can do something like this using a console command:

/c local string = "Index, X, Y" for k, spawner in pairs (game.surfaces[1].find_entities_filtered{type = "unit-spawner"}) do string = string.."\n"..k..", "..spawner.position.x..", "..spawner.position.y end game.write_file("positions.csv", string)

It will output a "positions.csv" in the script-output directory






devtrackers.gg