View previous topic :: View next topic |
Author |
Message |
dguntner
Joined: 31 Dec 2004 Posts: 116
|
Posted: Sat Oct 14, 2006 6:17 Post subject: |
|
|
Wow, that wasn't one long run-on sentance with no punctuation. You sure you're Frang? 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.
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 |
|
|
Frang
Joined: 22 May 2005 Posts: 32
|
Posted: Sat Oct 14, 2006 6:21 Post subject: |
|
|
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 |
|
Back to top |
|
|
dguntner
Joined: 31 Dec 2004 Posts: 116
|
Posted: Sat Oct 14, 2006 7:04 Post subject: |
|
|
Well, long, run-on sentances with no punctuation are *very* hard to read. So I'm glad you aren't doing that anymore.
The file has been sent. Enjoy!
--Dave |
|
Back to top |
|
|
Frang
Joined: 22 May 2005 Posts: 32
|
Posted: Sat Oct 14, 2006 7:29 Post subject: |
|
|
Thanks Guntner your the man!!! |
|
Back to top |
|
|
|
|
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
|