I've been messing around with some game development as a little fun project, but I'm guessing this has a bit broader implication/source hence the subject. Anyhow, I've run across the point where I need to start saving games and data to do some more efficient debugging (working on collision/etc. isn't exactly feasible on a 'random' map).
Any tutorials/forum posts I've found on the topic of saving seem to gloss over the fact that there's write functions in, well, any code. The XNA Framework (using to make the game) has a few documentation entries on the subject, but they all involve serializing and a few other things I've heard are almost the equivalent of the "save state" function you find in some emulators. On top of that, they're extremely slow, save files as XML, and I haven't heard any good. I've also found a few 3rd Party and Open Source routines that are supposed to be "better," but I'd rather keep this all to my own code.
Are there any "better/roboust-er" or "faster" ways to create save-files other than just dumping array-data into a binary file with a few save/load functions in my code?
Right now I can see that working for the current state of the project, but not (reasonably...I'm kinda new at dealing with these sizes of things, so that assumption may be false) the planned scope. Currently I have a few large (512x512, probably going to get bigger) height maps or of integers. The planned scope is to have that 2D array not be of height floats, but arrays containing attributes for each "node".
Any tutorials/forum posts I've found on the topic of saving seem to gloss over the fact that there's write functions in, well, any code. The XNA Framework (using to make the game) has a few documentation entries on the subject, but they all involve serializing and a few other things I've heard are almost the equivalent of the "save state" function you find in some emulators. On top of that, they're extremely slow, save files as XML, and I haven't heard any good. I've also found a few 3rd Party and Open Source routines that are supposed to be "better," but I'd rather keep this all to my own code.
Are there any "better/roboust-er" or "faster" ways to create save-files other than just dumping array-data into a binary file with a few save/load functions in my code?
Right now I can see that working for the current state of the project, but not (reasonably...I'm kinda new at dealing with these sizes of things, so that assumption may be false) the planned scope. Currently I have a few large (512x512, probably going to get bigger) height maps or of integers. The planned scope is to have that 2D array not be of height floats, but arrays containing attributes for each "node".