Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 iXenocider   Members   -  Reputation: 120

Like
0Likes
Like

Posted 13 June 2012 - 12:49 PM

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.

Overview
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 C#, and XNA.

Problem
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!

Extra
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.

Thank you in advance.

Sponsor:

#2 turch   Members   -  Reputation: 590

Like
0Likes
Like

Posted 13 June 2012 - 03:41 PM

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?




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS