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 
 
NWNx2/OdbC2

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
djesiret



Joined: 17 Jan 2005
Posts: 3

PostPosted: Mon Jan 17, 2005 20:54    Post subject: NWNx2/OdbC2 Reply with quote

I am having a problem setting up the database.

Windows 2000
wishing to use the internal database.

When I read this from the tutorial:
"The internal NWNX ODBC2 database is based on SQLite v3, which is a fast SQL compliant database that developers can package with their applications - and that is what we did !"

I assumed that after I had placed the files properly and set up the INI (which is set to use the sqlite db as default) then I would be in like sin.

Well I get no response from the test module. Can someone tell me what's up.

A couple of things from the error log.
--------------
nwnx.txt
* Loading plugins...
* An error occured during OnCreate of odbc
* NWNX2 activated.
* NWNX2 shutting down... ;doesn't shut down until I tell it too.. everything runs fine just the db isn't working
* NWNX2 shutdown successfull.

;Here's the kicker
--------------
nwn_odbc.txt
! Error while connecting to database: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
o Got request: DROP TABLE pwdata
! SQL Error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
o Got request: CREATE TABLE pwdata (player text(64),tag text(64),name text(64),val memo,expire text(4),last date)

and it rinses and repeats that for the most part.

IS there a service I should have running as a part of this "built in" database? Something in windows? I have ended many of my uneeded services upon install.

would it be best if I set it up with another, on of the external database.

Also I would like to mention that I have no sqliute.db file. Should I have?

The tutorial says in reguards to creating the tables (which I also have no idea how to do):
" If you are using the internal database, all tables have already been created for you (in the file sqlite.db)."

I have no file sqlite.db.

I downloaded and have tried the ver from nwnvault, and two of these from this website.. a v254 which I think is not odbc2.. and a beta 0921 which I think, looking at it documentation that it is odbc2.

I just want something that will restart my mod and store and recall simple var.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
NoMercy



Joined: 03 Jan 2005
Posts: 123
Location: UK

PostPosted: Mon Jan 17, 2005 21:34    Post subject: Reply with quote

You seem to be loading the ODBC driver, not the SQLite internal database, check your nwnx.ini file inside your nwn folder contains the following lines:
Quote:

[ODBC2]

; Log file
MaxLogSize = 512 ; in KByte
LogLevel = 2 ; 0=nothing, 1=only errors, 2=everything

; Use these two settings for the SQLite internal database
source = sqlite
file = sqlite.db

; Use these two settings for ODBC connections
;source = odbc
;dsn = nwn

; Use these five settings for MySQL connections
;source = mysql
;server = localhost
;user = nwn
;pwd = nwn
;db = nwn

; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely

hookscorco = true


In your nwnx.ini file, as with the latest versions all settings are loaded from there, and yes you want odbc2 0.9.2.1 for the SQLite option.

If your missing the nwnx.ini file, it's in the main nwnx2 download zip, the default one is setup to load the aps demo module which is included in the odbc2 zip.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
djesiret



Joined: 17 Jan 2005
Posts: 3

PostPosted: Tue Jan 18, 2005 17:18    Post subject: my ini file Reply with quote

[ODBC2]
; Log file
MaxLogSize = 512 ; in KByte
LogLevel = 2 ; 0=nothing, 1=only errors, 2=everything

; Use these two settings for the SQLite internal database
source = sqlite
file = sqlite.db

; Use these two settings for ODBC connections
;source = odbc
;dsn = nwn

; Use these five settings for MySQL connections
;source = mysql
;server = localhost
;user = nwn
;pwd = nwn
;db = nwn

; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely
hookscorco = true

my ini file is set up to load the internal database.

I've noticed everone is using MySQL. Has anyone had any sucess with th internal database?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Jan 18, 2005 17:35    Post subject: Reply with quote

Which version is your nwnx_odbc.dll file ? It should at least be 0.9.2.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
djesiret



Joined: 17 Jan 2005
Posts: 3

PostPosted: Wed Jan 19, 2005 1:01    Post subject: OWNED! Reply with quote

That's what it was, Papillon. I was using the dll from another ver of the d/l, maybe the NWvault d/l. neway, thanks.. loaded up the test module and got the return on the stored value.

whooo I am sooo excited Very Happy
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
NoMercy



Joined: 03 Jan 2005
Posts: 123
Location: UK

PostPosted: Wed Jan 19, 2005 1:56    Post subject: Reply with quote

*rushes in with a seditive*
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support 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