What?
1.1.77's patch notes add several data-extraction oriented command line options:- Added a command line flag (dump-data) to dump data-raw to the script output folder as json.
- Added a command line flag (dump-icon-sprites) to dump prototype icons to the script output folder.
- Added a command line flag (dump-prototype-locale) to dump prototype locale to the script output folder.
Why?
In order for the Factorio data-stage of the load process to take place, this table must exist in the Lua context under the name `defines`. This is important when emulating this load process (a la my module draftsman), but the data is not provided in Wube's official factorio-data repo, nor the official API website. Instead, it has to be manually extracted from the game (for each game version) with the command:Code: Select all
/c game.write_file("defines.lua", "defines = " .. serpent.block(defines, {indent=" "}))