JannikBirn / palworld-host-save-fix

A variation of the Palworld Host Save Fix from xNul with additional bug fixes. This script can be used in a similar way to convert co-op games to dedicated server and vice versa.
Other
84 stars 6 forks source link

Program crashes after writing player .sav file #29

Open meat-stick opened 4 months ago

meat-stick commented 4 months ago

After selecting the "Level.sav" file and selecting the player to migrate, a y/n overwrite prompt happens on the terminal. After selecting "y" the program begins to covert and patch the files, but after the json player files are compressed back to sav, a FileNotFoundError: [WinError 2} throws and claims the player .sav file is not found because the program deleted it. After crash, the original player file is gone and the Level.json file is still present. IMG_4343

meat-stick commented 4 months ago

I discovered that this happens because instead of transferring servers, I am trying to recover an old account that was lost due to a server crash. the newly created account has the same GUID as the one I want to recover, so it fails. I manually edited the new player GUID using a dummy file so the program can work but it still still prompts me to make a new character.

MrKuenning commented 1 month ago

I am getting the same error. I am not trying to migrate servers,

I have a local dedicated server that just decided to prompt all players to create new characters. Can I use this tool to correct this or is there a tool I can use to migrate / repair the characters to the correct Steam logins?

I can see my 18KB save file that won't connect / load, then when I create a new dummy character, that same file is replaced by a 3KB file. I tried converting both of those files to JSON and comparing the differences.