Rabishan
Member
|
'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 |
|
Zervox
Member
|
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 |
|
Rabishan
Member
|
RE: 'Const' objects and savings
i see. thanks for the quick reply.
|
|
07-26-2013 11:31 AM |
|
Rubeus
Member
|
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 |
|
Zervox
Member
|
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 |
|
Rabishan
Member
|
RE: 'Const' objects and savings
yes, its a strange feature.
|
|
07-28-2013 06:05 AM |
|