SOLVED - Rooms no longer persistent - haven't changed anything, but they no longer save to PlayFab.
Options
dt1000
✭
Hi there.
I have been making good progress on my turn-based game, suing PlayFab to save the rooms when they close.
For some reason, they no longer send the "save" instruction when closing.
Here is the Data send to PlayFab on room creation...
{
"ActorNr": 1,
"AppVersion": "1.0_1.83",
"AppId": "3311d6d1-1323-4dd6-9b6d-17d1d40a84aa",
"CreateOptions": {
"MaxPlayers": 2,
"IsVisible": false,
"LobbyId": null,
"LobbyType": 0,
"CustomProperties": {
"Dice": "00",
"MoveList": "",
"StateList": "0.5ib..00.3.0",
"Deck": "5ibh6omcsatle4q9r0p1jdn837fgk2xyNMuRHPAwESFBVLUWvJDTQzGCXIOK"
},
"EmptyRoomTTL": 12000,
"PlayerTTL": -1,
"CheckUserOnJoin": true,
"DeleteCacheOnLeave": false,
"SuppressRoomEvents": false,
"PublishUserId": true,
"ExpectedUsers": [
"59FCE1AD1A872162",
"39BEBAF8646A2B0F"
]
},
"GameId": "264927215750",
"Region": "CAE",
"Type": "Create",
"UserId": "59FCE1AD1A872162",
"Username": ""
}
I haven't altered any settings, so they should be saveable (although I did recently change my updates to Web Forward).
When the room closes I get this data:
{
"ActorCount": 0,
"ActorNr": 1,
"AppVersion": "1.0_1.83",
"AppId": "3311d6d1-1323-4dd6-9b6d-17d1d40a84aa",
"GameId": "264927215750",
"Region": "CAE",
"State2": {
"ActorList": []
},
"Type": "Close"
}
Which would imply that the room is not set to persistent for some reason.
I have probably missed something dumb, as is usually the case.
Thanks in advance for your help.
Dan
I have been making good progress on my turn-based game, suing PlayFab to save the rooms when they close.
For some reason, they no longer send the "save" instruction when closing.
Here is the Data send to PlayFab on room creation...
{
"ActorNr": 1,
"AppVersion": "1.0_1.83",
"AppId": "3311d6d1-1323-4dd6-9b6d-17d1d40a84aa",
"CreateOptions": {
"MaxPlayers": 2,
"IsVisible": false,
"LobbyId": null,
"LobbyType": 0,
"CustomProperties": {
"Dice": "00",
"MoveList": "",
"StateList": "0.5ib..00.3.0",
"Deck": "5ibh6omcsatle4q9r0p1jdn837fgk2xyNMuRHPAwESFBVLUWvJDTQzGCXIOK"
},
"EmptyRoomTTL": 12000,
"PlayerTTL": -1,
"CheckUserOnJoin": true,
"DeleteCacheOnLeave": false,
"SuppressRoomEvents": false,
"PublishUserId": true,
"ExpectedUsers": [
"59FCE1AD1A872162",
"39BEBAF8646A2B0F"
]
},
"GameId": "264927215750",
"Region": "CAE",
"Type": "Create",
"UserId": "59FCE1AD1A872162",
"Username": ""
}
I haven't altered any settings, so they should be saveable (although I did recently change my updates to Web Forward).
When the room closes I get this data:
{
"ActorCount": 0,
"ActorNr": 1,
"AppVersion": "1.0_1.83",
"AppId": "3311d6d1-1323-4dd6-9b6d-17d1d40a84aa",
"GameId": "264927215750",
"Region": "CAE",
"State2": {
"ActorList": []
},
"Type": "Close"
}
Which would imply that the room is not set to persistent for some reason.
I have probably missed something dumb, as is usually the case.
Thanks in advance for your help.
Dan
0
Comments
-
To give a bit more info... previously when the room closed the "Type" would be set to "Save" and there would be a nice load of data in the message passed to Playfab.0
-
-
WOOOOOH! I SOLVED IT ON MY OWN THIS TIME!!!
The answer is here.
I had added a "Leave Room" event which was closing the room.
I switched it to a "Disconnect" as per the docs and everything was working again.
That also answers my lingering question of how to close a persistent room.
Nice!1 -
Hi @dt1000,
I'm glad you managed to find a solution in our docs and on your own.
However, I recommend you switch to theLeaveRoom(true)
when that overload method that takes a single boolean parameter will be available in PUN, soon hopefully asDisconnect()
will disconnect the client from all servers and you will have to reconnect again.
Unlike,LeaveRoom
which brings backs the client to Master Server.1