Page 1 of 1

Command Line blueprint-storage.dat Export

Posted: Fri Mar 01, 2019 7:14 pm
by darklich14
How can I dump a list of strings from a map and/or my personal blueprint-storage.dat file? It looks like serialized JSON but I'd like to know what metadata or headers, etc precede/delimit the blueprints so I can parse it or maybe there's another option. I have dozens of blueprint-storage.dat files and no way am I loading every old revision of the game and every blueprint-storage.dat file and all interesting maps and manually exporting every string using the in-game interface. This must be automate-able!

Re: Command Line blueprint-storage.dat Export

Posted: Sun Mar 03, 2019 7:05 pm
by invisus
There was at least some discussion along these lines in a recent FFF topic, (quote below).

There is also a somewhat related topic in Ideas and Suggestions.

It seems that the more likely outcome of such a feature would be to change the storage format of the blueprint library on disk as opposed to creating an export tool/utility. However kovarex suggests below that "just making backups" should be sufficient in his eyes.
kovarex wrote:
Fri Feb 15, 2019 9:21 pm
dee- wrote:
Fri Feb 15, 2019 9:00 pm
Are blueprints and blueprint books automatically synced as individual files/directories from and to the disk?
Then I could init a Git repository there and version control all my blueprints...
:geek:
They are not (just blueprint.dat). What you say makes sense, but I'm not sure what to do with that :) A super-user option to keep blueprints in directory structure instead of a file? Well, i believe, that just making backups of the file is enough for the typical geek.

Re: Command Line blueprint-storage.dat Export

Posted: Thu Mar 07, 2019 8:16 pm
by darklich14
Thanks to your comment, I found this https://lua-api.factorio.com/latest/Lua ... port_stack

Not sure how to parse available blueprints whether in player's lib or game BPs or whatnot. Will keep digging.