Calculator-relevant Data Exporter to JSON


Gathers set amount of data during data-final-fixes phase, allowing it to also retrieve icon paths. Currently gathers set bits of data regarding recipes, items, fluids, assembling machines, furnaces, mining drills, offshore pumps, modules and item groups. The JSON export is contained in Factorio's log, so you'll still need to automate some form of extraction from there. Not relevant for data in this export (as of time of writing), but some values in data.raw use infinity. The JSON parses used converts this to `(-)inf` as a value, which is invalid JSON. Make sure to perform a simple replace on this to something sensible for your usecase, eg. 0 or "inf".

Utilities
1 year, 11 months ago
1.0 - 1.1
151

i Export to separate file

3 years ago

Hey there!

Would you consider to write the exported data to its own file? for reference, these exporters do it:
https://mods.factorio.com/mod/factorio-data-exporter
https://mods.factorio.com/mod/recipelister

Can you also update tzhe mod for Factorio version 1.1?

Thanks!

3 years ago
(updated 3 years ago)

Sorry for the late reply, I enabled subscription emails so I'll actually know when a discussion is started next time.

Short answer to the first question: I can't.
Long (technical) answer to the first question: For my purposes, I need to have the file names of the item icons and such. This data is only available during the data stage. During this stage (as far as I know) I can only write to the log or stdout (console) and not to custom files.
If I could, naturally I would.

For the second part: Picking this up right now, also quickly fixing some typos I noticed.

New response