Sign in to follow this  
iXenocider

[XNA][C#] Game Saving Problems, Files are too large

Recommended Posts

iXenocider    120
Hello fellow GameDevs, I have been having a pretty big problem recently. I am trying to find the best way to save data for my map files.

[size=5][u][b]Overview[/b][/u][/size]
Let me give you a brief example of how it works. The world consists of an array (20 x 20) of maps, and in each map, there is an array (20 x 20) of blocks. For further information, I am using [b]C#[/b], and [b]XNA[/b].

[size=5][b][u]Problem[/u][/b][/size]
I use serialization to save the whole world but when I do, the file size is at least 170 Mb. Maybe I am doing it wrong, but I do not know why it is such a large file. If you guys could help me by giving me a better way to save data that would be awesome!

[size=5][b]Extra[/b][/size]
I did make it so it only generates the maps that you go into, and the file size is relatively small. But once the player starts playing the game and starts exploring, the file size will eventually be way too large.

[i][b]Thank you in advance.[/b][/i]

Share this post


Link to post
Share on other sites
turch    590
What is does a block contain? Is it a block like a tile in a tile-based game, or is it a "submap"? What information are you serializing out?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this