About Store Forum Documentation Contact



Post Reply 
Save and load question
Author Message
Barthap Offline
Member

Post: #1
Save and load question
Can I save my data in esenthel after engine save?
I mean that i want engine to save/load characters and other objects and then call my Save/Load function
Not before

Saving/Loading sequence:
1.World ObjTypes: Players, Items, Chrs, Statics
2.Other classes defined in mySaveFunction
if(Kb.bp(KB_F2)) Game::World.save("Saves/quicksave.sav", mySaveFunction);

We need it because other Classes defined in mySaveFunction use variables loaded in Player or Item class and if customClass loads, player is not loaded, game crashes.
05-10-2010 05:38 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Save and load question
the custom data is located after game world data, but the objects aren't created until Game::World.update is called (only after update the obejcts get loaded from save)
05-10-2010 05:52 PM
Find all posts by this user Quote this message in a reply
Post Reply