[2.0.7] LuaGameScript doesnt contain key write_file
Posted: Mon Oct 21, 2024 3:00 pm
Hi, to generate map preview with command line I need to extract map_gen_settings.json from the Map exchange string
this command is from your wiki
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.
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.