cheahjs / palworld-save-tools

Tools for converting Palworld .sav files to JSON and back
MIT License
790 stars 71 forks source link

Unable to convert .sav into .json #137

Open stellaris2046 opened 7 months ago

stellaris2046 commented 7 months ago

Common issues before reporting NO Have you modified the save files NO Have you tried the latest release YES Describe the bug Can‘t convert level.sav into level.sav.json with the code below.

PS D:\desktop\pal fix kit> python3 convert.py "C:\Users\13922\Documents\Tencent Files\1584137228\FileRecv\Level.sav" Converting C:\Users\13922\Documents\Tencent Files\1584137228\FileRecv\Level.sav to JSON, saving to C:\Users\13922\Documents\Tencent Files\1584137228\FileRecv\Level.sav.json Decompressing sav file Traceback (most recent call last): File "D:\desktop\pal fix kit\convert.py", line 160, in main() File "D:\desktop\pal fix kit\convert.py", line 71, in main convert_sav_to_json( File "D:\desktop\pal fix kit\convert.py", line 105, in convert_sav_to_json rawgvas, = decompress_sav_to_gvas(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\desktop\pal fix kit\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 block type

Copy of .sav or .sav.json files Level.zip