Skip to content

Entries Undefined when reading ADT #131

Open
@davemaltby

Description

@davemaltby

When reading any ADT file the following error is returned:

TypeError: Cannot read properties of undefined (reading 'entries') at Object.doodadEntries (\node_modules\blizzardry\lib\adt\index.js:117:43) at Struct._parseFields (\node_modules\restructure\src\Struct.js:51:22) at Struct.decode (\node_modules\restructure\src\Struct.js:18:12) at Struct._parseFields (\node_modules\restructure\src\Struct.js:53:22) at Struct.decode (\node_modules\restructure\src\Struct.js:18:12) at ArrayT.decode (\node_modules\restructure\src\Array.js:49:30) at Struct._parseFields (\node_modules\restructure\src\Struct.js:53:22) at Struct.decode (\node_modules\restructure\src\Struct.js:18:12) at Function.ADT.decode (\node_modules\blizzardry\lib\adt\index.js:235:16) at Object.<anonymous> (\index.js:22:15)

Checking Index.js the returned count for doodads is 0 so I'm assuming either I'm trying to read the wrong file (although the one in the example in the Readme does the same) or the structures changed.

Suggestions welcome

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @davemaltby

        Issue actions

          Entries Undefined when reading ADT · Issue #131 · wowserhq/blizzardry