Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: fromfame on June 03, 2020, 04:54:24 PM
-
I've connected to Master then created a room which was successful, however upon joining the room (of the same name as room created) it always gives me this error.
JoinRoom failed. Client is on GameServer (must be Master Server for matchmaking) and ready. Wait for callback: OnJoinedLobby or OnConnectedToMaster.
I don't even know how to join a gameserver yet, not sure what happened.
I've attached a screen shot below, I've labeled the sequence. Would appreciate help.
-
Hi,
You already are in a room, so you are on a "GameServer", you can't join a room while in a room, you must first leave the room and come back to the "MasterServer", and from there, you can join a room again.
Bye,
Jean
-
I see, so by creating a room I’m also joining that room.
It’s interesting the action (or call) works like that, thanks for clarifying!
-
Hi,
yes, it's by design within PUN, you can't create a room without joining it de facto.
Bye,
Jean
-
Hey Jean, took me half the day but I found out why things have been so inconsistent for me!
I was following this video https://www.youtube.com/watch?v=V_YaXdvqmOg (https://www.youtube.com/watch?v=V_YaXdvqmOg)
Turns out both the actions (Connect to Master, Create Room, Etc) and Photon's GLOBAL SYSTEM EVENTS (PHOTON / Connect To Master or PHOTON / On Create Room, Etc) both call to Photon and will conflict if they do it after each other.
The issue I had above was that I called to Photon already by using the global event 'PHOTON / ON CREATE ROOM' instead of first using 'Create Room' action to set the details I want, then call in the action:)
Note for anyone who's confused in the future!
-
Hi,
I don't think you are correct here.
connect to master doesn't create a room, and creating a room can not work if you are not on the master server or on the lobby server.
These global events are driven by photon callback themselves. you don't send them manualy, they must only be used for feedback, not for controlling pun.
Bye,
Jean
-
Hi Jean,
Sorry, it all works perfectly fine now after reading as much documentation you made as I could.
Thanks for your help.
-
Hi,
Great :)
Bye,
Jean