Hello Factorio team,
I am developing a mod with the goal of exporting a player's blueprint library to
files, which would allow for easy backups and version control using tools like
Git.
I've found that this is not currently possible due to a limitation in the Lua
API. While a LuaItemStack for a blueprint item can be easily exported to a
string using export_stack(), there is no equivalent function for the LuaRecord
objects that represent blueprints in the library (accessed via
player.blueprints).
Could you please consider adding a function to LuaRecord, similar to
LuaItemStack::export_stack()? A method like LuaRecord::export_record() that
returns the blueprint string would be a perfect solution.
Thank you for your amazing work on the game and for considering this feature
request.
Add export_record() or similar method to LuaRecord
Re: Add export_record() or similar method to LuaRecord
Okay, added LuaRecord::export_record() for 2.0.67.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Add export_record() or similar method to LuaRecord
Thank you for considering adding this function. I'm really looking forward to the release.