PlayerTTL and reconnecting to the room

hanjung
✭
Hi,
I'm trying to make player able to rejoin a room after leaving or disconnecting.
I set playerTTL = 5 min, and MaxPlayers =2 according to the link
https://forum.photonengine.com/discussion/8062/plugin-how-modify-the-properties-of-a-room-to-be-created
Here's what I did
1. Player A creates a room
2. Player B joins the room
3. Player B leaves the room
I was expecting player B to be able to join the room. Instead, it gives an error that says "room is full".
How can I fix this issue?
I'm trying to make player able to rejoin a room after leaving or disconnecting.
I set playerTTL = 5 min, and MaxPlayers =2 according to the link
https://forum.photonengine.com/discussion/8062/plugin-how-modify-the-properties-of-a-room-to-be-created
Here's what I did
1. Player A creates a room
2. Player B joins the room
3. Player B leaves the room
I was expecting player B to be able to join the room. Instead, it gives an error that says "room is full".
How can I fix this issue?
public override void OnCreateGame(ICreateGameCallInfo info) { PluginHost.SetProperties(0, new System.Collections.Hashtable { { PhotonGameProperty.MaxPlayers, 2 }, { PhotonGameProperty.PlayerTtl, 300000 } }, null, true); }
0
Comments
-
@hanjung did you see this: https://doc.photonengine.com/en-us/realtime/current/troubleshooting/faq#how_to_quickly_rejoin_a_room_after_disconnection_ ?
best,
ilya0 -
Thanks for the help chvestov.0