This repo contains two projects:
The mod can be added just like any other mod:
Either clone this repo into your mods folder or use the zip file which can be found in Releases.
Note: The directory needs to be called ‘zzythumdatascraper_0.1.0’!
The mod works in two stages:
Filename | Exported Data | Location | Description |
---|---|---|---|
factorio-current.log | data.raw | Factorio install folder | This is the data submitted by mods. See data-final-fixes.lua for more information |
recipes.json | LuaRecipePrototypes | script-output/ | All recipes available in-game |
items.json | LuaItemPrototypes | script-output/ | All items available in-game |
fluids.json | LuaFluidPrototypes | script-output/ | All fluids available in-game |
entities.json | LuaEntityPrototypes | script-output/ | Only crafting-machines, belts and pipes |
Note: You need to create a new game or load a save for this mod to work!
The script-output folder can either be where your mods are saved (e.g. %appdata%) or in your Factorio install folder.
The postprocessing folder contains the python postprocessor.
The main features are:
Usage:
python3 postprocessing/main.py <Output-Folder>
This will try to guess the Factorio install and mod folder based on your OS and some default install locations. Optionally, you can specify the paths like this:
python3 postprocessing/main.py <Output-Folder> --game <Factorio-Folder> --mods <Mod-Folder>
Note: The script will write output.json and /icons/*.png into \
The output.json has the following format:
{
'recipes': {
'<recipe-name>': { ... },
...
},
'items': {
'<item-name>': { ... },
...
},
'fluids': {
'<fluid-name>': { ... },
...
},
'entities': {
'crafting-machine': { ... },
'belt': { ... },
'pipe': { ... },
},
'groups': {
'<group-name>': {
'subgroups': { ... },
...
},
},
}
The output.json can be quite large so please open it only in a browser or some good text editor!