Page 1 of 1

Console command to print out current map settings

Posted: Thu Sep 08, 2016 8:12 pm
by grouchysmurf
Evening. Is there a command to list current map settings (frequency / richness / size of resource patches)?

Re: Console command to print out current map settings

Posted: Thu Sep 08, 2016 10:42 pm
by Nexela
Ugly Dump but readable

/c game.player.print(serpent.block(game.player.surface.map_gen_settings))

slightly prettier for just listing ores
/c for i, gen in pairs(game.player.surface.map_gen_settings.autoplace_controls) do game.player.print(i .. " " .. serpent.line(gen)) end

Re: Console command to print out current map settings

Posted: Fri Sep 09, 2016 8:25 am
by grouchysmurf
Thanks! Dump is more than enough, thanks. Any chance to add biters data to the output - from the quick glance it shows info on resources only.

Re: Console command to print out current map settings

Posted: Fri Sep 09, 2016 8:59 am
by Nexela
Look for ["enemy-base"] in the dump :)

Re: Console command to print out current map settings

Posted: Fri Sep 09, 2016 3:00 pm
by grouchysmurf
Yikes, missed that, thank you.

Re: Console command to print out current map settings

Posted: Fri Jan 31, 2020 2:50 pm
by Mgis09
As for 0.18.1 that's:

Code: Select all

/c game.player.print(game.get_map_exchange_string())
but since we want to copy to clipboard from console:

Code: Select all

/c log(game.get_map_exchange_string())
and then open file
%appdata% \Factorio\factorio-current.log

also, its possible to open GUI:
(thx IronCartographer)

Code: Select all

/editor
Surfaces > Map generation options