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 
 
DMFI 1.08 and nwnx
Goto page Previous  1, 2
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Sat Oct 14, 2006 6:17    Post subject: Reply with quote

Wow, that wasn't one long run-on sentance with no punctuation. You sure you're Frang? Mr. Green lol

Anyway, what it means is that you need to set a local variable on the module object (GetModule()) in order for it to know what to do (which database to use).

I probably updated the script after posting it here at some point, because the last version I have that was in use in the module I was running before shutting down Dave's Place (due to lack of time on my part to run the thing properly anymore) does contain instructions on what to put where. Sorry if those instructions weren't in the version that was uploaded here all that time ago. Smile

Here's the comment from the last version I was using:

Code:

/*
* In your OnModuleLoad script, put the following lines:
*
*    // APS/NWNX/MySQL or Bioware?  Set MySQL to FALSE for Bioware, TRUE for APS/NWNX.
*    SetLocalInt(GetModule(), "MySQL", FALSE);
*
*    // Init placeholders for ODBC gateway if using NWNX/APS/MySQL
*    if (GetLocalInt(GetModule(), "MySQL"))
*        SQLInit();
*
* Then, change the top one to TRUE if you're using NWNX/APS, or leave it FALSE
* if you're using Bioware's database.
*/


Bare in mind that if your OnModuleLoad has already done something like:

oModule = GetModule();

(Which is preferred if you're going to reference the module object a lot), then in the above example you can use oModule where it specifies GetModule().

HTH.

If you want a copy of the wrapper as it last existed on my system, give me your E-Mail address and I'll be happy to send it to you.

--Dave


Last edited by dguntner on Sat Oct 14, 2006 6:34; edited 1 time in total
Back to top
View user's profile Send private message
Frang



Joined: 22 May 2005
Posts: 32

PostPosted: Sat Oct 14, 2006 6:21    Post subject: Reply with quote

That would be sweet email is Frang04@aol.com and thanks for the reply.

LOL I got tired of people making fun of me so I started using things like periods comma's Capital letters and all that other nifty stuff Very Happy
Back to top
View user's profile Send private message
dguntner



Joined: 31 Dec 2004
Posts: 116

PostPosted: Sat Oct 14, 2006 7:04    Post subject: Reply with quote

Well, long, run-on sentances with no punctuation are *very* hard to read. So I'm glad you aren't doing that anymore. Very Happy

The file has been sent. Enjoy!

--Dave
Back to top
View user's profile Send private message
Frang



Joined: 22 May 2005
Posts: 32

PostPosted: Sat Oct 14, 2006 7:29    Post subject: Reply with quote

Thanks Guntner your the man!!! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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