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

Cannot convert Level.sav #124

Open
ShadyGame opened this issue Feb 4, 2024 · 3 comments
Open

Cannot convert Level.sav #124

ShadyGame opened this issue Feb 4, 2024 · 3 comments
Labels
corrupted-file Issue is due to a corrupted save file

Comments

@ShadyGame
Copy link

ShadyGame commented Feb 4, 2024

So i had this cheater ruining my server, destroying palboxes from everybody. he even created a new guild where some pals from my server members were all mixed there.

I banned him, and backed up my level.sav and all player data, he cameback and did all again..

I tried to restore my files but when someone joins the server the level.sav resets and we have to start over.

I tried to decompress level.sav to json but i get an error

PS C:\Users\x\Downloads\Compressed\palworld-save-tools-windows-v0.17.1> python convert.py Level.sav
Converting Level.sav to JSON, saving to Level.sav.json
Decompressing sav file
Traceback (most recent call last):
  File "C:\Users\x\Downloads\Compressed\palworld-save-tools-windows-v0.17.1\convert.py", line 140, in <module>
    main()
  File "C:\Users\x\Downloads\Compressed\palworld-save-tools-windows-v0.17.1\convert.py", line 64, in main
    convert_sav_to_json(
  File "C:\Users\x\Downloads\Compressed\palworld-save-tools-windows-v0.17.1\convert.py", line 92, in convert_sav_to_json
    raw_gvas, _ = decompress_sav_to_gvas(data)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\x\Downloads\Compressed\palworld-save-tools-windows-v0.17.1\palworld_save_tools\palsav.py", line 35, in decompress_sav_to_gvas
    uncompressed_data = zlib.decompress(data[12:])
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^
zlib.error: Error -3 while decompressing data: invalid code lengths set

any hope in recovering this? too many hours invested

@cheahjs cheahjs added the corrupted-file Issue is due to a corrupted save file label Feb 4, 2024
@Elyx0
Copy link

Elyx0 commented Feb 6, 2024

Same issue now, worked before

@tonyHALO117
Copy link

my sav file also came back with a likely corrupted exception, is there anything that can be done to fix it?

@jeanibarz
Copy link

jeanibarz commented May 1, 2024

I had the same issue. I was able to fix the issue by upgrading palworld-save-tools from 0.17.1* to 0.22.0.

I figured it was unlikely to be a corrupted save because the problem was identical for my local save and the save of my dedicated server.

*it is the version currently indicated in the README here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
corrupted-file Issue is due to a corrupted save file
Projects
None yet
Development

No branches or pull requests

5 participants