The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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.

Alakeram
2018-09-05 13:29:38

Thank you for your assistance! I was hoping there was a partnered database :) loving photon so far thanks!

Back to top