Command Line Tool in Python to Manage Blueprint Exchange Strings
Posted: Mon Oct 28, 2024 8:50 pm
Hello!
I wanted to share a small Python project I wrote with the intention of keeping track and organizing my blueprints. With the Factorio 2.0 release around the corner, it helped me archive my good old 1.1 blueprints!
https://github.com/pierre-dejoue/factorio-blueprints
The tool is focused on high-level information regarding the blueprint: The game version, its contents, etc. Here is an example of output on a blueprint book that itself contains books:
The tool can also be used to extract part of the blueprint either as an import string that can be loaded in game, or as a pretty-printed JSON file which can be edited, then written back to a blueprint string. More information on the github page.
I hope it can be useful to someone!
I wanted to share a small Python project I wrote with the intention of keeping track and organizing my blueprints. With the Factorio 2.0 release around the corner, it helped me archive my good old 1.1 blueprints!
https://github.com/pierre-dejoue/factorio-blueprints
The tool is focused on high-level information regarding the blueprint: The game version, its contents, etc. Here is an example of output on a blueprint book that itself contains books:
Code: Select all
$ python ./blueprints.py -f squiggles_in_a_book.txt -l 1
Book: Squiggles in a Book
Version: 1.1.104
Contents:
#000 Blueprint Book: Yellow Mining/Smelting (small E-Poles only)
#000 Blueprint: Smelter Array (Small E-Poles)
#001 Blueprint: Steel Smelterino V1
#002 Blueprint: Diagonal Miners
#003 Blueprint Book: Diagonal Mining
#001 Blueprint Book: Science!
#000 Blueprint: Automation/Logistic Science (90/m)
#001 Blueprint: Chemical Science Expanded (90/m)
#002 Blueprint: Military Science (90/m)
#003 Blueprint: Production Science (90/m)
#004 Blueprint: Utility Science (90/m)
I hope it can be useful to someone!