Get JSON for research ingredients and prerequisites

Place to get help with not working mods / modding interface.
Post Reply
blazespinnaker
Filter Inserter
Filter Inserter
Posts: 665
Joined: Wed Sep 16, 2020 12:45 pm
Contact:

Get JSON for research ingredients and prerequisites

Post by blazespinnaker »

I tried this /c game.player.print(game.table_to_json(game.player.force.technologies))

but got "Error: Value(userdata) can't be saved in property tree at ROOT.__self"

Is there a json file of the ingredients/prereqs kicking around that I can use? I found one on github but it was out of date.

Or how can I use the function above? (and copy/paste / save to file!)

cheers
OptimaUPS Mod, pm for info.

Post Reply

Return to “Modding help”