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 
 
Not sure if I'm getting connected.

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
NCGrimbo



Joined: 12 Jan 2005
Posts: 2

PostPosted: Wed Jan 12, 2005 6:09    Post subject: Not sure if I'm getting connected. Reply with quote

Hi all. I've got MySQL installed and the ODBC installed and then I created the pwdata table in the nwn database. I've also created the nwn datasource in the ODBC Control panel app. When I run the aps sample mod, it runs and I can click the signs, but there doesn't appear to be any data getting sent to the database. What should I look for to indicate that there is a problem? Any suggestions would be helpful.
Back to top
View user's profile Send private message
Liberty Valance



Joined: 06 Jan 2005
Posts: 21
Location: A Persistent World West2

PostPosted: Wed Jan 12, 2005 6:29    Post subject: Reply with quote

First off, get the MySQL plugin for NWNX instead of using ODBC - it's more efficient and easier to set up (or look into the alpha of something or other, that unifies the module or yada yada... search the board for "MySQL" and "ODBC")...

With that said, I'd suggest making sure the MySQL ODBC driver has the correct DB user/password stored (so that it can read/write the DB appropriately)... Also check the permissions on the DB user you're trying to log in with - if you haven't given it write (or read!) permissions to the "nwn" database or "pwdata" table, then it's certainly not going to work. If that fails, make sure your NWNX .ini file has the appropriate ODBC info in it so that it can correctly make the ODBC calls.

If you're still having trouble at that point (or are having trouble setting up/using the MySQL plugin), let me know - if I can't help you out, someone here will be able to Smile
_________________
A Persistent World West2 | APWW2 Forums
Wirehead Studios
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Manuel



Joined: 30 Dec 2004
Posts: 51

PostPosted: Wed Jan 12, 2005 6:35    Post subject: Reply with quote

NWNX produces a log. Check it for errors. They can certainly help identify problems. Also, make sue you did one of these:

Quote:
# Select aps_onload for your module OnModuleLoad event
- OR -
# Open aps_onload in the script editor and paste the contents of it into your pre-existing module's OnModuleLoad script. We only recommend doing this if you are familiar with NWScript.
Back to top
View user's profile Send private message
JeroenB



Joined: 31 Dec 2004
Posts: 228
Location: Netherlands

PostPosted: Wed Jan 12, 2005 10:01    Post subject: Reply with quote

Yes, you might want to try the accompanying module and see if that works. If not, make sure you have the newest nwnx_odbc.dll file in the Neverwinter Nights directory and that you have set up the ini file correctly. When there are still errors, please post the content of the 'nwnx_odbc.txt' file in the logX directory (where X is the log directory for your server, probably 0).
Back to top
View user's profile Send private message Visit poster's website
NCGrimbo



Joined: 12 Jan 2005
Posts: 2

PostPosted: Mon Jan 17, 2005 6:02    Post subject: Reply with quote

Here's my log file:

NWN Extender V.2.5.4.0
(c) 2004 by Ingmar Stieger (Papillon) and Jeroen Broekhuizen
visit us at http://www.nwnx.org

* Loading modules...
* Error: No modules found
* NWNX2 activated.
* Library ODBC!SPACER does not exist.* Library ODBC!EXEC does not exist.* Library ODBC!EXEC does not exist.* Library ODBC!EXEC does not exist.* Library ODBC!FETCH does not exist.* Library ODBC!EXEC does not exist.* Library ODBC!EXEC does not exist.* Library ODBC!FETCH does not exist.* NWNX2 shutting down...
* NWNX2 shutdown successfull.

What am I doing wrong?

Thanks in advance.
Back to top
View user's profile Send private message
DarkstarsDad



Joined: 17 Jan 2005
Posts: 59
Location: Overland Park, Kansas USA

PostPosted: Mon Jan 17, 2005 7:37    Post subject: odbc? Reply with quote

is your MySql set up as a service and running? if it is did you set the NWNX.INI files in the odbc section correctly? make shure the ;; are removed from in front of the line for the mysql db?
; Use these five settings for MySQL connections
source = mysql
server = localhost
user = root
pwd =
db = nwn
and put the ;; in front of the
; Use these two settings for the SQLite internal database
;source = sqlite
;file = sqlite.db
also dont forget to download the plugin for the odbc and put it in the nwn directory. nwn_odbc.dll
well thats my help:) hope it helps
Back to top
View user's profile Send private message
JeroenB



Joined: 31 Dec 2004
Posts: 228
Location: Netherlands

PostPosted: Mon Jan 17, 2005 8:32    Post subject: Reply with quote

It seems that you don't have the nwnx_odbc.dll file in your Neverwinter Nights directory. Otherwise it should atleast be listed as either loaded or with an error message. Please download the latest odbc2 module and try again Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related 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