zaigie / palworld-server-tool

[中文|English|日本語]基于.sav存档解析和REST&RCON优雅地用可视化界面管理幻兽帕鲁专用服务器。/ Through parse .sav and REST&RCON, visual interface management PalWorld dedicated server.
Apache License 2.0
807 stars 93 forks source link

Errors on Convert #181

Closed darkbyte42 closed 8 months ago

darkbyte42 commented 8 months ago

[SAV-CLI] 2024/03/03 - 21:47:01 | INFO | Converting... [SAV-CLI] 2024/03/03 - 21:47:06 | INFO | Structuring players... Traceback (most recent call last): File "sav_cli.py", line 37, in File "structurer.py", line 217, in structure_player File "structurer.py", line 348, in getPlayerItems File "palworld_save_tools\palsav.py", line 18, in decompress_sav_to_gvas Exception: not a compressed Palworld save, found too many null bytes, this is likely corrupted [3036] Failed to execute script 'sav_cli' due to unhandled exception! 2024/03/03 - 21:47:11 | ERROR | task/task.go:68 | error waiting for command: exit status 1

So I get this error with the latest update, the data ingame seems to work ok so not quiet sure why I get this error. Also can confirm it isnt loading in the inventory but pals seem to loadup ok so I assume its related. I checked a few players did not see any working inventory list. But just also want to say this is my favorite server manager thanks so much for sharing it to the world!

UPDATE: I was able to fix this by removing the player.sav files that were corrupted. Once I did this I was able to see items on everyone.

zaigie commented 8 months ago

This is an error reported by another library palworld-save-tools, or you can send me the archived zip package, and I'll see where the problem is.

darkbyte42 commented 8 months ago

Thanks, I sent you an email attached to your GitHub profile I assume you wanted the folder for the saves.

zaigie commented 8 months ago

I have received the relevant files and tested them. I found that the problem may be with the sav file itself. The player archive file in the Players directory is not a standard archive format, but more like it has been damaged.

Does your game work normally?

darkbyte42 commented 8 months ago

Is there any way you could point me in the right direction for fixing it its all my server players so basically stuck with it but maybe if I could repair the file somehow I could fix this issue.

EDIT: From what I can see its working normally but now and again someone save gets corrupted but uncommon. Trying to avoid the wipe if possible but I am not sure if this is fixable.

zaigie commented 8 months ago

Try

https://github.com/xNul/palworld-host-save-fix

darkbyte42 commented 8 months ago

Thank you I will give it ago hopefully it works out was looking forward to using the item data thanks for clearing it up though I'll try and fix it.