Continual Room

Options
I want player could create room and when all player disconnect ,rooms can
Continue without players.
is it possible?

Comments

  • You have to fudge it. Have a list of "fake/permanent rooms" that you check against the actual list each time you poll it. If the room is in the list, delete it from the fake rooms list, if not, display it's default information (aka name, 0/0 etc). In the end, it's the same as the room actually being there with nobody in it.. you just have to do a little more work to get there.
  • if masterclient creates an object (InstantiateinScene),can i save it for Next Connect!?
  • Tobias
    Options
    There is no persistency in PUN. When a room is empty, it will clean up and vanish.
    You want a persistent game world?
  • Yes.
    Is it possible?
  • Tobias
    Options
    In Photon Turnbased, you can store your game's state in Custom Properties and Buffered Events. When the players just disconnect, they become inactive and the state can be saved on a http-based service which you have to provide. We have samples how to do this and it's just about storing and fetching the state for Photon.
    You can't use PUN (Photon Unity Networking) in this case and you have to make sure your state does not grow endlessly or it will break the clients at some point.

    You should take a look at the Photon Unity SDK, the Sandbox Demo in that package and the turnbased docs for the Memory Demo.
    http://doc.exitgames.com/en/turnbased