View previous topic :: View next topic |
Author |
Message |
entropyrat
Joined: 28 Jan 2013 Posts: 4
|
Posted: Mon Jan 28, 2013 20:21 Post subject: FAILED: NWNX!INIT |
|
|
Hello all,
I'm attempting to install and get NWNX running on a CentOS 6 server and seem to be unable to do so. I've done everything I can find in the documentation I can find yet I can't actually get NWNX to fully load on account of this error:
NWN Extender v2.7-beta4
* NWNX2 activated.
FAILED: NWNX!INIT has not been initialized.
Can anyone please offer some insight? |
|
Back to top |
|
|
entropyrat
Joined: 28 Jan 2013 Posts: 4
|
Posted: Mon Jan 28, 2013 23:26 Post subject: |
|
|
So I gave up on the pre-compiled version due to an utter lack of documentation. I've moved on and have tried compiling myself, only now I'm running into an issue that makes no sense.
The error is:
Checking for inflateEnd in -lz... no
Unable to find -lz (zlib). Please install a zlib developer's package.
Only I have zlib and zlib-devel completely up to date.
[/home/entropy/NWNServer/nwnx]# whereis zlib
zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
Any idea what the problem is here? Thanks again. |
|
Back to top |
|
|
Squatting Monk
Joined: 28 Jun 2007 Posts: 76
|
Posted: Tue Jan 29, 2013 2:37 Post subject: |
|
|
I think the version of zlib used in some older packages is out of date. You could try using the core 2.8 branches, maybe.
The fix for the precompiled version is to add the following to your OnModuleLoad script:
Code: | GetLocalObject(GetModule(), "NWNX!INIT"); |
|
|
Back to top |
|
|
entropyrat
Joined: 28 Jan 2013 Posts: 4
|
Posted: Wed Jan 30, 2013 5:17 Post subject: |
|
|
Everything is installed and appears to be working? No more error messages. But I don't see anything actually being written to a DB. I have no idea what I'm doing wrong. |
|
Back to top |
|
|
Squatting Monk
Joined: 28 Jun 2007 Posts: 76
|
Posted: Wed Jan 30, 2013 22:13 Post subject: |
|
|
Gonna ask some stupid questions because, as you said, there's no good step-by-step guide on this, so I don't know what you've already done.
Are you using MySQL or SQLite? Most people opt to go with MySQL because it's awesome, but you may have to change things up if you're using SQLite.
If you're using MySQL...
Have you already set up a database and user in MySQL? You have to set up the database and user manually, but NWNX will take care of your tables.
Have you configured nwnx2.ini? It should read something like the following:
Code: | ; MySQL Settings
source=mysql
server=localhost
user=myuser
pass=mypassword
db=mydatabase
debuglevel=2
|
Have you made sure that the table-creation statements from APS (or whatever database system you're using) are in your OnModuleLoad script?
Finally, is there anything in your NWNX ODBC log (it's located at logs.0/nwnx_odbc.txt)? For reference, here's what it looks like when it's working (here only passing a SHOW DATABASES query):
Code: | NWNX2 ODBC2 version 1.0.0 for Linux.
(c) 2005-2006 dumbo (dumbo@nm.ru)
(c) 2006-2010 virusman (virusman@virusman.ru)
MySQL engine is supported
Plugin link: 009134C0
Plugin link: 009134C0
o SCO located at 82d9c44.
o RCO located at 82d9b60.
o Connecting to localhost, default socket
o Connect successful.
o Got request: SHOW DATABASES
o Sent response (18 bytes): information_schema |
|
|
Back to top |
|
|
|