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 cankirici34 · Oct 13, 2020 at 12:58 PM · photonloadsave data

About photon engine and saving data?

Hi, I want to make a multiplayer game (Like portal with just 2 player) and i found out Photon engine then i watch some tutorials but i coudn't found some thigns like saving the game or loading the game. I though photon is not for this . And I found some saving methods like Binary Formatter. So how can i use photon and some save methods. How can i you them together. Maybe i should use someting different for server or data saving thing? (I dont have any experience about making multiplayer game and save/load system so Im sorry for my language)

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
2

Answer by Captain_Pineapple · Oct 14, 2020 at 10:27 PM

No worries about the language, but you should have solid knowledge of some basic things when you want to work on a multiplayer game as it is at least twice as complicated as a normal game. First of yes you can use a binary formatter to write stuff to a file. This can then be read again when you start up the game. However depending on your game (and you did not add any information in that regard) it might (and probably will) not be enough to simply send the file to the other person. Before you dive too deep into this saving/loading topic you should first make clear that you have a good understanding how photon (i guess you mean PUN - be specific here, there are differences) and how to create rooms, connect to rooms and send messages. Then you should understand how saving/loading works without any multiplayer stuff and then you should try to bring these 2 together.

Comment
Add comment · Show 3 · 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 cankirici34 · Oct 16, 2020 at 10:03 AM 0
Share

First of all Thank you so much for answer. Well actually this game will be my school project and my teachers demand that the game be multiplayer and use a database. I will do research and as you said, first I will understand the multiplayer and then try to understand the database parts. So are there any other APIs like PUN?

avatar image Captain_Pineapple cankirici34 · Oct 19, 2020 at 02:32 PM 1
Share

well sorry for the late reply. I wouldn't really think of PUN as a pure api. In the end PUN is a complete multiplayerservice with included matchmaking. If you want other networking solutions you can take a look at $$anonymous$$irror or DarkRift2 (i use the latter one) In addition to that: Using a Database is a different story then writing to a file. If you write to a database you can simply convert a struct you use to save your game data to a json string and insert that into your database. There is no need for a binary formatter here. If you want to save space/bandwidth you can compress/decompress the string before/after sending.

avatar image cankirici34 Captain_Pineapple · Oct 19, 2020 at 03:58 PM 0
Share

Well thank you very much again! This helped me a lot. I will try my best.

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

142 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 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 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 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 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 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 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

Save Load Data unity 0 Answers

im getting a serialization exception eror in my load method 0 Answers

Save and Load System of multiple objects in scene? 2 Answers

How to save data of thousands upon thousands of different tiles and objects? 2 Answers

Networking : Loading the room's map. 3 Answers


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