About Store Forum Documentation Contact



Post Reply 
'Const' objects and savings
Author Message
Rabishan Offline
Member

Post: #1
'Const' objects and savings
Hi Esenthel and Community,

i think there is some problem in the saving of the 'const' objects. when placed the 'const' objects directly in the map EE doesn't save them as expected. But when i create the 'const' objects it does gets saved.

i found out, when creating objects dynamically, the const=true parameter gets replaced right after calling the Game::Chr create() function.

is this some kind of fault or maybe i'm doing something wrong.

thanks,
07-26-2013 11:24 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #2
RE: 'Const' objects and savings
Game::Obj virtual Bool canBeSaved() {return true ;}
this is what you should be overriding I believe.
07-26-2013 11:29 AM
Find all posts by this user Quote this message in a reply
Rabishan Offline
Member

Post: #3
RE: 'Const' objects and savings
i see. thanks for the quick reply.
07-26-2013 11:31 AM
Find all posts by this user Quote this message in a reply
Rubeus Offline
Member

Post: #4
RE: 'Const' objects and savings
I was under the impression that const objects are NOT saved by default; the idea is that the const objects are the ones that are going to be reset to their original positions/values when returning to the area.
07-26-2013 01:37 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #5
RE: 'Const' objects and savings
Yes, but one also would be under the impression that Game::World.del() wouldn't call save functions. I thought that was what Game::World.save() was for. ; p
07-26-2013 08:13 PM
Find all posts by this user Quote this message in a reply
Rabishan Offline
Member

Post: #6
RE: 'Const' objects and savings
yes, its a strange feature.
07-28-2013 06:05 AM
Find all posts by this user Quote this message in a reply
Post Reply