Save client prefs even after the client leaves?

Options
filipd
edited July 2013 in Photon Server
In my game players are playing matches , and if something happens and they restart the game and reconnect again the prefs are lost.

Is there any way to sync this data so it's saved until the room is deleted , without writing custom server logic?

Comments

  • filipd
    Options
    bump..
  • We can only offer forum support during our regular office hours, so please have some patience with us, thanks! :)

    A room is kept open as long as there are any players in it. If you want a player to be able to re-connect to a room that is still open, you can set the preferences of a client as room properties and retrieve them when they re-join. (In the next Photon Server SDK, we'll also offer an option to keep rooms open for a certain time after all clients have left, so that approach would also work if all clients disconnect & reconnect).

    You can also store client preferences on the client and send them again whenever they join a room (as actor properties, for example). This also works if all clients are disconnected and the room is closed & a new room is created.

    If these ideas don't work for your, please give us a few more details about your scenario.