{"id":17887253,"url":"https://github.com/tomansion/factorio_blueprint_book_decoder","last_synced_at":"2025-04-03T02:28:36.211Z","repository":{"id":39757482,"uuid":"502198638","full_name":"Tomansion/factorio_blueprint_book_decoder","owner":"Tomansion","description":"Decode an encoded Factorio blueprint book","archived":false,"fork":false,"pushed_at":"2022-06-20T21:15:22.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T16:41:47.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tomansion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-10T22:43:46.000Z","updated_at":"2022-06-10T23:25:13.000Z","dependencies_parsed_at":"2022-08-28T19:41:56.071Z","dependency_job_id":null,"html_url":"https://github.com/Tomansion/factorio_blueprint_book_decoder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomansion%2Ffactorio_blueprint_book_decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomansion%2Ffactorio_blueprint_book_decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomansion%2Ffactorio_blueprint_book_decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomansion%2Ffactorio_blueprint_book_decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tomansion","download_url":"https://codeload.github.com/Tomansion/factorio_blueprint_book_decoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246924496,"owners_count":20855741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T13:24:24.516Z","updated_at":"2025-04-03T02:28:36.186Z","avatar_url":"https://github.com/Tomansion.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Factorio Blueprint Book Decoder\n==========================\n\n## Introduction\n\nDecode [Factorio]'s encoded `blueprint-book` into a json.\nThis script will also provide each book blueprint as a Json and as an encoded string.\n\nPlayers of [Factorio] can create \"blueprints\" which make it easier to store\nplans of sections of their factory for later reuse. These blueprints can be\nstored in a `blueprint-book` and ouputed by the game as an encoded string for sharing purpose.\n\n[Factorio](https://factorio.com/)\n\n## Usage\n\nBasic Unix/Linux commandline knowledge is assumed :-)\n\nThe script requires [Python] 3.6 (or higher) installed.\n\n```bash\n# First of all\ngit clone https://github.com/Tomansion/factorio_blueprint_book_decoder.git\ncd factorio_blueprint_book_decoder/\n```\n\n### Example\n\nYou can test the algorithm a provided blueprint book:\n\n```bash\n./decode\n```\n\nExpected output with the example:\n\n```\nfile: ./example_blueprint_books/general\nfile decoded successfully\nSaved book.json at blueprint_book_json/\n\nThe book has 9 blueprints:\n\n - empty\n - belt 2\n - belt\n - belt3\n - inputOutput\n - arms\n - arms2\n - beltFac1\n - beltFac2\n\nSaved blueprints at blueprint_book_json/blueprints\n```\n\nA folder `blueprint_book_json` will be created in the current directory.\nIt will contain the decoded blueprint book as a JSON file.\nA JSON file as well as the encoded text of each blueprint will also be available in the folder.\n\n```\nblueprint_book_json\n├── blueprints\n│   ├── arms\n│   ├── arms2\n│   ├── arms2.json\n│   ├── arms.json\n│   ├── belt\n│   ├── belt 2\n│   ├── belt 2.json\n│   ├── belt3\n│   ├── belt3.json\n│   ├── beltFac1\n│   ├── beltFac1.json\n│   ├── beltFac2\n│   ├── beltFac2.json\n│   ├── belt.json\n│   ├── empty\n│   ├── empty.json\n│   ├── inputOutput\n│   └── inputOutput.json\n└── book.json\n```\n\n### With your own blueprint book\n\n```bash\n./decode --input /my/path/to/encoded/blueprint_book\n```\n\noptional arguments:\n```\n  -h, --help                     show this help message and exit\n  -s, --silent                   Stop verbose output on STDERR\n  -i [INPUT], --input [INPUT]    Blueprint book file path\n  -o [OUTPUT], --output [OUTPUT] Folder output for the json\n  -f, --force                    Force overwrite of existing output folder\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomansion%2Ffactorio_blueprint_book_decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomansion%2Ffactorio_blueprint_book_decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomansion%2Ffactorio_blueprint_book_decoder/lists"}