factorio-blueprint-decoder
factorio-blueprint-decoder copied to clipboard
Decode Factorio's binary `blueprint-storage.dat` file into JSON for backup, downgrading or further manipulation.
License
What license is this project using? Is it light OSI like BSD/MIT, or heavy like GPL, or even custom one?
### Blueprint Storage Same blueprint storage as in #15 ### Workaround Changed lines 231-234 to the following: #### From https://github.com/asheiduk/factorio-blueprint-decoder/blob/d6cd1562f52e715721ce448be977e2d4fc71600a/decode#L231-L234 #### To ```python type: Index.Type if (prototype in self._type_mapping): type...
### Stacktrace ``` D:\git\gitlab\tools\factorio-blueprint-chef\.venv-312\Scripts\python.exe D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py C:\Users\Hares\AppData\Roaming\Factorio\blueprint-storage.dat Traceback (most recent call last): File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 2905, in library = parse_blueprint_library(PrimitiveStream(f)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 2576, in parse_blueprint_library parse_library_objects(stream, global_index, book_item, library_version)...
Radars and turrets have a new byte -- purpose unknown. This byte must have been introduced somewhere between 1.1.62 (exclusive) and 1.1.87 (inclusive). TODOs - fix decoder - narrow down...
Handle simple-entity-with-force entities. Tested with text plates [blueprint-storage.zip](https://github.com/user-attachments/files/15928963/blueprint-storage.zip) Closes #16