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 
 
Configuration difficulties: NWNX4 Detour error

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



Joined: 29 Nov 2009
Posts: 2

PostPosted: Sun Nov 29, 2009 19:30    Post subject: Configuration difficulties: NWNX4 Detour error Reply with quote

I am a total newbie to NWNX, and am installing it for the first time. I am unable to figure out or find a solution by searching the forums to the problem I am experiencing.

This is the first test firing for a PW that is under construction, namely ShoreOfShadows. Eventually, there will be multiple instances of NWNX/NWN Server running simultaneously, but not if I can't get past what I assume is a configuration problem.

I would greatly appreciate any help or guidance offered.

What I experience:
I am running NWNX_GUI.exe from Windows Explorer, by doubleclicking. The NWNX GUI window loads and tries to run NWN Server. I get the following error message in the log window (no log file is created):

Running in GUI mode
*Starting the NWN server
DetourCreateProcessWithDll failed: 123
!Error: failed to start server process, retrying in 5000 ms...

with the last two lines repeating endlessly, every five seconds.

What I have done:

  • I have installed and configured Windows Server 2003 Enterprise on a new dual Xeon CPU machine with 4 GB RAM.
  • I downloaded and installed MySQL, and have it working (runs as a windows service on Windows startup, is definitely running when starting NWNX, have created test database and users, successfully added pwobjdata and pwdata tables manually).
  • I created an NWN Server instance on my home machine and transferred it to the server box. The server instance starts when run manually.
  • I downloaded and unpacked NWNX4 into its own folder, removed the xp_sqllite files, edited xp_mysql.ini with the login information to the MySQL database, edited nwnx.ini to point it to the NWN Server.



Detailed information on configuration:

NWNX error message:
DetourCreateProcessWithDll failed: 123



Hardware:
2 quad core Xeon CPU's, 4GB RAM

