Custom room properties not sent with PathCreate webhook
Options
Hello,
I want to make a asynchronous game which persists its game state using webhooks.
So by using PUN I create the room with:
also I setup a PHP script which for now just dumps the contents of the webhook request and I end up with this JSON data:
So, as you can see, the custom property "blackboard" is not included in the data which got sent with the PathCreate webhook. Also on subsequent webhook PathJoin and PathClose the custom properties are never filled.
How do I get custom room properties to be sent with the PathCreate - or any of the available - webhooks?
Regards
I want to make a asynchronous game which persists its game state using webhooks.
So by using PUN I create the room with:
RoomOptions options = new RoomOptions(); options.isOpen = true; options.isVisible = true; options.cleanupCacheOnLeave = false; options.customRoomProperties = new ExitGames.Client.Photon.Hashtable(); options.customRoomProperties.Add("blackboard", ""); PhotonNetwork.CreateRoom(roomName, options, null);
also I setup a PHP script which for now just dumps the contents of the webhook request and I end up with this JSON data:
array(8) { ["ActorNr"]=> int(1) ["AppVersion"]=> string(8) "0.1_1.50" ["AppId"]=> string(36) "[my app ID]" ["CreateOptions"]=> array(8) { ["LobbyId"]=> string(0) "" ["LobbyType"]=> int(0) ["CustomProperties"]=> array(0) { } ["EmptyRoomTTL"]=> int(0) ["PlayerTTL"]=> int(0) ["CheckUserOnJoin"]=> bool(false) ["DeleteCacheOnLeave"]=> bool(false) ["SuppressRoomEvents"]=> bool(false) } ["GameId"]=> string(17) "[my game ID]" ["Region"]=> string(2) "EU" ["Type"]=> string(6) "Create" ["Username"]=> string(0) "" }
So, as you can see, the custom property "blackboard" is not included in the data which got sent with the PathCreate webhook. Also on subsequent webhook PathJoin and PathClose the custom properties are never filled.
How do I get custom room properties to be sent with the PathCreate - or any of the available - webhooks?
Regards
0
Comments
-
I think you also mailed us and got a reply, right?
When we got this running, let's post a summary0