Preseving player's state

Options
fatrat
edited September 2014 in Photon Server
If understood correctly, to preserve the player's state (scores, levels, ranking, ...), a database is needed; and in order to connect to the database securely, as opposed to the client, if would be better for the server side to communicate with it directly.

This means we need Photon On-Premise to do the database-connection work, not Photon Realtime.
Is this info connect? Or Photon Realtime do have database manipulation ability directly from the server...?

Since maintaining Photon Realtime is a much simpler task, and Photon On-Premise needs a Windows server, it would be really great to just stay with Photon Realtime.

Thanks in advance.

Comments

  • There are different approaches:

    - If you want to access a database "from the server", you need Photon On Premise, where you can modify the server-side code in any way you want. It is just .NET code, so you can integrate any database that can be accessed from .NET.
    - You can build a simple web service (.NET, PHP, whatever you like), then let your clients call that web service if they want to persist / load data, and the web service hides the database access from your clients
    - check out our new Turnbased features: there are options to save your game state to the cloud or forward events to a custom web service:
    https://www.exitgames.com/en/Turnbased
    http://doc.exitgames.com/en/turnbased/c ... ased-intro