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
887 stars 69 forks source link

suggestion: get old player UID #78

Open jfw225 opened 7 months ago

jfw225 commented 7 months ago

First of all, great repo guys. Thank you for the effort.

You may already know this, but I didn't see it in the README.md so I figured it may be helpful. For those (like myself) who have more than a few people playing on the server, you can get the GUID for a player by

  1. setting the admin password field in the PalWorldSettings.ini file
  2. connect to old server
  3. open chat and type /adminpassword <password>
  4. open chat and run /showplayers
  5. record the playeruid field that it shows for each player
  6. convert the playeruid number to hex (e.g. run python -c "print(hex(<your-player-id>))"
  7. perform these steps again on the new server to get the new player ID

the playeruid in hex is the prefix for the GUID (i.e. the name first part of the .sav file's name for a player).

I hope this helps someone!

jfw225 commented 7 months ago

I made a PR with an updated readme that includes the steps to find a player's GUID: https://github.com/xNul/palworld-host-save-fix/pull/79

PaddyS commented 7 months ago

Oh. We had a very weird way to figure out the IDs (Joining as a single person and see which ID updates in the saves from the changedate).

Nice catch though!

l-t-s commented 7 months ago

You can also find the PlayerUID in the escape menu after entering the AdminPassword. Clicking on a player will copy it.

StoneMoe commented 7 months ago

This only works for players who are currently online.

jfw225 commented 7 months ago

You can also find the PlayerUID in the escape menu after entering the AdminPassword. Clicking on a player will copy it.

Indeed--I included this in the update to the README in my pull request: https://github.com/xNul/palworld-host-save-fix/pull/79/files