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
1
Question by Mildar · Jul 23, 2013 at 04:00 PM · game save

Saving GridBased map Best Practices

Hi. I have some solutions in mind and have one implemented, however I would like to know what is the best approach to take.

I have cube oriented game like minecraft. Every cube have few important variables (like prefab of its graphics to place into game). This is all saved in 3 dimensional array.

System I have now is using C# Serialize to make Binary stream then I use Zip Algorithm to make binary smaller. then I save the file onto disk. I am not saving prefabs and I have to add them in deserialization process

My questions are:

  1. is this good approach?

  2. Is it good idea to have save file open during the game and write into it constantly? (lets say 3-50 write instructions per second)

  3. Should I keep my data in 3D array or use some better container?

Comment
Add comment · Show 3
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 manu3d · Jul 23, 2013 at 07:15 PM 0
Share

Can you rephrase question 2? I don't understand what you mean.

Also, on question 1, you should define what "good" is. =) If with good you mean "easy to handle" the answer might be yes. If with good you mean "fast" it might be possible to do some optimization.

avatar image Benproductions1 · Jul 24, 2013 at 04:21 AM 0
Share

Please tell me you are using voxels for your "cube world". Not just a whole lot of default cubes?

avatar image Mildar · Jul 24, 2013 at 06:17 AM 0
Share

Of course I am not using Voxels.. and I can smell smelly code that's why am I rewriting it and posting this thread ;) Not 100% sure I need it for my map size but at least I have something to read to decide.

0 Replies

· Add your reply
  • Sort: 

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

18 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

Related Questions

Serialize game objects in Unity~ 1 Answer

Application.persistentDataPath confusion (Android) 1 Answer

Let Game-Building finish over time / Gold increment over time 0 Answers

How to serialize and save for Win8? 3 Answers

Does anyone know why continuously saving to playerprefs would cause a performance drop ? 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