Skip to content

Latest Discovery update breaks parsing of shipclass.dll #18

@san-e

Description

@san-e
  File "d:\repos\discoWikiGen\.venv\Lib\site-packages\flint\entities\ship.py", line 83, in type
    return self._ship_classes()[self.ship_class]
           ^^^^^^^^^^^^^^^^^^^^
  File "d:\repos\discoWikiGen\.venv\Lib\site-packages\flint\entities\ship.py", line 179, in _ship_classes
    result.extend(dll.parse(ship_class, 0).values())
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\repos\discoWikiGen\.venv\Lib\site-packages\flint\formats\dll.py", line 163, in parse
    resources.update(read_string_table())
                     ^^^^^^^^^^^^^^^^^^^
  File "d:\repos\discoWikiGen\.venv\Lib\site-packages\flint\formats\dll.py", line 101, in read_string_table
    resource_string = ResourceDirectoryString(f.read(2))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "d:\repos\discoWikiGen\.venv\Lib\site-packages\deconstruct\struct.py", line 41, in __init__
    unpacked = iter(struct.unpack(self.format_string, buffer))

something changed in shipclass.dll to break the dll parser. it's the only file this happens with

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions