Rejoin fail because player ttl isnt set on local server !
mrbug
✭
hi.
im using Photon-OnPremise-Server-SDK_v4-0-29-11263
and when i set player tll working on cloud servers but i get 0 ttl on local server..
how i fix that?
im using Photon-OnPremise-Server-SDK_v4-0-29-11263
and when i set player tll working on cloud servers but i get 0 ttl on local server..
how i fix that?
0
Comments
-
Ty for responding;
its simple, rejoin(room name) always works on cloud servers but not on local server and according to in photon docs : "
/// Note: To be able to ReJoin any room, you need to use UserIDs!
/// You also need to set RoomOptions.PlayerTtl.
"
im sure i have userId and also set playerttl and roomttl and my room name is correct
PhotonNetwork.room.PlayerTtl is 60000
and PhotonNetwork.player.UserId is local guid that i was set it.
but after rejoin i get "room is closed"
im using unity3d last sdk0 -
ok... its mean there is no way to rejoin a room for player on "Photon-OnPremise-Server-SDK" servers?0
-
no, it means you cannot change PlayerTTL or EmptyRoomTTL after creating the room.
You need to set those values properly to enable rejoin, i.e. PlayerTTL != 0.0