Games Support Forums BioWare Info My Account Login Community Sign Up Store
Neverwinter Nights 2 Forums

NWN 2 General Discussion



       Go To Bottom

Author Data Capturing in NWN(2)
Serryth
Game Owner
Profile: SerrythNWN
NWN: SoU
NWN: HotU
NWN 2
NWN 2: MotB
NWN 2: SoZ
Mass Effect PC


Joined: 07 Oct 2005
Posted: Sunday, 09 April 2006 02:32AM
I have landed a project (starting in June) to find a way to sample ("pull out") in-game variables/data and export them to an external file (textfile/database such as MySQL) and preferrably happening in realtime. I would also like to timestamp the "sampling," the time can be in game time or real world time. Is this technically possible?

May be these examples will help clarify:
(1) How many potions/coins/weapons do I currently have in my inventory, when did I get them and from what quests?
(2) What quests have I completed, who have I defeated and when did I do that?
(3) Which direction did I move in a particular dungeon? e.g. N, S, S, SE, W, W... How long did I took to clear that dungeon?

Any suggestion on how to go about doing this? Do you think I will need other NWN extender utilities? I am hoping to begin this project in June, but have not much clue about where to begin. (if you think this is off-topic, pls PM me.)

Someone suggested I try C++ to make a custom include file to import functions from NWN in order to write them to a file, and then export that to XML. How and where can I get a list of the NWN functions? (the Lexicon?) This does sound like the "snoop" function that I need implemented... Other suggestion?

(I originally posted this elsewhere but now realize this is probably the right place for this request. Pls pardon the cross post... Newbie in Forum.)
  Profile: Serryth   Send Message To: Serryth
Acrodania
Game Owner
Profile: AcrodaniaNWN
NWN: SoU
NWN: HotU


Joined: 06 Jan 2003
Posted: Sunday, 09 April 2006 05:30AM
Good Luck! Couple of comments....

Quote: Posted 04/09/06 02:32:13 (GMT) by Serryth

I have landed a project (starting in June) to find a way to sample ("pull out") in-game variables/data and export them to an external file (textfile/database such as MySQL) and preferrably happening in realtime. I would also like to timestamp the "sampling," the time can be in game time or real world time. Is this technically possible?
The official comment on external databasing for NWN2 is "Temper your expectations". Expect to not be able to unless the NWNX teams successfully ports NWNX2(4) to NWN2.

The only other potential you might have is to write it all to log files and then parse the logs....
Quote: 
May be these examples will help clarify:
(1) How many potions/coins/weapons do I currently have in my inventory, when did I get them and from what quests?
You will have to write it yourself. The engine doesn't track such things.
Quote: 
(2) What quests have I completed, who have I defeated and when did I do that?
See comment above
Quote: 
(3) Which direction did I move in a particular dungeon? e.g. N, S, S, SE, W, W... How long did I took to clear that dungeon?
Not tracked in the engine, you will have to write it all yourself. Right now with NWN its clunky...
Quote: 
Any suggestion on how to go about doing this? Do you think I will need other NWN extender utilities? I am hoping to begin this project in June, but have not much clue about where to begin. (if you think this is off-topic, pls PM me.)

Someone suggested I try C++ to make a custom include file to import functions from NWN in order to write them to a file, and then export that to XML. How and where can I get a list of the NWN functions? (the Lexicon?) This does sound like the "snoop" function that I need implemented... Other suggestion?
Your only hope is for a port of NWNX to NWN2. The engine itself has almost no ability to interface with the outside world so no include file is going to help with anything you do. If you try making your own app then you are just duplicating NWNX's work, with considerably less experience in the NWN engine and much fewer people in development.

Luck! But as the devs have quoted on some things, temper your expectations
_________________
Maybe it IS spelled ROGUE, but some people NEED rouge to catch their Rogues
-------------------------------
  Profile: Acrodania   Send Message To: Acrodania


What do these icons mean?
Where can I learn how to use the forums?

Jump To:

Search Forums | Forums FAQ | Forum Archives

 

 

  Visit the Official Site | Technical Support
Neverwinter Nights 2 Official Support
Hide/Show

English
Deutsch
Français
Español
Italiano

Hide/Show

5,994,614 Users
526 Online
62 Logged In

9,000,911 posts in forums

Newest Forum Topics:
1. M.O.W. Internet needed? (NWN2: General discussion forums for NWN2 (No Spoilers Allowed))

2. Script control of encounters? (O... (NWN2: Builders - NWN2 Scripting)

3. Do i need to play BG 1? (Baldur's Gate II: SoA and ToB General Discussion)

4. Memorized Spells ui modification (NWN2: Custom Content)

5. My Dm's Can't log in, DM Client ... (NWN 1: Server Admin)


Current time is: (set time)
Tue, 09 February 2010 09:12PM