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 
 
NWNX4 loads nwn2server, but refuses to load the module...

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support
View previous topic :: View next topic  
Author Message
erikbreau



Joined: 09 Oct 2009
Posts: 23
Location: NB, Canada

PostPosted: Sun Feb 20, 2011 23:39    Post subject: NWNX4 loads nwn2server, but refuses to load the module... Reply with quote

I'm reinstalling nwnx4 with the latest version on a Win7 machine. I'm following all the instructions stated, but I'm not getting the server to load the module directory.

Can anyone take a look at these settings for me please?

My NWNX settings: http://pastebin.com/jnLyf8dA

and my and my xp_sqlite settings: http://pastebin.com/8hqaqMM1

I'm at a loss here... why is it not loading the module?

Erik.
_________________
"Europa is coming, and there isn't anything you can do to stop it!..."
http://nwn-europa.blogspot.com/
Europa Pic Gallery: http://picasaweb.google.ca/erikbreau/EuropaPics
Back to top
View user's profile Send private message Send e-mail Visit poster's website
erikbreau



Joined: 09 Oct 2009
Posts: 23
Location: NB, Canada

PostPosted: Mon Feb 21, 2011 5:51    Post subject: Reply with quote

Found the issue. It was actually in a previous post concerning this same problem I had when first using the setup.

Question Shocked Question

not THAT is deja vue!

Linked: http://www.nwnx.org/phpBB2/viewtopic.php?t=1468&postdays=0&postorder=asc&start=15

LOL
Erik.
_________________
"Europa is coming, and there isn't anything you can do to stop it!..."
http://nwn-europa.blogspot.com/
Europa Pic Gallery: http://picasaweb.google.ca/erikbreau/EuropaPics
Back to top
View user's profile Send private message Send e-mail Visit poster's website
erikbreau



Joined: 09 Oct 2009
Posts: 23
Location: NB, Canada

PostPosted: Mon Mar 21, 2011 2:18    Post subject: Reply with quote

I take it back.

...the nwnx4 i installed, and reinstalled, and re-reinstalled, cannot load the dir/mod. I even increased the number of attempts to 20, but it stops at one point, the server GUI has a blank module window and both, just freeze.

I have rechecked all the settings. I'm hoping that if I list them here, someone will be able to tell me I'm not losing my mind...and see something I missed.

Erik.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# NWNX4 configuration file
# These are the default values for NWNX4.

# Path to NWN2 installation (where nwn2server.exe is located)
# no default. You really have to specify it, currently.
nwn2 = C:\Program Files (x86)\Atari\Neverwinter Nights 2

# You can override the tempory path NWN2 uses
# This is where NWN2 will put its logfiles (among other files)
# no default
nwn2temp = D:\Projekte\NWNX4svn\bin\dist

# Command line parameters to start the server with
# default: no parameters
parameters = -moduledir Europa

# Should NWNX restart the server if the server process has gone away ?
# 0 = do not restart the server
# 1 = restart the server
# default: 1
processWatchdog = 1

# Should NWNX restart the server if it locks up ?
# This can happen if the server is still running, but does not react to gamespy queries any more.
# 0 = do not query the server
# 1 = query the server
# default: 1
gamespyWatchdog = 1

# If you activate the gamespy watchdog, you need to specify the port your NWN2 server is running on
# default: 5151
gamespyPort = 5121

# How often should the gamespy watchdog query the server ?
# Note: The server will be restarted if it does not react to a certain number of
# queries in a row. See setting gamespyTolerance below.
# default: every 30 seconds
gamespyInterval = 30

# How often may the server not react to gamespy queries ?
# Note: The server will be restarted if it does not react this many queries in a row
# Example: gamespyInterval = 30 and gamespyTolerance = 4 means that the server will
# be restarted if it does not react within 2 minutes
# default: 4 queries
gamespyTolerance = 20

# How long should NWNX wait before the gamespy watchdog kick in ?
# Note: Give the server enough time to load the module, otherwise the watchdog will start to complain
# Value = seconds to wait
# default: 30 seconds
gamespyDelay = 30

# If the server crashes, how long should NWNX wait before it restarts the server ?
# Value = seconds to wait
# default: 5 seconds
restartDelay = 5

# Should NWNX disable the general protection fault error dialog ?
# Note: The watchdogs may fail to restart the server properly if this dialog stays open
# 0 = do not disable the GPFault dialog
# 1 = disable the GPFault dialog
# default: 1
noGPFaultErrorBox = 1

