Can I use photon as a database? (save information server side)
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on PUN.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Can I use photon as a database? (save information server side)
Alakeram
2018-08-22 09:56:37
So i wanted to know if i could use Photon in a way to check what equipment the player has earned during play, and save it server side, so if they tried to use that item for instance offline they wouldn't have it because its only for use while playing online...
Or another instance is like a premium shop, where they can use in-game currency or real money to purchase items but it has to be verified server side or via a database to make sure he actually has that item bought
i'm a complete scrub when it comes to databases and multiplayer so please bare with me while i try to proccess any information you guys would be able to provide :)
(first time swinging it, got the basics of moving people syncing damage etc but now the hard part comes...)
Comments
[Deleted User]
2018-08-23 09:03:19
Hi @Alakeram,
you can't persist player data by only using the Photon Cloud, because rooms, where some game relevant data is stored, will get removed sooner or later. To persist player data, you would have to use a third party service, like our partners at PlayFab. They are providing a free tier, too. To see how this works, I recommend you taking a look at the PlayFab Integration documentation page.
Thank you for your assistance! I was hoping there was a partnered database :) loving photon so far thanks!
Back to top