Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Addyarb · Mar 27, 2014 at 07:18 AM · networkingphoton

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

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Addyarb · Mar 27, 2014 at 07:32 AM 0
Share

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?

avatar image fholm · Mar 27, 2014 at 12:25 PM 0
Share

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.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

PhotonNetwork.Instantiate is not "buffered" 0 Answers

Photon Networking: LocalScale transform doesn't work 1 Answer

Photon player RaiseEvent sending bools 1 Answer

Question regarding unity mobile multiplayer game 0 Answers

Photon Network Instantiate Objects over Network 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges