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 
 
newbie question. extracting data from a module

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
el sombrero



Joined: 03 Apr 2012
Posts: 12

PostPosted: Tue Jun 26, 2012 17:00    Post subject: newbie question. extracting data from a module Reply with quote

Hi guys,

I'm starting here... trying to use neverwinter nights 2 at a college project.
I need to recover some data that will be stored on interger's. Is there anyway to do this using nwnx? Where can I learn how to do it?
What I need seems really simple to me... I just need to extract the data stored on the intergers (that will be stored on oPC) and plot them somewhere so I can analyse them (i could be notepad, excell, word etc).

thx!
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Wed Jun 27, 2012 17:01    Post subject: Reply with quote

nwnx funcs - allows the nwscript to loop through all locally stored variables on an object.

This would be useful for instances where you do not know the name of the variables.


http://95.109.119.126/Terra/Sysdata/

SysData is a plugin made by Terra777

It has basic functions in it that allow you to write to a text file.

This way, you could create a csv file, that could then be imported into Excel.

Combine the functionality, so nwnx funcs reads the data, and sysdata writes the data to your text file.
Back to top
View user's profile Send private message
el sombrero



Joined: 03 Apr 2012
Posts: 12

PostPosted: Thu Jun 28, 2012 21:34    Post subject: Reply with quote

Hey, thx!

I'm completly new to nwnx and database functions. Do you have any advice concerning what should I start studying to implement these functions? I dont really need to master nwnx, just be able to use the app and the pluggin you suggested :0)
I have notions of C programing and can edit neverwinter nights 2 scripts
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Fri Jun 29, 2012 11:02    Post subject: Reply with quote

I've only realised that you are dealing with nwn2
My Mistake - I dont have any experience with nwnx4.
Back to top
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Fri Jun 29, 2012 14:03    Post subject: Reply with quote

Alternatively, you could use something like kivinens perl tools, my ruby library or Skywings C++ datafile accessor library to read your save state data offline and parse it from there.

Personally though, I'd go with the previous recommendation and get nwnx4 up and running, and write the values you need to a SQL database. That would be much simpler design-wise, and setting up nwnx with a simple database isn't hard.
Back to top
View user's profile Send private message
el sombrero



Joined: 03 Apr 2012
Posts: 12

PostPosted: Wed Jul 04, 2012 0:55    Post subject: Reply with quote

Could you direct me to some reading material that would show how to implement these? Right now I dont even know where to start.
Thx dudes!
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 technical support 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