-
Notifications
You must be signed in to change notification settings - Fork 2
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
running the script #16
Comments
The readme example is a newer version than the npm package. with the version currently on npm, you need to do: const RecordedGame = require('recage').default That'll be fixed in the next release. The current version on npm is missing a lot of the header information; I'm planning on doing a new release once the header reading is quite robust so you can get more player info and so on out of it. |
the error is gone. |
Change it to |
It worked, but does it handle all records version? I tried with wk record, and some old aoc record, both gave me something like this : u15: <Buffer 00 00 00 00 00 00 00> } |
I think it only works with UserPatch 1.4 records right now. WololoKingdoms uses UP 1.5. |
weird, i tried it with UP 1.4 version but im getting this :Error: EBADF: bad file descriptor, close |
When i try to run the script i get this error:
TypeError: RecordedGame is not a function
The text was updated successfully, but these errors were encountered: