Solved, answer:
Code: Select all
game.surfaces['nauvis'].map_gen_settings.autoplace_controls["iron-ore"].richness
Code: Select all
game.surfaces['nauvis'].map_gen_settings.autoplace_controls["iron-ore"].richness
That throws a nil value error on player, however game.print(game.surfaces['nauvis'].map_gen_settings.autoplace_controls["iron-ore"].richness) works. Thanks for the pointer.Nexela wrote:game.print(game.player.surface.map_gen_settings.autoplace_controls["iron-ore"].richness)