xNul / palworld-host-save-fix

Fixes the bug which forces a player to create a new character when they already have a save. Useful for migrating maps from co-op to dedicated servers and from one dedicated server to another.
MIT License
885 stars 69 forks source link

zlib.error: Error -3 while decompressing data: invalid distance too far back #118

Closed KillianAubin closed 8 months ago

KillianAubin commented 8 months ago

I get this error when I send the command line. Someone already got this error ? thanks a lot

Traceback (most recent call last): File "C:\Users\Killian.cargo\bin\fix-host-save.py", line 244, in main() File "C:\Users\Killian.cargo\bin\fix-host-save.py", line 75, in main sav_to_json(uesave_path, level_sav_path) File "C:\Users\Killian.cargo\bin\fix-host-save.py", line 162, in sav_to_json uncompressed_data = zlib.decompress(data[12:]) ^^^^^^^^^^^^^^^^^^^^^^^^^^ zlib.error: Error -3 while decompressing data: invalid distance too far back

xNul commented 8 months ago

A couple other people have opened issues about this and the problem turned out that they had the dedicated server running when they tried copying the save to the temporary folder and running the script. If you exit the dedicated server first, you probably won't get this error anymore.