Game Development Community

Serialization

by Igor Kuryatnikov · in Torque Game Builder · 10/11/2006 (1:50 am) · 2 replies

Greetings!

Is there any resourses which are describes how to save game state?

Ok, the SimObject has a 'save()' method, where is a 'load()' method?
How can I load an object from a file?

#1
10/12/2006 (11:51 am)
I think the answer is no you can actually pause your game very easy
but you will have to build your text file or database to save
the state of the objects on the screen.

You have to know that to save the game is to save variables state server issues
So its not so simple to save game and you have to decide
What you want to save in your game

Variables
Objects position
Server variables
And more

hope it helps you...
#2
10/12/2006 (11:55 am)
You would load a "save()" object by execing the file it saved to.