Console command to print out current map settings

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
grouchysmurf
Inserter
Inserter
Posts: 29
Joined: Mon Sep 05, 2016 8:55 am
Contact:

Console command to print out current map settings

Post by grouchysmurf »

Evening. Is there a command to list current map settings (frequency / richness / size of resource patches)?
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Console command to print out current map settings

Post 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
grouchysmurf
Inserter
Inserter
Posts: 29
Joined: Mon Sep 05, 2016 8:55 am
Contact:

Re: Console command to print out current map settings

Post 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.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Console command to print out current map settings

Post by Nexela »

Look for ["enemy-base"] in the dump :)
grouchysmurf
Inserter
Inserter
Posts: 29
Joined: Mon Sep 05, 2016 8:55 am
Contact:

Re: Console command to print out current map settings

Post by grouchysmurf »

Yikes, missed that, thank you.
Mgis09
Inserter
Inserter
Posts: 27
Joined: Sun May 06, 2018 3:58 pm
Contact:

Re: Console command to print out current map settings

Post 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
Post Reply

Return to “Gameplay Help”