SAVE

Started by
5 comments, last by TRM 21 years, 5 months ago
Could someone tell me the correct approach for writing a SAVE module for a 3D game. Would like to know exactly what is used to save a game. Thank you Tom
Tom Materene
Advertisement
Moved to Game Programming.


[edited by - Jim Adams on October 21, 2002 4:30:33 PM]
What type of game? I need details.

AnonymousPosterChild!
Black_mage_s in disguise!
With love, AnonymousPosterChild
it's pretty much entirely dependant on the specifics of your game.

some things that may be universal:

-current map/level
-what objects (monsters/characters/bullets/spells) are currently active (index list of dynamic objects perhaps)
-position and stats of same objects (hp, spells left/bullets left, etc)
-state of any AI state machines

anything else that your game requires to run which is not already "saved" in some sort of file. i.e. you won't save the level map b/c that's already in a file.

more or less, it'll become readily apparent what you need to save once you write the game and engine. until the engine/game is at least partially written, there's not much point in coming up with a save game file format.

-me

[edited by - Palidine on October 21, 2002 4:04:51 PM]
Your suggestion is well taken, thank you one and all for your time.
Tom
Tom Materene
I guess if you wanted a crude way you could dump all your variables to a file.
Patrick
I need to figure this out too.. how to write data from different types of arrays or structures to a file, then load them back into arrays or structures again, with another function. I dont just mean strings, that would be easy, but I need floating point numbers and bytes to be saved and then loaded too.
Anyone have any good links or tips?

this place is lame

This topic is closed to new replies.

Advertisement