First of all I'd like to aplogize if it is inapropriate for me to post this here. I could take it over to the NWNx forums but I know there are more people in these forums and I usually get a much speedier response.
And since NWNx has much to do with scripting and NWN I figured what the heck. But anyway, back on to my problem.
I've decided to give the whole NWNx/Database thing a shot. So far It's not going well. This is what I have done so far:
~downloaded NWNX Core
~downloaded NWNX ODBC
~This: "Installing NWNX2 is super easy. Download the file and unzip it. Take the
files "NWNX2.exe", "NWNX.INI", "nwnx-module.dll", and "madCHook.dll" and place
them in the directory where your NWN installation resides (usually
C:\\Neverwinternights\\NWN). Done!"
~my nwnx.ini is using these lines:
[ODBC2]
source = sqlite
file = sqlite.db
by default.
~This: "Copy the file nwnx_odbc.dll to you NWN folder, and aps_demo.mod
to your NWN module folder".
~This: "Place the file "aps2.erf" into the C:\\Neverwinternights\\NWN\\erf directory".
~I imported the "aps2.erf" into my module.
~I altered "x3_mod_def_load" in my test module:
#include "aps_include"
void main()
{
// Init placeholders for ODBC gateway
SQLInit();
~I downloaded and installed "sqlitecc".
~Then before I tried to use any of the nwnx database functions I fired up the "aps_demo" to create the database tables.
So this is where I am now stuck. When I go into the demo module and click the first 3 signs which are supposed to: 1-Set up the table, 2- test store a string, and 3- retrieve the string, the string that is returned is nothing but a bunch of periods, "........................................................................".
I then try to do the same thing with the objects. When it attempts to retreive the objects makes the server freeze up for a sec and then spits out a TMI error.
I've spent about 3 hours double checking things and cant figure this out.
Did i skip some major steps? Is some of the info I read to install outdated? Is there something else that is obvious and I'm just super nooby?
Any help very much appreciated. And again if it is bad form for me to ask this here I will take it over to the NWNX fourms. Thank you.
Modifié par GhostOfGod, 20 juin 2011 - 02:17 .