Mirage Engine
Nintendo "State" - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Game Design (https://mirage-engine.uk/forums/forumdisplay.php?fid=11)
+---- Thread: Nintendo "State" (/showthread.php?tid=2938)



Nintendo "State" - seraphelic - 18-07-2009

I like to mess around with Nintendo emulators, and recently discovered "save state" and "load state." I'm guessing it just saves all memory of the instance to a file to be loaded later.

Even if it isn't applicable to my game, I'd like to figure out how you can implement this into an rpg game. Feel free to contribute.

All elements would be preserved. This includes: movement (direction) and location, animation, map condition (switches, etc.), spells and attacks in the middle of effect... Add more later.

**********
I'll edit this with more information, but it was something I had to write down.
**********


Re: Nintendo "State" - Toast - 18-07-2009

One word. Serialization.


Re: Nintendo "State" - Matt - 18-07-2009

Isn't this kind of like how it saves all your information to your account file..?


Re: Nintendo "State" - seraphelic - 19-07-2009

Matt Wrote:Isn't this kind of like how it saves all your information to your account file..?
It's more like it saves all map conditions (in the middle of walking, in the middle of a spell animation going, etc) in real-time

Toast Wrote:One word. Serialization.
Please explain.
I wiki'ed it. I liked the term pointer unswizzler lmao.
I just wouldn't know how to prepare your code to do this, or how useful it would be in context to saving the state (which is many objects)


Re: Nintendo "State" - Toast - 19-07-2009

I'm sorry I don't know how to do serialization of objects in VB6.. But Microsoft uses it for tons of crap like the clipboard. Ever wonder what happens when you copy formatted text in Microsoft Word? Or how about when you copy a designer object in VB. Microsoft uses serialization to do these things.


Re: Nintendo "State" - Coke - 19-07-2009

All it does is enable objects to be written to a stream. Assuming you have a position object, a walk object etc, if when you save you just output all your instanced objects via a stream to any given medium, as long as you can then re-instantiate them, you are good to go.


Re: Nintendo "State" - Labmonkey - 20-07-2009

Save every single one of your variables in a file. Load the file. Or are you talking about an orpg?


Re: Nintendo "State" - Labmonkey - 22-10-2009

mixed up months? lol