A
A
Avery0072013-12-13 17:23:57
Unity
Avery007, 2013-12-13 17:23:57

How to organize large data storage on Android?

I'm writing a Minecraft-like game in Unity3D using C# as the scripting language. The game will be on Android. The mechanism is this: I generate a universe with planets, and when a player lands on one of them, it is generated. Accordingly, the save needs to be stored somewhere, but if you use simple text files, then 40MB of memory will go to a small planet (Position X,Y,Z, block type). For cell phones, this is a lot (if it was on a PC, I would not even think about it). At this rate, after 5 planets, saves will weigh more than the game itself. Has anyone come across this and found a solution.
There was an idea with "seeds", but how then to store information about the changed blocks and how to implement the seeds I will not know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2013-12-13
@GavriKos

Use zip - in theory, if you get the same data, it will not be weak. Plus, you can optimize yourself. At least not each block to store, and sequences of blocks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question