Right now, AFAIK there is no API to read or write to blueprint descriptions.
I have a mod which deals with creating blueprints; it would be nice if I would allow users to save/write to descriptions, but this is currently not (reasonably) possible to do.
Allow read/write to blueprint's description
-
- Inserter
- Posts: 43
- Joined: Fri Jun 11, 2021 5:20 pm
- Contact:
-
- Burner Inserter
- Posts: 13
- Joined: Thu Jan 09, 2020 3:36 pm
- Contact:
Re: Allow read/write to blueprint's description
I use his mod (https://mods.factorio.com/mod/bp100) a lot and I would like to add my support for this request. Right now I have to manually copy the description over to the blueprints created in Staged Blueprint Planning whenever I modify any of the blueprints that have descriptions. Enabling the mod to have access to the blueprint description would simplify this process and make the mod that much more versatile ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: Allow read/write to blueprint's description
We also really want this.
A workaround with edge case issues is to export to a blueprint string, decode the JSON, modify the JSON, and import it back. I'm blind and working "in the backend" if you will by the nature of mods but I believe the edge case is that if the blueprint is in hand then the rotation resets. Not 100% sure. I do know that another edge case of a blueprint in hand is that cursor_stack_temporary resets.
A workaround with edge case issues is to export to a blueprint string, decode the JSON, modify the JSON, and import it back. I'm blind and working "in the backend" if you will by the nature of mods but I believe the edge case is that if the blueprint is in hand then the rotation resets. Not 100% sure. I do know that another edge case of a blueprint in hand is that cursor_stack_temporary resets.