Windows Version:
Windows Server 2003 Enterprise R2 SP2
(Version 5.2 (Build 3790.srv03_sp2_gdr.090805-1438: Service Pack 2)

MySQL version:
MySQL 5.1.40

Folder listing for NWNX folder:

Directory of ((parent folders omitted))\scripting\nwnx

11/29/2009 08:40 AM <DIR> .
11/29/2009 08:40 AM <DIR> ..
07/15/2007 10:09 PM <DIR> demo
03/14/2008 11:44 PM 18,661 licence.txt
11/29/2009 08:59 AM 3,177 nwnx.ini
10/05/2008 11:32 AM 184,320 NWNX4_Controller.exe
10/05/2008 11:32 AM 1,126,400 NWNX4_GUI.exe
10/05/2008 11:32 AM 212,992 NWNX4_Hook.dll
04/30/2007 09:33 PM 1,950 nwnx_include.erf
04/30/2007 09:33 PM 19,435 nwnx_sql.erf
04/30/2007 09:34 PM 1,978 nwnx_time.erf
11/16/2009 03:11 AM <DIR> temp
10/05/2008 11:31 AM 1,572,864 xp_mysql.dll
11/28/2009 08:37 PM 309 xp_mysql.ini
10/05/2008 11:32 AM 200,704 xp_time.dll
11 File(s) 3,342,790 bytes
4 Dir(s) 1,220,815,138,816 bytes free

Folder listing for NWN Server folder:

Directory of ((parent folders omitted)\scripting\nwn dev server

11/28/2009 05:42 PM <DIR> .
11/28/2009 05:42 PM <DIR> ..
11/28/2009 10:59 AM <DIR> Campaigns
11/28/2009 03:19 PM 2,388,176 d3dx9_30.dll
11/28/2009 08:53 PM <DIR> Data
11/28/2009 11:00 AM 20,617,804 dialog.TLK
11/28/2009 11:00 AM 441,399 granny2.dll
11/28/2009 03:05 PM <DIR> Modules
11/28/2009 11:00 AM 374,272 mss32.dll
11/29/2009 08:58 AM 2,277 nwn2.ini
11/28/2009 11:02 AM 4,636,672 nwn2server.exe
11/28/2009 11:00 AM 70,144 NWN2_MemoryMgr.dll
11/28/2009 11:00 AM 69,632 NWN2_MemoryMgr_amdxp.dll
11/28/2009 03:56 PM 9 nwnpatch.ini
11/28/2009 07:35 PM 3 nwnpid
11/28/2009 11:00 AM 1,546 nwnplayer.ini
11/28/2009 11:01 AM 2,478,080 nwupdate.exe
11/28/2009 03:56 PM <DIR> patch
11/28/2009 11:01 AM 205,824 patchw32.dll
11/28/2009 03:56 PM <DIR> Temp
11/28/2009 03:56 PM <DIR> utils
13 File(s) 31,285,838 bytes
8 Dir(s) 1,220,815,138,816 bytes free

Contents of NWNX.ini:

nwn2 = "((parent folder omitted))\Scripting\NWN Dev Server"
nwn2temp = "((parent folder omitted))\Scripting\NWNX\Temp"
parameters = -module nwnx4demo
processWatchdog = 1
gamespyWatchdog = 1
gamespyPort = 5121
gamespyInterval = 30
gamespyTolerance = 4
gamespyDelay = 240
restartDelay = 5
noGPFaultErrorBox = 1
# restartCmd = nwnx_restart.cmd
gracefulShutdownTimeout = 10
gracefulShutdownMessage = Server is shutting down NOW!
gracefulShutdownMessageWait = 5

Contents of xp_mysql.ini:
# The function class that is provided by this plugin
class = SQL

# MySQL server connection parameters
server = localhost
user = ((id omitted))
password = ((password omitted))
schema = sosdevtest

# How much information should be written to xp_mysql.txt:
# 0=nothing, 1=only errors, 2=everything
loglevel = 2

If any further information is needed to resolve the issues, I will happily provide it.

Thank you in advance.
Back to top
View user's profile Send private message
MerlinAmbrose



Joined: 29 Nov 2009
Posts: 2

PostPosted: Mon Nov 30, 2009 1:38    Post subject: Reply with quote

The problem is fixed...with massive help from Skywing. Talked to him on NWN irc chat and we figured out that the problem was in the nwnx.ini file.

Specifically, I had put quotes around the file paths in the nwn2 and nwn2temp entries, because the folder names contain spaces. Once those were removed, NWNX worked flawlessly.

Bad:
nwn2 = "((parent folder omitted))\Scripting\NWN Dev Server"
nwn2temp = "((parent folder omitted))\Scripting\NWNX\Temp"

Good:
nwn2 = ((parent folder omitted))\Scripting\NWN Dev Server
nwn2temp = ((parent folder omitted))\Scripting\NWNX\Temp

Just that simple.

Thanks a million to Skywing.
Back to top
View user's profile Send private message
SBG



Joined: 31 Mar 2011
Posts: 5

PostPosted: Thu Dec 27, 2012 21:26    Post subject: Reply with quote

# 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

# You can override the tempory path NWN2 uses
# This is where NWN2 will put its logfiles (among other files)
# no default
nwn2temp = C:\Program Files (x86)\Atari\Neverwinter Nights 2\temp

# Command line parameters to start the server with
# default: no parameters
parameters = -home C:\Program Files (x86)\Atari\Neverwinter Nights -moduledir NWN2server -publicserver 1 -difficulty 3 -maxclients 64 -playerpassword VampiresRule -adminpassword VampiresSuck -servername "Vhaor'kir" -maxlevel 21 -oneparty 0 -port 5121
# 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


Running in GUI mode
*Starting the NWN server
DetourCreateProcessWithDll failed: 267
!Error: failed to start server process, retrying in 5000 ms...


THis is my error code.. but notice it's 267 and not 123

Soo Not sure why it won't sync.

I can run NWN2server just fine without NWNx.. but NWNx just won't grab my server.

Could use some help. Running Windows 7
Back to top
View user's profile Send private message
SBG



Joined: 31 Mar 2011
Posts: 5

PostPosted: Fri Dec 28, 2012 4:11    Post subject: Reply with quote

Code 267 = Directory name Invalid


Just needed to play around with the path name a bit. NWNx is just picky in the ini file.

sorry for the waste of reading.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows 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