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

Exception in thread "main" java.nio.BufferUnderflowException #65

Closed
digoo opened this issue Dec 20, 2022 · 0 comments
Closed

Exception in thread "main" java.nio.BufferUnderflowException #65

digoo opened this issue Dec 20, 2022 · 0 comments

Comments

@digoo
Copy link

digoo commented Dec 20, 2022

Compiled from the latest code with java 17

When trying to convert a char fch to json I got:

java -jar valheim-save-tools.jar char.fch char.json -v
INFO Reading from /home/user/GitHub/valheim-save-tools/build/libs/char.fch
WARN Character version 37 encountered, last tested version was 33
WARN Map version 7 encountered, but latest tested map version was 4
WARN Object at 92 with size 8379 was not fully read, 8371 bytes remain
WARN At net.kakoen.valheim.save.archive.character.WorldPlayerData.<init>(WorldPlayerData.java:39)
WARN Object at 4 with size 48184 was not fully read, 39717 bytes remain
WARN At net.kakoen.valheim.save.archive.ValheimCharacter.<init>(ValheimCharacter.java:41)
WARN File not fully read, 68 bytes remain
Exception in thread "main" java.nio.BufferUnderflowException
        at java.base/java.nio.ByteBuffer.get(ByteBuffer.java:798)
        at java.base/java.nio.ByteBuffer.get(ByteBuffer.java:826)
        at net.kakoen.valheim.save.parser.ZPackage.readBytes(ZPackage.java:136)
        at net.kakoen.valheim.save.archive.character.MinimapData.<init>(MinimapData.java:38)
        at net.kakoen.valheim.save.archive.character.WorldPlayerData.lambda$new$0(WorldPlayerData.java:39)
        at net.kakoen.valheim.save.parser.ZPackage.readFixedSizeObject(ZPackage.java:163)
        at net.kakoen.valheim.save.parser.ZPackage.readLengthPrefixedObject(ZPackage.java:187)
        at net.kakoen.valheim.save.archive.character.WorldPlayerData.<init>(WorldPlayerData.java:39)
        at net.kakoen.valheim.save.archive.ValheimCharacter.lambda$new$1(ValheimCharacter.java:58)
        at net.kakoen.valheim.save.parser.ZPackage.readFixedSizeObject(ZPackage.java:163)
        at net.kakoen.valheim.save.parser.ZPackage.readLengthPrefixedObject(ZPackage.java:187)
        at net.kakoen.valheim.save.archive.ValheimCharacter.<init>(ValheimCharacter.java:41)
        at net.kakoen.valheim.cli.SaveToolsCLI.readValheimArchive(SaveToolsCLI.java:123)
        at net.kakoen.valheim.cli.SaveToolsCLI.main(SaveToolsCLI.java:52)

Can you please update the tool?
Thanks in advance!

@Kakoen Kakoen closed this as completed in 01c8fd1 Apr 21, 2023
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