Hey guys
I've configured on our Application pane that the different Photon events get forwarded to our server, i.e. RoomCreate, RoomClose, ... And this is working great. I am getting these messages on my server. So this is working fine.
However, when creating a new room with custom properties set in the RoomOptions class (the one you use to create a room), I'm always receiving an empty array on our server for the CustomProperties piece. I'm also 100% sure that the data is set before the call of actually creating the room, and I'm also 100% sure that it is data supported by the serialisation process of Photon (as it is successfully used during multiplayer play).
Now, I do have a work-around for it, but it kind of bugs me that this isn't working as I would expect it to work and the work-around is a little bit dirty in my opinion. So is there any possibility to get it to work this way? I'm up for digging in or changing some lines of code in the LoadBalancingPeer.cs script if necessary. I've already kind of looked into it, but can't determine quite exactly what to do in this case.
I'm using PUN v1.87.
Kind regards,
Jan.
I've configured on our Application pane that the different Photon events get forwarded to our server, i.e. RoomCreate, RoomClose, ... And this is working great. I am getting these messages on my server. So this is working fine.
However, when creating a new room with custom properties set in the RoomOptions class (the one you use to create a room), I'm always receiving an empty array on our server for the CustomProperties piece. I'm also 100% sure that the data is set before the call of actually creating the room, and I'm also 100% sure that it is data supported by the serialisation process of Photon (as it is successfully used during multiplayer play).
Now, I do have a work-around for it, but it kind of bugs me that this isn't working as I would expect it to work and the work-around is a little bit dirty in my opinion. So is there any possibility to get it to work this way? I'm up for digging in or changing some lines of code in the LoadBalancingPeer.cs script if necessary. I've already kind of looked into it, but can't determine quite exactly what to do in this case.
I'm using PUN v1.87.
Thanks in advance![06/Jun/2018 14:30:33] (RoomCreate) { "ActorNr": 1, "AppVersion": "0.14.0_1.87", "AppId": "<hidden>", "CreateOptions": { "MaxPlayers": 1, "IsVisible": false, "LobbyId": "TOURNAMENTS", "LobbyType": 0, "CustomProperties": [], "EmptyRoomTTL": 60000, "PlayerTTL": 60000, "CheckUserOnJoin": true, "DeleteCacheOnLeave": true, "SuppressRoomEvents": false, "PublishUserId": false, "ExpectedUsers": null }, ... }
Kind regards,
Jan.