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
886 stars 70 forks source link

Failed Invalid Login Player Character Handle #127

Open enex8 opened 10 months ago

enex8 commented 10 months ago

Hi. I was able to run the script and convert my .sav from a server host to my pc's dedicated server without a problem. However, when using the same process to convert my pc's .sav to another service's server, I kept getting a error when connecting to the server in game. The error message is Failed Join Game. [LocalPlayerId: <id>][<new guid>] Result = FailedInvalidLoginPlayerCharacterHandle. Does anyone know how to fix this? Thanks!

Ivanb1ade commented 10 months ago

I had the same problem but was able to fix it via this workaround:

  1. Follow the steps xNul provided to copy your save data to the new guid
  2. go to Pal/Saved/Config/WindowServer(or LinuxServer)/GameUserSettings.ini
  3. Remove old Server ID from DedicatedServerName=
  4. Start Server to create a new Server ID
  5. Copy both the LevelMeta.sav and Level.sav from old Server ID
  6. Paste LevelMeta.sav, Level.sav, and new guid to new Server ID
  7. Profit

All progress was transferred for what i could see, hope this works for you as well!

marvinwz commented 10 months ago

I'm having the same issue. the fix @Ivanb1ade posted did not fix the problem for me.

NightCrawler127 commented 10 months ago

Is anyone encountering this error on XBox? I've not been able to play multiplayer since the first day - my character data is corrupted. The PC fix is to delete the data but that's not possible on XBox. Yesterday was the first time I got an actual error instead of the infinite loading screen.

grar21 commented 10 months ago

The same for my host as well. Everyone else can load in fine but not the actual host. (Dedicated linux server from co-op) @xNul any ideas?

xNul commented 10 months ago

@grar21 no idea because I've never experienced this error before

krantawan commented 10 months ago

@enex8 After you modify the save in the Players folder using the script, don't forget to place the Level.sav file in the dedicated server again, as the Level.sav file has been modified by the script.

akiral commented 10 months ago

@enex8

100% the cause - Remember to move not only the patched player sav file but also the Level.sav.

xNul commented 10 months ago

honestly, you should be moving the whole save folder. There could be more files that are affected

enex8 commented 10 months ago

I think I found the problem though not 100% sure. After converting the file using script, I used palworld-save-tools and the json had no problem. But after uploading the files to the remote server using ftp and starting the server, and pulling the files again, some of the guids in the Level.sav reverted back to the old guid. Probably because the remote server didn't shut down properly or something so it got overwritten.

xander16o2 commented 9 months ago

Hi there, I've successfully transfered my data from 1 character to another. But when using the took on my friend's character they become unable to join the game with the above error showing. Is there any steps im missing to fix this? 20240207_202525

drewgilkey commented 9 months ago

ok probably most people doing something I did which was really simple stupid. I was putting the command line as old, then new guid vs new then old guid

TotalLag commented 9 months ago

ran into this problem tonight as well. before you migrate, you have to make sure your new guid character is at least level 2

DunlayB commented 8 months ago

hi @xNul i already tried everything i have found online but nothing fixes this issue, could you help me with this? its so frustrating cause or is the Failed Invalid Login player Character handles issue or this one image_2024-03-20_094647671