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 
 
help nwnx2 and linux server

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



Joined: 24 Nov 2006
Posts: 24

PostPosted: Thu Jan 31, 2008 8:53    Post subject: help nwnx2 and linux server Reply with quote

ok i have remote acess to a linux box and its running an nwn server i downloaded linnwnx2-2.5.3-rc1.tar and followed the isntructions
i put it in a folder tar zxfv linnwnx2-2.5.3-rc1.tar
i went to linnwnx folder and ./configure /home/nwnshao/NeverwinterNights/NWN/
then i did make
the instructions said to movenwnstartup.sh and nwnx.so to the directory i have a nwnx.ini already made.
now i do ./nwnstartup.sh and it runs however it tells me nwnx isnt installed..
Server : Module loaded
FAILED: NWNX!INIT has not been initialized.
how do i fix this so i can run my server?
thanks in advance
Back to top
View user's profile Send private message
cadderly



Joined: 05 Dec 2007
Posts: 8

PostPosted: Thu Jan 31, 2008 9:49    Post subject: Reply with quote

Have you set up the database?
If so have you created the pwdata table?
Have you called the SQLInit() function on module load?

Cad
Back to top
View user's profile Send private message
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Thu Jan 31, 2008 12:27    Post subject: Reply with quote

Seems that the extra SQLInit entry for linux is missing - you can disable the requirement by edit the nwnx2.ini

Code:

[NWNX]
disablenwnxinit=y #Set to "y" to not enforce the NWNX!INIT requirement

_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
Firehorse66



Joined: 24 Nov 2006
Posts: 24

PostPosted: Thu Jan 31, 2008 23:20    Post subject: Reply with quote

cadderly wrote:
Have you set up the database?
If so have you created the pwdata table?
Have you called the SQLInit() function on module load?

Cad

yes I used Simm_Tools.mod to set up the pwdata table and so on i actually see the sqlite.db file
yes the SQLInit() function is on module load.
Back to top
View user's profile Send private message
Firehorse66



Joined: 24 Nov 2006
Posts: 24

PostPosted: Thu Jan 31, 2008 23:29    Post subject: Reply with quote

Mikel of Avalon wrote:
Seems that the extra SQLInit entry for linux is missing - you can disable the requirement by edit the nwnx2.ini

Code:

[NWNX]
disablenwnxinit=y #Set to "y" to not enforce the NWNX!INIT requirement

What does this extral SQLInit entry do?
the above edit didnt work, also regarding this, is this just disabling nwnx? cause i need nwnx..
I found this nwnx-beta2-linux.rar, and it has nwnx2.so and a folder linnwnx2 with a bunch of files, looks like something that needs to be compiled, the read me only tells about some changes,, do i need these? are there any other files i may need? Also one more question,,, when i ttar zxfv linnwnx2-2.5.3-rc1.tar should its folder be inside NWN? ie a new folder, within the same folder nwnserver is? Cause thats where i put it

I have previously had the mod working in windows with nwnx simmtools and leto subs however the new server host uses linux , and i dotn mind that at all i prefer the linux server, i just not sure how to get this stuff goin, thanks alot in advance
Back to top
View user's profile Send private message
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Fri Feb 01, 2008 14:16    Post subject: Reply with quote

The linux version needs a different SQLInit() function.

Code:

void SQLInit()
{
    int i;
    object oMod = GetModule();

    // Placeholder for ODBC persistence
    string sMemory;

    for (i = 0; i < 8; i++) // reserve 8*128 bytes
        sMemory += "..............[lots of .'s]..........................";

    SetLocalString(oMod, "NWNX!INIT", "1");
    SetLocalString(oMod, "NWNX!ODBC!SPACER", sMemory);
}


If you don't want to change it, you can set the option in nwnx2.ini like described.
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
Firehorse66



Joined: 24 Nov 2006
Posts: 24

PostPosted: Tue Feb 05, 2008 23:35    Post subject: Reply with quote

Mikel of Avalon wrote:
Seems that the extra SQLInit entry for linux is missing - you can disable the requirement by edit the nwnx2.ini

Code:

[NWNX]
disablenwnxinit=y #Set to "y" to not enforce the NWNX!INIT requirement

i did this and it didnt work, is any of this supposed to be in upper case?
Back to top
View user's profile Send private message
Firehorse66



Joined: 24 Nov 2006
Posts: 24

PostPosted: Thu Feb 07, 2008 0:38    Post subject: Reply with quote

ok i got that figured out finally, uhm now i got some other issues
Library ODBC!SPACER does not exist.
* Library CHAT!SPACER does not exist.
* Library CHAT!LOGNPC does not exist.
* Library CHAT!IGNORESILENT does not exist.
* Library ODBC!EXEC does not exist.
i changed from sqlite to mysql, as the server thats hosting my game provides that service as well.
Back to top
View user's profile Send private message
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Fri Feb 08, 2008 0:46    Post subject: Reply with quote

Seems like there isn't a call to SQLInit() first in module load.

You use an outdated version linnwnx2-2.5.3-rc1.tar
I advice to use the latest core versions from virusman.

http://www.nwnx.org/phpBB2/viewtopic.php?t=795

The latest version is NWNX Core 2.7-beta3
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
Firehorse66



Joined: 24 Nov 2006
Posts: 24

PostPosted: Mon Feb 11, 2008 1:57    Post subject: Reply with quote

Ok thanks ill give this a try.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux 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