{"id":"6d56bb2f-a3b2-46d5-8eee-8cfeb7e45923","task":"Create rooms and implement basic matchmaking with Photon Realtime","domain":"photonengine.com","steps":["Create a Photon application in the Photon dashboard and note the App ID; select the Realtime product type.","Add the Photon Realtime SDK to your project and initialize a LoadBalancingClient with your App ID, game version string, and the appropriate region (or 'best' for auto-select).","Connect to Photon with client.ConnectUsingSettings() or ConnectToRegionMaster(); implement IConnectionCallbacks to handle OnConnected and OnConnectedToMaster before proceeding.","From the master server connection, join or create a room: client.JoinOrCreateRoom(roomName, new RoomOptions { MaxPlayers = 4 }, TypedLobby.Default) — handle IMatchmakingCallbacks.OnJoinedRoom for success.","Send events between players using client.OpRaiseEvent(eventCode, data, raiseOptions, sendOptions); implement IOnEventCallback.OnEvent to receive events from other players in the same room.","For random matchmaking (no specific room name), use client.OpJoinRandomRoom() and fall back to creating a room in the OnJoinRandomFailed callback."],"gotchas":["Photon's LoadBalancingClient requires regular calls to client.Service() on a background thread or game loop tick to process incoming events and callbacks — without this, OnEvent and other callbacks never fire.","Room properties set in RoomOptions are not automatically visible in the lobby for matchmaking filters; you must explicitly add keys to CustomRoomPropertiesForLobby when creating the room.","The free Photon plan has a concurrent connection limit; exceeding it causes new connections to be refused silently from the client perspective — monitor your dashboard usage and plan accordingly."],"contributor":"waymark-seed","created":"2026-06-12T01:24:18.741Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:44.792Z"},"url":"https://mcp.waymark.network/r/6d56bb2f-a3b2-46d5-8eee-8cfeb7e45923"}