TeleportToPlaceInstance is broken w/ out error message

If you try and use TeleportToPlaceInstance it only works if the Instance ID you are teleporting to matches the Instance ID the target player is currently in. (Basically, if you’re teleporting to the same server.)

However, if you try and teleport to another server within the same game and place, it doesn’t work!
The worst part of this bug being that it doesn’t output an error message.

I have thoroughly ensured that I’m properly using GetPlayerPlaceInstanceAsync, and that the server(s) I’m trying to reach have an available slot, and that it replicated between different games. This is not a game-specific bug.

Here’s an example using the exact same code that can be found on the wiki with a friend waiting in another server of the same game.

3 Likes

There is a bug with GetPlayerPlaceInstanceAsync where the “success” value often/sometimes returns false even though the request was successful. Do not rely on the first value – just check if the placeId / instanceId that are returned are not nil. The reason why you don’t see a teleport error is because the request was actually successful even though “success” was false. The error message is nothing, an empty string.

3 Likes

Thanks, I’ll give this a go!

Edit: I couldn’t find any mention of said bug on here, or I wouldn’tve posted. Seems like the wiki could use some temporary warning about this for those of us who aren’t used to using it.

1 Like

Documenting bugs on the wiki sounds dangerous…

1 Like

At least letting people know it’s bugged, I’m not competent enough to have figured this out on my own, and none of the other devs I know knew about it either.

1 Like

Its a good thing you made a bug report then :slightly_smiling_face:

1 Like