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 
 
External SQLite access

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



Joined: 08 Jan 2005
Posts: 88

PostPosted: Thu Aug 04, 2005 9:38    Post subject: External SQLite access Reply with quote

If I use an external SQLite commandline application, such as 3.2.1 or 3.2.2 @ http://www.sqlite.org/download.html , to modify or create the database then NWNX wont read it any more. Here is a part of the log:
Code:
NWNX ODBC2 plugin V.0.9.2.4
(c) 2005 by Ingmar Stieger (Papillon) and Jeroen Broekhuizen
visit us at http://www.nwnx.org

o Logfile maximum size limit is: 524288 bytes
o Log level: Everything will be logged.
o Using SQLite connection.
o Hooking SCO....hooked at 5c65d0
o Hooking RCO....hooked at 5c64b0
o Connect successful.
...
...
o Got request: SELECT rowid FROM prc_cached2da_appearance WHERE rowid=1
! SQL Error: file is encrypted or is not a database
o Sent response (0 bytes):
o Got request: INSERT INTO prc_cached2da_appearance (rowid, name) VALUES (1 , 'Character_model')
! SQL Error: file is encrypted or is not a database
o Got request: SELECT race FROM prc_cached2da_appearance WHERE ( rowid = 1 )
! SQL Error: file is encrypted or is not a database
o Sent response (0 bytes):
o Got request: SELECT rowid FROM prc_cached2da_appearance WHERE rowid=1
! SQL Error: file is encrypted or is not a database
o Sent response (0 bytes):

Anyone got any ideas? I need to be able to pass an externally generated SQL query into SQLite so that it can precache the 2da files for SELECT queries from within the script. Biowares Get2DAString is too slow to do it in-game.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Thu Aug 04, 2005 19:53    Post subject: Reply with quote

ODBC2 currently uses SQLite 3.0.8, so you should try a command line utility with the same version.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Fri Aug 05, 2005 9:43    Post subject: Reply with quote

Ah, that would explain it. There are no plans to update it are there?
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Aug 06, 2005 9:26    Post subject: Reply with quote

I guess I will add the current version to the next release of ODBC2, but I am not sure when that will be.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Sat Aug 06, 2005 10:22    Post subject: Reply with quote

Ive looked into this some more, and theres good and bad news.

Good News: SQLite uses a public accessible CVS storage, so I can get the source code from a 3.0.8 version without too much trouble. Smile

Bad News: I have no idea how to go about recompiling the CVS sources. There is a "How To Compile" section on the sqlite wesbite, http://www.sqlite.org/cvstrac/wiki?p=HowToCompile, but I am a real novice when it comes to compiling these things. I think I can do it with DJGPP or mingw but I havnt had much luck so far Sad
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Aug 07, 2005 9:55    Post subject: Reply with quote

Try SQLiteCC: http://bobmanc.home.comcast.net/sqlitecc.html
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Mon Aug 08, 2005 6:41    Post subject: Reply with quote

Oh, its not a problem getting some program to access the database, nor is it a problem getting something to run the SQL. The problem is trying to do it in an automatic way that requires no end-user intervention.

Its for the PRC server pack http://nwvault.ign.com/View.php?view=Other.Detail&id=945
Back to top
View user's profile Send private message
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Mon Aug 08, 2005 18:11    Post subject: Reply with quote

Okay, my mistake. I was using v2 SQLite.exe because I had assumed that the download at the top of the list would be the most recent version.

Nothing to see here, move along.....
Back to top
View user's profile Send private message
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