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 68 forks source link

TeleportToPlayer not working #107

Closed electricgarlic closed 5 months ago

electricgarlic commented 5 months ago

TeleportToPlayer command on dedicated server using admin is not working for the ones affected by the saves. Tried looking for the code that references their "PlayerUId" that shows in game but no luck. Can this be fixed on Level.json or is the issue on their .sav file?

xNul commented 5 months ago

how do you know it's happening for the ones affected by the saves? I have my own co-op migrated dedicated server save and I'm able to use TeleportToPlayer without a problem.

hhc404 commented 5 months ago

I am having the same issue, it shows ‘Failed to TeleportToPlayer’ when I using the command. I have left my guild before by accident and joined again, not sure if it is the reason for causing the problem. It seems some other players facing this issue too: https://www.reddit.com/r/Palworld/comments/1abqnuc/cant_teleport_some_players/ If it can be fixed by the tool it would be great

xNul commented 5 months ago

@hhc404 now that I think about it, I noticed I wasn't able to teleport using the playeruid, but I was able to teleport using the player's steamid. Are you or @electricgarlic able to teleport when using the player's steamid? You can figure out the steamid of a player by searching their steam username at https://www.steamidfinder.com/ and looking to the right of "steamID64 (Dec):"

hhc404 commented 5 months ago

@xNul Yes, I am able to teleport using the steamid, thanks a lot! It seems the player who left guild before can only teleport by steamid and the others can be teleport by playeruid. As long as it is working by steamid it is good for me, thanks again!

xNul commented 5 months ago

Great to hear! Any idea if this is a problem with dedicated servers in general or because of my script?

hhc404 commented 5 months ago

Great to hear! Any idea if this is a problem with dedicated servers in general or because of my script?

so far so good, I didn’t face any serious problems since I have migrated our co-op server to dedicated server few days ago. The tool really helped and saved us a lot of time. Thank you so much for contributing that :)

xNul commented 5 months ago

I think this is caused by the dedicated server software and not my script, so I'm going to close this.