# If you want NWNX to execute a CMD or BAT file before restarting the server after
# a crash, specify it's name here. If you leave this setting empty, no program
# will be run. NWNX will wait for the program to finish before it continues.
# no default
# restartCmd = nwnx_restart.cmd

# How long should NWNX wait for the server to shutdown gracefully
# before it ends the server process forcefully ?
# Value = seconds to wait
# default: 10 seconds
gracefulShutdownTimeout = 10

# You can enter a server message that will be sent to all players
# as NWNX tries to shutdown the server.
# Value = message
# default: none
gracefulShutdownMessage = Server is shutting down NOW!

# How long should the shutdown server message be displayed ?
# Value = seconds to wait before actual shutdown
# default: 5 seconds
gracefulShutdownMessageWait = 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________
"Europa is coming, and there isn't anything you can do to stop it!..."
http://nwn-europa.blogspot.com/
Europa Pic Gallery: http://picasaweb.google.ca/erikbreau/EuropaPics
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dethia



Joined: 01 Oct 2009
Posts: 23

PostPosted: Mon Mar 21, 2011 2:40    Post subject: Reply with quote

parameters = -moduledir "testing_module"

that is what my line looks like, try putting some quotations around it hope that helps.
Back to top
View user's profile Send private message
erikbreau



Joined: 09 Oct 2009
Posts: 23
Location: NB, Canada

PostPosted: Mon Mar 21, 2011 5:00    Post subject: Reply with quote

Dethia, you are a genius... in the true latin sense of the word.

IT LOADED!

ok, so, again, not in the instructions, but duly added...

You wouldn't perhaps be able to figure out why the PC Tools GUI will not pop up on one mod, but will on the other?

Erik.
_________________
"Europa is coming, and there isn't anything you can do to stop it!..."
http://nwn-europa.blogspot.com/
Europa Pic Gallery: http://picasaweb.google.ca/erikbreau/EuropaPics
Back to top
View user's profile Send private message Send e-mail Visit poster's website
erikbreau



Joined: 09 Oct 2009
Posts: 23
Location: NB, Canada

PostPosted: Mon Mar 21, 2011 5:04    Post subject: Reply with quote

Re-Revised Instructions.



1. Download NWNX4

You can download NWNX4 here: http://www.nwnx.org/index.php?id=nwnx4

Download and save the ZIP file. Now create a new folder for NWNX4 on your computer, name and suggested location is: C:\NWNX4

Extract the contents of the ZIP file and place the 14 items into the newly created folder.

2. What is inside the NWNX4 package

There are 14 files in the ZIP file, they are listed as:
-[folder] demo
-licence.txt
-nwnx.ini
-nwnx_include.erf
-nwnx_sql.erf
-nwnx_time.erf
-NWNX4_Controller.exe
-NWNX4_GUI.exe
-NWNX4_Hook.dll
-xp_mysql.dll
-xp_mysql.ini
-xp_sqlite.dll
-xp_sqlite.ini
-xp_time.dll

3. Configuring NWNX

File moving and .ini configurations:

3.1 Installation of NWNX4 files
First thing to do: Copy the file “NWNX4_Hook.dll” from the unzipped content into the main folder of your NWN2 installation (where your nwn2server.exe file is).

Make sure you copy the file, do not move it!

3.2 Edit NWNX.INI file
(The nwnx.ini contains descriptions for every setting, so these will not be explained in detail here)

There is one setting which absolutely needs to be set:

# Path to NWN2 installation (where nwn2server.exe is located)
# no default. You really have to specify it, currently.
nwn2 = C:\Program Files\Atari\Neverwinter Nights 2

Replace "C:\Program Files\Atari\Neverwinter Nights 2" (the default location) with the root directory of NWN2 on your computer, e.g. "C:\Program Files\Atari\Neverwinter Nights 2", (or if installed elsewhere, C:\Games\NWN2).

Note, Windows Vista may have 2 program files folders, make sure you select the correct one.

If you want to run the included NWNX4 demo module later on, we can set the module's name right now:

# Command line parameters to start the server with
# default: no parameters
parameters = -module NWNX4Demo

Note: If your module name contains spaces, be sure to quote it like this:

parameters = -module "The Name Of Your Module"

Note: If your module is a directory, then the path must be listed as:

