Console command to print out current map settings
-
- Inserter
- Posts: 29
- Joined: Mon Sep 05, 2016 8:55 am
- Contact:
Console command to print out current map settings
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
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
/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
-
- Inserter
- Posts: 29
- Joined: Mon Sep 05, 2016 8:55 am
- Contact:
Re: Console command to print out current map settings
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
Look for ["enemy-base"] in the dump
-
- Inserter
- Posts: 29
- Joined: Mon Sep 05, 2016 8:55 am
- Contact:
Re: Console command to print out current map settings
Yikes, missed that, thank you.
Re: Console command to print out current map settings
As for 0.18.1 that's:
but since we want to copy to clipboard from console:
and then open file
%appdata% \Factorio\factorio-current.log
also, its possible to open GUI:
(thx IronCartographer)
Code: Select all
/c game.player.print(game.get_map_exchange_string())
Code: Select all
/c log(game.get_map_exchange_string())
%appdata% \Factorio\factorio-current.log
also, its possible to open GUI:
(thx IronCartographer)
Code: Select all
/editor
Surfaces > Map generation options