- Home /
Experienced Photon (PUN) Users: Is This Possible?
Hi community,
I've got a very basic game setup with RPCs and Network Views, but I don't have a database/mysql or anything keeping account information yet (inventory, levels, stats, log-in info, etc.). translating all of the information. I'm looking at Photon, and I'm a bit confused on what exactly I can accomplish. It seems to me like just a lobby-based room system which is not what I need, but I'm reading that it could possibly communicate with MySQL and the like.
Will PUN allow me to sync to and from a database, and what database format would you suggest I use to connect the servers and clients?
Perhaps I can rephrase and sum it all up:
I am looking for a stable way to convert my RPC-based server game to a MMO-style game with game accounts and persistence. What's the best way to go about this?
Mind you I'm not terribly knowledgable in any coding and am sort of picking this up as I go.
Thanks for the help, feel free to link me to tutorials/blogs you find helpful.
Addyarb
Answer by fholm · Mar 27, 2014 at 07:21 AM
If you want to move to an MMO and are using PUN with Photon Cloud you would need to start using Photon Server instead, Photon Server allows you to write custom C# logic on the server (but you need to host the servers yourself). Then you could implement accounts and persistance.
I would recommend you to use MS SQL Server for this, as you will be writing the C# logic in .NET (microsoft version, not mono) with Photon and the support and tooling for SQL Server there is incredibly well crafted and stable.
Thanks for the answer, so just to be clear: photon cloud only hosts lobby-based/preset networking, whereas if I host my own server - I can customize photon scripts using C#?
It all seems very intimidating, but I'm willing to really commit as long as there is a sure-fire way to get reliable persistence networking.
Is there any documentation on setting up $$anonymous$$$$anonymous$$O-like instances using PUN and $$anonymous$$S SQL? Or am I pretty much on my own?
Yes using Photon Server you can write C# for the Server itself, it's not "unity C#", it's .NET C# in a .NET environment tho. So dont except any "GameObject" or "transform", et.c to exist.