heroiclabs / nakama-unity

Unity client for Nakama server.
https://heroiclabs.com/docs/unity-client-guide
Other
411 stars 75 forks source link

Output from MatchJoinAttemp isn't right #95

Closed androuinremi closed 4 years ago

androuinremi commented 4 years ago

Issue created from this post : https://forum.heroiclabs.com/t/authoritative-join-attempt-question/926

Using golang, I’ve created my own match class. When a player try to join the match I’m using the function MatchJoinAttempt. to decide if he can or not When I’m rejecting a join attempt, I want to reply the reason to the player. So as the documentation says, I’m returning the reason as a string. The problem is, I don’t know how to retrieve this string from the client side. Because I reject the join attempt, the function is throwing an exception. And the exception message is always (Match join rejected).

lugehorsam commented 4 years ago

@androuinremi This isn't reproducible on the newest version of the game server. The message you are receiving is the default one if no failure reason is supplied, so it's either due to the out-of-date version of the server or the reason being returned as an empty string.