Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParseError: expected 0x00 but got 0x01 at position 47104 (0xb800) #15

Open
USSX-Hares opened this issue Nov 25, 2023 · 0 comments
Open

Comments

@USSX-Hares
Copy link

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 <module>
    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)
  File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 2201, in parse_library_objects
    handler_result = handler(stream, index, library_version)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 2721, in parse_blueprint_book
    parse_library_objects(stream, index, result, library_version)
  File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 2201, in parse_library_objects
    handler_result = handler(stream, index, library_version)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 2662, in parse_blueprint
    parse_entities(stream, index, result)
  File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 2326, in parse_entities
    handler(stream, index, entity)
  File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 867, in eh_logistic_container
    ep_v1_1_62_5_flag(stream, index, entity)
  File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 581, in ep_v1_1_62_5_flag
    stream.expect(0x00)
  File "D:\git\gitlab\tools\factorio-blueprint-chef\src\factorio_blueprint_decoder\decode.py", line 347, in expect
    raise ParseError(f"expected {expected:#04x} but got {actual:#04x} at position {position} ({position:#x})")
ParseError: expected 0x00 but got 0x01 at position 47104 (0xb800)

Blueprint Storage

blueprint-storage.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant