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 
 
Can't query SQLite

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



Joined: 22 Nov 2006
Posts: 136
Location: Italy

PostPosted: Sat Dec 09, 2006 14:25    Post subject: Can't query SQLite Reply with quote

Here's my problem.

I've setup nwnx4 and it seems to work correctly.
It's recognized as windows service.
It loads the module I want to load.
But I can't query the database.
I tried with both SQLite v3.3.5 and v.3.3.8.

xp_sqlite.ini looks like this
Code:
file = D:\test.db
class = SQL


I made an action script on a conversation which should return the database version.

The script is:
Code:
//Returns SQLite database version
string GetSQLiteVer();
string GetSQLiteVer()
{
    SQLExecDirect("SELECT sqlite_version()");
    if(SQLFetch() == SQL_SUCCESS)
    {
        return SQLGetData(1);
    }
    else
    {
        return "Database error";
    }
}

void main()
{
    SendMessageToPC(GetPCSpeaker(), GetSQLiteVer());
}

And it returns Database error all the time. Obviously I can't insert data or get any from the database as well.

I started the service and it appears to be up and running

nwnx_controller.txt wrote:
* Starting NWNX service 1...
* Service successfully started.


I've even deleted xp_mysql.dll and .ini to avoid conflict but I can't still query the database.

Any of you can tell me what I'm doing wrong?
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Dec 09, 2006 23:59    Post subject: Reply with quote

What does nwnx.txt say ?
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TroveLord



Joined: 22 Nov 2006
Posts: 136
Location: Italy

PostPosted: Sun Dec 10, 2006 4:08    Post subject: Reply with quote

Papillon wrote:
What does nwnx.txt say ?

There's no such file, where it should be?
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Sun Dec 10, 2006 6:12    Post subject: Reply with quote

It'll be in the same directory that NWN2 is installed to. Probably c:\program files\atari\neverwinter nights 2
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
TroveLord



Joined: 22 Nov 2006
Posts: 136
Location: Italy

PostPosted: Sun Dec 10, 2006 11:28    Post subject: Reply with quote

Grinning Fool wrote:
It'll be in the same directory that NWN2 is installed to. Probably c:\program files\atari\neverwinter nights 2

It's not there, I also searched the HDD but I can't find it.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Dec 10, 2006 11:33    Post subject: Reply with quote

It should be in the directory where nwnx4_controller.exe is. If it is not, try to load NWNX in interactive mode:

nwnx4_controller.exe -interactive
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TroveLord



Joined: 22 Nov 2006
Posts: 136
Location: Italy

PostPosted: Sun Dec 10, 2006 11:49    Post subject: Reply with quote

Papillon wrote:
It should be in the directory where nwnx4_controller.exe is. If it is not, try to load NWNX in interactive mode:

nwnx4_controller.exe -interactive

That did the trick.
Running in interactive mode revealed that nwn2server.exe didn't find madChook.dll so I copied it in the nwn2 game folder and it worked. Thanks all for the help.
Back to top
View user's profile Send private message
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