Photon raises the OnJoinedLobby callback when the following error happens.
"Operation failed: OperationResponse 226: ReturnCode: 32764 (Game closed). Parameters: {} Server: GameServer"
I would expect to get the OnPhotonRandomJoinFailed callback in these cases.
----
A bit longer explanation:
Or games first tries to JoinRandomRoom. If that fails we call CreateRoom. The room will be closed by the master-client when 32 players have joined or after 30 seconds, whichever comes first.
Sometimes the master client closes the room at the exact same time as an other client joins. At this point, the late client will be kicked out and given a "ReturnCode: 32764 (Game closed)", after which the OnJoinedLobby is raised. What I would like to happen is to get the OnPhotonRandomJoinFailed callback. That way I could keep same pattern for create/join calls. Naturally I can not redirect my OnJoinedLobby to CreateRoom calls, that would break the logic.
Can I change this myself in PUN or would this be a feature-request for the dev team?
Best, He
↧