Is there a way to save all game data (PhotonViews, PRCs, Events) to replay the game later?
Hello,
We're trying to implement a "replay" feature to allow players to share replays of exciting games that can be viewed later.
We're hoping to get the complete game data in a large string (or JSON) - which would be about 200KB per game, according to our calculations - upload it to our custom server, download it when a player wants to watch the replay, and replay the complete game with dummy-actors. We have the upload and download part figured out, the problem is just getting the game data and replaying it.
Is there a way to get the data of all OnSerialize calls from custom PhotonViews, all RPCs and all Events along with the timestamps? How would we replay the game?
Thanks in advance,
Sebastian
We're trying to implement a "replay" feature to allow players to share replays of exciting games that can be viewed later.
We're hoping to get the complete game data in a large string (or JSON) - which would be about 200KB per game, according to our calculations - upload it to our custom server, download it when a player wants to watch the replay, and replay the complete game with dummy-actors. We have the upload and download part figured out, the problem is just getting the game data and replaying it.
Is there a way to get the data of all OnSerialize calls from custom PhotonViews, all RPCs and all Events along with the timestamps? How would we replay the game?
Thanks in advance,
Sebastian
0
Answers
-
EDIT: I should probably clarify that we're using Photon PUN and have written custom PhotonViews (using the OnPhotonSerializeView method).
Any help will be appreciated,
Sebastian0 -
I have been thinking about the same thing. is your idea to record what the player sees or the entire scene, everything that happens?0
-
Hi @BlackThunder,
Thank you for choosing Photon!
This is possible using Photon Webhooks.
See "Room Persistence Guide".0