parameters = -moduledir "modulename" (don't omit the quotations)

NOTE: UNLESS YOU ARE PLANNING TO USE MYSQL AS THE DEFAULT DATABASE PROVIDER, STEP 3.3 MAY BE SKIPPED OVER, LEAVING THE SETTINGS TO DEFAULT; SQLITE.
3.3 Edit XP_SQLITE.INI
The SQLite plugin is the default database provider.

You can control which database plugin will be used by specifying the plugin class in the INI file:

# The function class that is provided by this plugin
class = SQL

Make sure that the class in xp_sqlite.ini is set to SQL and the class in xp_mysql.ini is set to SQLoff (or something else, doesn't matter). This is the default, so if you are working with the original files, everything should be peachy.

Now set the path where the internal SQLite database will store its data file:

# The database file that the SQLite engines stores its data in
file = C:\NWNX4\sqlite.db

If you are using the recommended installation path C:\NWNX4, you can leave this value as it is. The file size will depend on how much data you put into it, but generally, it will stay relatively small.

Save the file if you made any changes, and close your text editor.

3.4 Copy the demo modules
NWNX4 comes with three demo modules, which are a nice way of exploring NWNX , testing if the installation was successful and setting up basic data structures in new databases.

These modules are in the demo folder:

NWNX4Demo.mod: Main demonstration module, serves as gateway to the plugin demo modules.
nwnx_demo_sqlite.mod: Demonstration, setup, and test of a SQLite database
nwnx_demo_mysql.mod: Demonstration, setup, and test of a MySQL database
nwnx_demo_time.mod: Demonstration of the TIME plugin
Copy all four files into your module folder, e.g. C:\Program Files\Atari\Neverwinter Nights 2\Modules.
NOTE: I personally was unable to load these modules, but in using a module of my own, I succeeded.

4. Starting NWNX

Hold your breath, it's time to start NWNX and see how easy it was to set it up.

Double-click on NWNX4_GUI.exe in your recently created NWNX4 folder and the fun should begin.


4.1 The NWNX4 GUI
Shortly after starting the NWNX4_GUI, the dedicated NWN2 server window will come up. Make sure that the NWNX4Demo module, or whichever module you have chosen to load, was loaded successfully.
If the Module Name box stays empty, double check the path where you copied the demo modules into and make sure you have set the parameter option in nwnx.ini as described above.
NWNX4 will create two different kinds of log files in your NWNX4 folder. The first, nwnx.txt, contains messages for the main program, which is loaded into nwn2server.exe. Once the module is successfully loaded, it should look like this:

NWN Extender 4 V.1.0.9
(c) 2008 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org

* Loading plugins...
* Loading plugin xp_mysql.dll: Successfully registered as class: SQLoff
* Loading plugin xp_sqlite.dll: Successfully registered as class: SQL
* Loading plugin xp_time.dll: Successfully registered as class: TIME
* General protection fault error dialog disabled.
* NWNX4 activated.

Note: An error during xp_mysql initialization is ok. During the creation of this tutorial, my MySQL server was not running, so the plugin could not connect to it. You will probably receive the same message. If you want to disable the plugin entirely, rename the DLL to something like disabled_xp_mysql.dll.

The other kind of log file is generated by each plugin individually, e.g. xp_sqlite.txt:

NWNX SQLite Plugin V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
(built using SQLite 3.3.17)

* Log level set to 2 (everything)
* SQLite database file is C:\NWNX4\sqlite.db
* Plugin initialized.
* Registering under function class SQL

Make sure you do not get any error messages (except the one mentioned above) in your log files.



Log into your selected module, if successful, then you did well...congratulations!

Additional useful links can be found here: http://nwcitadel.forgottenrealmsweave.org/showthread.php?t=1769
_________________
"Europa is coming, and there isn't anything you can do to stop it!..."
http://nwn-europa.blogspot.com/
Europa Pic Gallery: http://picasaweb.google.ca/erikbreau/EuropaPics
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dethia



Joined: 01 Oct 2009
Posts: 23

PostPosted: Mon Mar 21, 2011 7:26    Post subject: Reply with quote

I'll try installing dmfi and pc tools on monday when i get of work, will be able to tell you more after I've done that.
Back to top
View user's profile Send private message
erikbreau



Joined: 09 Oct 2009
Posts: 23
Location: NB, Canada

PostPosted: Mon Mar 21, 2011 13:55    Post subject: Reply with quote

Thanks Dethia, but I got it working. I will most likely encounter other issues, but I'll email you on that if it happens.

Erik.
_________________
"Europa is coming, and there isn't anything you can do to stop it!..."
http://nwn-europa.blogspot.com/
Europa Pic Gallery: http://picasaweb.google.ca/erikbreau/EuropaPics
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> 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