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

Entries Undefined when reading ADT #131

Open
davemaltby opened this issue Oct 9, 2022 · 0 comments
Open

Entries Undefined when reading ADT #131

davemaltby opened this issue Oct 9, 2022 · 0 comments

Comments

@davemaltby
Copy link

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

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