Allows you to export .json-files with various data to your script-output
directory. Useful if you want to create an online ratios calculator for instance.
Usage
In game, use the following console commands:
/command remote.call("ExtractToJson", "recipes")
/command remote.call("ExtractToJson", "technologies")
/command remote.call("ExtractToJson", "all")
This will create a [filename].json
file in your script-output
directory. This folder is located in the same directory as your mods
directory.
Optionally you can provide a filename:
/command remote.call("ExtractToJson", "recipes", "recipes.json")
Shoutouts:
This mod uses Jeffrey Friedl's Pure Lua Json Encoder
Thanks to Carl_the_Wimp for providing the code for extracting technologies.