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
2 years ago
0.16 - 1.1
678

g missing space-science-pack

2 years ago
(updated 2 years ago)

I made an export of vanilla, no mods.

I noticed that there is no recipe for space-science-pack; neither is rocket-silo present in the assembling-machine.json.

This is a bit of problem for me, since I am building my own python mall/megabase solver around the exported datasets, but it lacks the capability to handle space science packs. So now I am considering to patch the exported data as follows, which feels like something that could/should be solved in the mod?

  "extra_machines" : [
    {
      "name" : "rocket-silo",
      "type" : "rocket-building",
      "crafting_categories" : {
        "rocket-building" : true
      },
      "crafting_speed" : 1.0,
      "module_inventory_size" : 4,
      "allowed_effects" : {
        "productivity" : true,
        "speed" : true
      },
      "energy_usage": 10000,
      "pollution": 0
    }
  ],
  "extra_recipes" : [
    {
      "name" : "space-science-pack",
      "localised_name" : "item-name.space-science-pack",
      "category" : "rocket-building",
      "order" : "b[space-science-pack]",
      "group" : {
        "name" : "intermediate-products",
        "type" : "item-group"
      },
      "subgroup" : {
        "name" : "science-pack",
        "type" : "item-subgroup"
      },
      "energy" : 2.5,
      "ingredients" : [
        {
          "type" : "item",
          "name" : "satellite",
          "amount" : 1
        },
        {
          "type" : "item",
          "name" : "rocket-part",
          "amount" : 100
        }
      ],
      "products" : [
        {
          "type" : "item",
          "name" : "space-science-pack",
          "amount" : 1000,
          "probability" : 1
        }
      ]
    }
  ]
2 years ago

Rocket Silo is a separate category from Assemblers, I'll get to work on adding them as a new category,

You can read rocket launch results from the items.

2 years ago

Ah, I completely missed that, thanks!

New response