Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Bizio · Nov 15, 2018 at 08:25 AM · save datasave gamesave file

The best way to save character progress used by 2 games?

Let's say I split my game into 2 parts, first part gets released and after for example few months second part gets released. The problem is when I start playing second part I want to use character (with all the progress) from the first part, so I need to save the data somewhere permanently where it's not removed even when game files are removed (cause why would you keep them if you beat the game). What's the best way to do it?

Comment
Add comment · Show 1
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 PizzaPie · Nov 15, 2018 at 04:05 PM 0
Share

Save it on a specific location inside User/local/CompanyName/... (up to you), use the same path to retrieve them, persistent data path could be used, unique between builds but if i am not mistaken games with same company name share the parent folder so you may navigate in there to locate said data.

Any serialization can be used (text/ bit/ X$$anonymous$$L/ Json/ any database etc), except Unity's serializer.

The data will be safe as long they are not located insise game data folder.

Anyway because save data are saved localy you can/ should not ensure that won't be deleted by the User. But you should give a warning to prevent such action, no more and under no circumstance take more measures to prevent it. And if you provide an Unistaller give the option for complete clean up or to keep save data, with appropriate warning of course.

As proposed remote host is the safest, but an overkill in my opinion.

Also an overkill would be, to create a base for the game and hook each part as a "patch" (DLC?!) to it, that way all parts share data, nonetheless thats "quite" hard.

PS: personaly I hate applications that dump all over the disc and not provide the means for proper clean up.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by hectorux · Nov 15, 2018 at 02:31 PM

You might use an encoded XML file, this can be moved, bur the lpayer wont be able to change anything. Also if you save it with other things it will be more difficoult for the player to know what holds the data

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 Matt1000 · Nov 15, 2018 at 03:04 PM 0
Share

You don't even need it to be an X$$anonymous$$L file. It can just be plain text that you only know how it is written/read so there would be no problem with anyone trying to modify it.

avatar image hectorux Matt1000 · Nov 15, 2018 at 03:59 PM 0
Share

Yes, but in X$$anonymous$$L you can save a serializable class

avatar image
0

Answer by s_awali · Nov 15, 2018 at 09:13 AM

As you said, it has to be saved somewhere, but not on the player computer (since he can modify it/remove it). Your only option is to create a server and sync user data directly to it. Prehaps a much simple way would be to use a FTP.

Comment
Add comment · Show 1 · 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 Bizio · Nov 15, 2018 at 10:13 AM 0
Share

Yeah, I was worried that I'll have to get into some networking to do that, which seems like a very big step forward from just making simple singleplayer game :[. I'm gonna check it out anyways, thx.

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

97 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

Related Questions

How do I save a List in my project? 0 Answers

PlayerPrefs not saving in build 1 Answer

Playerpref is not saving 1 Answer

Best Saving Practices using Firebase 0 Answers

How to save some integers and bools when a scene is switched. 0 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