Code: Select all
/c game.write_file('map.txt', game.table_to_json(game.parse_map_exchange_string("<your exchange string here>")))
https://wiki.factorio.com/Command_line_parameters
When i run this command with my exchange string i get error:
Cannot execute command. Error: LuaGameScript doesnt contain key write_file.