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 
 
Serialization of nwn objects - areas specifically?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Mon Jun 06, 2011 17:28    Post subject: Serialization of nwn objects - areas specifically? Reply with quote

Ok,
Clearly Serialization is possible of the nwn items and other objects, because thats how your able to store the binary data of the items and other stuff you store in the persistent nwnx database.


So... heres a question...


Is it possible to Serialize an Area, not necessarily for Storage of the area, but possibly for 'Sending' an area from one server to another server.



eg - Serialize 'Baal's Tardis' on Server A,
Send to Server B
De-Serialized at Server B
Baal's Tardis appears as an accessible area on Server B in the same state it was in when it was serialized.


Im thinking that the are and git files associated with the area might need to be sent to the receiving server first, or maybe not?
Maybe these too can be serialized and re-constructed on the receiving end.
Back to top
View user's profile Send private message
Skywing



Joined: 03 Jan 2008
Posts: 321

PostPosted: Mon Jun 06, 2011 17:39    Post subject: Reply with quote

All game objects support serialization to GFF (which is how saved games work).

You'll want to take a look at CNWSArea::SaveToGit. I believe there's also a dynamic areas plugin for NWN1 that shows how to instantiate new areas and link them into the appropriate internal lists which you might find a useful reference for this project.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development 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