xNul / palworld-host-save-fix

Fixes the bug which forces a player to create a new character when they already have a save. Useful for migrating maps from co-op to dedicated servers and from one dedicated server to another.
MIT License
888 stars 70 forks source link

Player cannot interact with anything after repairing #168

Open okasas100110 opened 8 months ago

okasas100110 commented 8 months ago

Hello, dear everyone: When I restarted my Linux server at noon, I ran into a serious problem, my save file got corrupted and I had to re-create the character. Before I re-created the character, I saved the save file on my server. When I converted the .sav to .json, I found that the "save_game_class_name" field changed to "None.PalWorldPlayerSaveGame" , I tried to fix it to "/Script/Pal.PalWorldPlayerSaveGame", but my character cannot interact with any items and my UI disappears. There is no response to any key presses, including esc, tab, etc. This is my nearly 100 hour archive, please help me to restore it, thank you! Saved.zip ![Uploading Help_me.png…]()

OriginZero commented 8 months ago

I also encountered a similar problem, did you solve it?

okasas100110 commented 8 months ago

I also encountered a similar problem, did you solve it?

No, I didn't. I think my save file is corrupted. I used this tool to parse my save file https://github.com/magicbear/palworld-server-toolkit When I used the "Repair All User" function, I found the backpack and pal information in my character were broken. After repairing, all my items and pal were lost. I think there is no way to fix it. Fortunately, the character level is still there. I can only manually add some props and start again.

OriginZero commented 8 months ago

Good luck, I fixed my save using this project https://github.com/cheahjs/palworld-save-tools.

My steps:

  1. Convert the Level.sav file to json and then to sav again
  2. Convert the user sav file to json, and change the {"save_game_class_name": "None.PalWorldPlayerSaveGame"} value to "/Script/Pal.PalWorldPlayerSaveGame"

I found that this problem is usually caused by restarting the game, but the pal-server takes up too much memory and the game cannot be restarted. So I chose to kill -9 pal-server directly. At least for now I don't get save errors anymore.

RdvorakNewBoundary commented 5 months ago

So I had a similar issue after a server crash. I was able to get my UI back by having a Pal kill my character.