P.U.N. - Photon customRoomProperties matchmaking issue [SOLVED]

Hello!
I’m trying to implement custom game modes for my multiplayer game, which uses PUN. I have it set up so that creating/joining room works when I create a room and then join random. When I try to join a game using expectedCustomProperties it no longer finds the room, even though it appears to be using the correct hashtable settings.

To test it out I created a room like so:

table = new ExitGames.Client.Photon.Hashtable(){{"mode","lasertag"}};
m_roomOptions.CustomRoomProperties = table;
PhotonNetwork.CreateRoom (null, m_roomOptions, null);

And to join a room:

table = new ExitGames.Client.Photon.Hashtable (){{"mode","lasertag"}};
PhotonNetwork.JoinRandomRoom (table,0);

So it seems that joining with the expectedCustomProperies set to the same hashtable as the created room that it would find it, but it does not. Any ideas where I’m going wrong?

Okay I think I solved this one on my own, figure after trying all day and finally posting the question here. Looks like I wasn’t setting the properties for the lobby, which I did so like this when creating a new room:

m_roomOptions.CustomRoomPropertiesForLobby = new string[ ]{“mode”};

1 Like

Yes, that was the problem. Glad you found it and thanks for posting the update.