Skip to content

Issue with ggpk_viewer #141

Description

@scottmudge

I've encountered an issue with GGPK Viewer. It looks like the GGPK records are not sorting properly:

...\PyPoE\poe\file\ggpk.py:758: UserWarning: Invalid tag b'\x06\x00\x00\x00' - seeking next valid tag
  warnings.warn('Invalid tag %s - seeking next valid tag' % e.args)
Traceback (most recent call last):
  File "...\PyPoE\PyPoE\ui\ggpk_viewer\menu.py", line 91, in _update_ggpk_model
    self._thread.ggpk_file.directory.walk(self._ggpk_sort)
  File "...\PyPoE\PyPoE\poe\file\shared\__init__.py", line 556, in walk
    function(**data)
  File "...\PyPoE\PyPoE\ui\ggpk_viewer\menu.py", line 85, in _ggpk_sort
    node.children = sorted(node.children, key=sorter)
  File "...\PyPoE\PyPoE\ui\ggpk_viewer\menu.py", line 84, in <lambda>
    sorter = lambda obj: (isinstance(obj.record, FileRecord), obj.name)
AttributeError: 'str' object has no attribute 'record'

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