Json Extractor

by Xyfi

Export all recipes to JSON file, see mod-portal page (https://mods.factorio.com/mods/Xyfi/JsonExtractor) for instructions.

4 years ago
0.14
289
Owner:
Xyfi
Source:
N/A
Homepage:
https://mods.factorio.com/mods/Xyfi/J...
License:
MIT
Created:
4 years ago
Latest Version:
0.1.5 (4 years ago)
Factorio version:
0.14
Downloaded:
289 times

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.