View previous topic :: View next topic |
Author |
Message |
Firehorse66
Joined: 24 Nov 2006 Posts: 24
|
Posted: Thu Jan 31, 2008 8:53 Post subject: help nwnx2 and linux server |
|
|
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 |
|
|
cadderly
Joined: 05 Dec 2007 Posts: 8
|
Posted: Thu Jan 31, 2008 9:49 Post subject: |
|
|
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 |
|
|
Mikel of Avalon
Joined: 29 Dec 2004 Posts: 72 Location: Germany
|
Posted: Thu Jan 31, 2008 12:27 Post subject: |
|
|
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 |
|
|
Firehorse66
Joined: 24 Nov 2006 Posts: 24
|
Posted: Thu Jan 31, 2008 23:20 Post subject: |
|
|
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 |
|
|
Firehorse66
Joined: 24 Nov 2006 Posts: 24
|
Posted: Thu Jan 31, 2008 23:29 Post subject: |
|
|
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 |
|
|
Mikel of Avalon
Joined: 29 Dec 2004 Posts: 72 Location: Germany
|
Posted: Fri Feb 01, 2008 14:16 Post subject: |
|
|
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 |
|
|
Firehorse66
Joined: 24 Nov 2006 Posts: 24
|
Posted: Tue Feb 05, 2008 23:35 Post subject: |
|
|
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 |
|
|
Firehorse66
Joined: 24 Nov 2006 Posts: 24
|
Posted: Thu Feb 07, 2008 0:38 Post subject: |
|
|
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 |
|
|
Mikel of Avalon
Joined: 29 Dec 2004 Posts: 72 Location: Germany
|
|
Back to top |
|
|
Firehorse66
Joined: 24 Nov 2006 Posts: 24
|
Posted: Mon Feb 11, 2008 1:57 Post subject: |
|
|
Ok thanks ill give this a try. |
|
Back to top |
|
|
|