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: Warning: EOF not reached #138

Open
Joey901201 opened this issue Feb 7, 2024 · 1 comment
Open

Exception: Warning: EOF not reached #138

Joey901201 opened this issue Feb 7, 2024 · 1 comment
Labels
corrupted-file Issue is due to a corrupted save file

Comments

@Joey901201
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 C:\Users\Downloads\palworld-save-tools-windows-v0.18.0>python convert.py "C:\Users\Downloads\palserver123\BA9C13FF41FDE4E008A18EA6C7EBE74A\Level.sav"
Converting C:\Users\Downloads\palserver123\BA9C13FF41FDE4E008A18EA6C7EBE74A\Level.sav to JSON, saving to C:\Users\Downloads\palserver123\BA9C13FF41FDE4E008A18EA6C7EBE74A\Level.sav.json
Decompressing sav file
Loading GVAS file
Traceback (most recent call last):
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\convert.py", line 160, in
main()
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\convert.py", line 71, in main
convert_sav_to_json(
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\convert.py", line 114, in convert_sav_to_json
gvas_file = GvasFile.read(
^^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\gvas.py", line 131, in read
gvas_file.properties = reader.properties_until_end()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\archive.py", line 279, in properties_until_end
properties[name] = self.property(type_name, size, f"{path}.{name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\archive.py", line 292, in property
value = self.struct(path)
^^^^^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\archive.py", line 403, in struct
value = self.struct_value(struct_type, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\archive.py", line 430, in struct_value
return self.properties_until_end(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\archive.py", line 279, in properties_until_end
properties[name] = self.property(type_name, size, f"{path}.{name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\archive.py", line 289, in property
value = self.custom_properties[path][0](self, type_name, size, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\rawdata\group.py", line 17, in decode
group["value"]["RawData"]["value"] = decode_bytes(
^^^^^^^^^^^^^
File "C:\Users\Downloads\palworld-save-tools-windows-v0.18.0\palworld_save_tools\rawdata\group.py", line 77, in decode_bytes
raise Exception("Warning: EOF not reached")
Exception: Warning: EOF not reached

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

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

cheahjs commented Feb 8, 2024

The group data is corrupted by one-byte, do you need the save file to be recovered? Otherwise your best option is to start the server and make another save. The guild created by the player howardlee0517 has a player count of zero instead of one, so the tool errors out.

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

2 participants