Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

GameClose, Type: "Save" web hook

$
0
0
Hi,

I originally posted this question to unity forum and redirected to here by tobiass.

We are trying to use GameClose, Type: "Save" web hook.

We are using custom room properties heavily during gameplay and we need to persist in game close hook.

In our tests we see that custom room properties do not exist in under CustomProperties tag in received from photon web call. Instead custom room properties are under debuginfo tag in json.

How can we save custom room properties GameClose, Type: "Save" web hook and load them later ?

Additionally, how can I set EmptyRoomTTL to 300000 and PlayerTTL to 0 in PUN Free ? There is no EmptyRoomTTL parameter in RoomOptions class as far as I can see.

Thanks.

... and tobiass said(for contextual purpose):
I will have to forward the questions about WebHooks and the content of the "save" hook to my colleagues. Those are best discussed in a dedicated thread in our forum.

About PlayerTTL and EmptyRoomTTL: In PUN you can only set one to simplify matters. PUN is not fully compatible with persisted games (using PhotonViews and ownership is a bit tricky, when you return to the room). But it seems you rely mostly on props.
If you would set PlayerTTL to 0, any player who loses connection will be timed out and can't simply return to the room.
Let me guess, you try to create a persistent world with as many/few players as happen to be there?

Please post more details of what you want to achieve in our forum. A discussion of this is too complex for this super long thread. http://forum.photonengine.com

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>