Aller au contenu

Photo

How to collect data from a module


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
el.sombrero

el.sombrero
  • Members
  • 100 messages
 Hi there guys,

 I'm trying to use the toolset to create an experiment that I need to create for college.
 For this reason, I would need to extract the info stored on some variables and plot then on a xls spreadsheet.
 For example, each time the player activate a switch the variable "switch" receives +1 (this I know how to do). and then this info is transfered to a cell in the spreadsheet (this I do not know how to do).
 Can anyone help me here?

 thx!

Modifié par el.sombrero, 03 avril 2012 - 07:32 .


#2
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
Use mysql instead...

Then transfer to spreadsheet later, or just leave it in mysql as that will do everything you need.

( use www.nwnx.org to get it integrated into a database )

#3
el.sombrero

el.sombrero
  • Members
  • 100 messages
Uhm... and how do I use mysql?
I thought it was possible to add some line to the script which add 1 to the variable that would make this increase be registered on the spreadsheet... I know that this can be done (the transference of information from a variable to a spreadsheet) at least with programs made with the "old c" language).

#4
kamal_

kamal_
  • Members
  • 5 260 messages
This isn't C. It's a C like language.

#5
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
Sure it can be done, but a script in game has NO access to c, or the overall operating system, it's just a script which can make spells and dialogs work in game. Hence you need to do it in a way the game can actually handle via using community plugins.

Go over to www.nwnx.org, review their website and then also google mysql tutorials. You will have to learn a bit about both of these ( nwnx and mysql ) but there is plenty of information out there which should get you started.

Basically you can use the nwnx script function to create a insert or update statement from inside of the game, then you can export the values to a spreadsheet, or just access them from a php based website/console/etc.

#6
el.sombrero

el.sombrero
  • Members
  • 100 messages
Thx.
I will try mysql then... but if anyone knows of any other solution, please mention it too!

#7
kamal_

kamal_
  • Members
  • 5 260 messages

el.sombrero wrote...

Thx.
I will try mysql then... but if anyone knows of any other solution, please mention it too!

There really isn't any solution other than NWNX. As Pain points out, the game can't write out of it's environment.

#8
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
Yep, it's your best option.

Sqlite access is also a feature nwnx, but it would be harder for you to get the data out where you need it, and not really much different in what you have to do.

#9
el.sombrero

el.sombrero
  • Members
  • 100 messages
Thx dudes... then it is mysql to me.