logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
SetPersistentObject Not Storing Local Variables

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
CutterShane



Joined: 25 May 2005
Posts: 5

PostPosted: Sun Jun 05, 2005 4:14    Post subject: SetPersistentObject Not Storing Local Variables Reply with quote

When I save and then restore creatures (specifically henchmen) using Set/GetPersistentObject, it doesn't appear that any local variables are stored (or they aren't retrieved; same effect).

If the creatures are converted to a BIC before being stored, doesn't this mean that the BIC can't keep the locals? But APS claims to save an exact copy of the object.

What's going on?
Back to top
View user's profile Send private message Visit poster's website
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Jun 05, 2005 10:02    Post subject: Reply with quote

NWNX stores what it retrieves from NWN. The actual creation of the binary data for items or creatures is not done by NWNX. So if local variables are not stored on creatures, it is because NWN does not put them into the binary data at first.

Btw, I know that variables are stored on items at the least.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
CutterShane



Joined: 25 May 2005
Posts: 5

PostPosted: Sun Jun 05, 2005 17:27    Post subject: Reply with quote

So ... does anybody know if local variables are stored on creatures by NWN during an SCO/RCO?
Back to top
View user's profile Send private message Visit poster's website
JollyOrc



Joined: 15 May 2005
Posts: 10

PostPosted: Mon Jun 06, 2005 9:23    Post subject: Reply with quote

no. We're circumventing this by storing the variables on a hide on the creatures.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group