Data Exporter to JSON


Outputs|Exports a JSON file to /script-output/recipe-lister that lists all recipes, crafting machines, mining drills, belts, inserters, resources, items, fluids, and technologies loaded on player creation. Settings for split files and toggles for each category

Utilities
3 years ago
0.16 - 1.1
777

i recipe enabled

4 years ago

I want to get all recipes that enabled at the beginning of the game. My current solution is to delete the recipes that can be unlocked by technology from all the recipes, but some recipes are completely disabled.

4 years ago

Are you making a mod? You should be able to check it by yourself in-game with your own mod.

In any case, I'll add the enabled flag today.

4 years ago
(updated 4 years ago)

No, I'm making a helper program, but I want to find out all the recipes that I can use. Finding researched technologieses may be easier than finding unlocked recipes. Or do you have a good idea?

4 years ago

I think using the enabled attribute is good enough, although some mods might change things in control stage.

3 years ago

I have been looking at the 'enabled' flag and spending quite some time to understand it.

Given an export of vanilla (1.1.36 to be exact): the first recipe 'assembling-machine-1' in .json has property 'enabled' = false.

I mistakenly had interpreted it as 'hidden' recipes (for instance, IR2 has special aetheric glow recipes, and some related to unused vanilla items are supposed to be hidden, so I thought/hoped I could make use of it. Until I found this thread :). Highly unexpected semantics, please rename to 'enabled_at_start'?.

3 years ago

The enabled flag always denotes the availability of recipes at the start of the game, as described in the wiki, and is what the game uses to determine what you have in-game, assigned to your force. Technologies change enabled to true for your force, it does not change the prototype.

New response