Command Line Tool in Python to Manage Blueprint Exchange Strings

Enhance your gameplay with these tools. This category is also the right place for tools useful for modders.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
User avatar
LittleBigDej
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Nov 23, 2016 7:12 pm
Contact:

Command Line Tool in Python to Manage Blueprint Exchange Strings

Post by LittleBigDej »

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:

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)
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!
Post Reply

Return to “Tools”