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

Unable to convert .sav into .json #137

Open
stellaris2046 opened this issue Feb 7, 2024 · 0 comments
Open

Unable to convert .sav into .json #137

stellaris2046 opened this issue Feb 7, 2024 · 0 comments

Comments

@stellaris2046
Copy link

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
raw_gvas, _ = 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

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