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

Can't read player.dat file on web #9

Open
Frogperson opened this issue May 29, 2023 · 0 comments
Open

Can't read player.dat file on web #9

Frogperson opened this issue May 29, 2023 · 0 comments

Comments

@Frogperson
Copy link

I'm trying to read a Minecraft playerdata file using Flutter Web, and I'm running into a couple issues:

  1. Apparently the file I was trying to read was compressed as gzip. Digging into the code, I saw this comment:
    "On JS platforms, this does nothing, as it requires converters from 'dart:io'."
    Not a huge problem for me though, as I can detect the compression type and just use https://pub.dev/packages/archive which does support web.

  2. After decompressing, I'm getting "Error: Unsupported operation: Int64 accessor not supported by dart2js." which is from this line: https://github.com/spnda/dart_minecraft/blob/main/lib/src/utilities/readers/_byte_reader.dart#L61
    I also found this related issue: Int64 and Uint64 methods and types are not supported in Dart2JS's typeddata dart-lang/sdk#10275
    Is there anything we can do about this?

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