View previous topic :: View next topic |
Author |
Message |
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Tue Mar 08, 2005 0:43 Post subject: Lag problem only when NWNX2 is used.... |
|
|
For about a month we ahve had bad lag on our PW and I have finally traced it back to NWNX2... I had to be when I updated it or somthing.
The profiler used to work, and no longer does.
NWNX_odbc.txt says only this:
o Connect successfull.
o Disconnecting from database.
nwnx.txt says this:
NWN Extender V.2.5.3.0
(c) 2003 by Ingmar Stieger (Papillon) and Jeroen Broekhuizen
visit us at http://www.avlis.org
* Loading modules...
* Extension functions is loaded.
* Extension hashset is loaded.
* Extension mysql is loaded.
* Extension odbc is loaded.
* Extension profiler is loaded.
* NWNX2 activated.
* NWNX2 shutting down...
* NWNX2 shutdown successfull.
it didnt used to shut down....
the lag *may* have started when I tried to remove the need for teh voice, but it has been long enough that I cant realy place it that finely.
they sympom is a regualr lag spike about every 2-3 seconds.
Anyone have some idea about what could cause this?
oh and is this the right forum for this problem? |
|
Back to top |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
|
Back to top |
|
|
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Wed Mar 09, 2005 1:41 Post subject: |
|
|
Yes, that is when the lag started.
Perhaps I set it up wrong?
Perhaps it has somthing to do with the module being classic?
I changed some settings, and now nwnx2 brings the server up, then takes it down again even before the module loads....
nwnx.txt:
NWN Extender V.2.5.3.0
(c) 2003 by Ingmar Stieger (Papillon) and Jeroen Broekhuizen
visit us at http://www.avlis.org
* Loading modules...
* Extension functions is loaded.
* Extension hashset is loaded.
* Extension mysql is loaded.
* Extension odbc is loaded.
* Extension profiler is loaded.
* NWNX2 activated.
* NWNX2 shutting down...
* NWNX2 shutdown successfull.
nwnx_odbc.txt:
o Connect successfull.
o Got request: SELECT player FROM pwdata WHERE player='~' AND tag='aria' AND name='HourStart'
o Sent response (-1 bytes):
o Got request: INSERT INTO pwdata (player,tag,name,val,expire) VALUES('~','aria','HourStart','5',0)
o Got request: SELECT player FROM pwdata WHERE player='~' AND tag='aria' AND name='DayStart'
o Sent response (-1 bytes):
o Got request: INSERT INTO pwdata (player,tag,name,val,expire) VALUES('~','aria','DayStart','1',0)
o Got request: SELECT player FROM pwdata WHERE player='~' AND tag='aria' AND name='MonthStart'
o Sent response (-1 bytes):
o Got request: INSERT INTO pwdata (player,tag,name,val,expire) VALUES('~','aria','MonthStart','2',0)
o Got request: SELECT player FROM pwdata WHERE player='~' AND tag='aria' AND name='YearStart'
o Sent response (-1 bytes):
o Got request: INSERT INTO pwdata (player,tag,name,val,expire) VALUES('~','aria','YearStart','1405',0)
o Disconnecting from database.
*is clueless* |
|
Back to top |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Wed Mar 09, 2005 7:58 Post subject: |
|
|
I'd look at your nwnx.ini file (post it here if you have questions). Make sure that you comment out the database options that you're not using (of the SQLite, ODBC and MySQL options--note that there's a direct MySQL link now for NWNx, you don't need the ODBC layer).
Otherwise looks like you're using the APS persistence functions--I'm not familiar with those. There was a new profiler version released in the last 2 months as well--current with that version? gl _________________ Neversummer PW NWNx powered mayhem |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Wed Mar 09, 2005 9:32 Post subject: |
|
|
"Yes, that is when the lag started."
2.5.3 is by far not the latest version. I would recommend downloading the newest versions of all plugins. _________________ Papillon |
|
Back to top |
|
|
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Thu Mar 10, 2005 5:10 Post subject: |
|
|
Papillon wrote: | "Yes, that is when the lag started."
2.5.3 is by far not the latest version. I would recommend downloading the newest versions of all plugins. |
to make sure, I DLed it again last night before I tried again, perhaps I copied the wrong file?
Im going to re DL *all* the plugins and try again... wish me luck
hrm I looked at the properties of the NWNX2 and it shows version 2.6.1.1
I thought the l;ogs were soing in an odd place... the NWNX.txt is Blank...not what I posted above..anyway Im off to re DL the plugins. |
|
Back to top |
|
|
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Thu Mar 10, 2005 5:46 Post subject: |
|
|
anyway here is the .ini script...
; NWNX2 configuration file
; These are the default values for NWNX2. Values specified on the command
; line take precedence.
[NWNX]
ServerPort = 5121
ModuleName = "aps_demo"
WatchdogProcess = yes
UpdateIntervalProcess = 5
WatchdogGamespy = no
UpdateIntervalGamespy = 20
GamespyRetries = 5
OldGamespyProtocol = no
RestartDelay = 5
[ODBC2]
; Log file
MaxLogSize = 512 ; in KByte
LogLevel = 2 ; 0=nothing, 1=only errors, 2=everything
; Use these two settings for the SQLite internal database
;source = sqlite
;file = sqlite.db
; Use these two settings for ODBC connections
;source = odbc
;dsn = nwn
; Use these five settings for MySQL connections
source = mysql
server = localhost
user = nwnuser
pwd = nwn
db = nwn
; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely
hookscorco = true
[PROFILER]
MaxLogSize = 512 ; in KByte
LogLevel = 2 ; 1=overall statistics, 2=full script callstack
anyone see anyting goofy? |
|
Back to top |
|
|
JeroenB
Joined: 31 Dec 2004 Posts: 228 Location: Netherlands
|
Posted: Thu Mar 10, 2005 10:03 Post subject: |
|
|
Not in the configuration file. But I see in a post above that you've got two plugins loaded for database access. I suppose it is going wrong there. I don't know what versions those are, but I suggest remove them both and download the latest ODBC plugin. |
|
Back to top |
|
|
NoMercy
Joined: 03 Jan 2005 Posts: 123 Location: UK
|
Posted: Thu Mar 10, 2005 13:20 Post subject: |
|
|
2.5.3 is the latest linux release....
But yes in general when upgrading make sure youve cleaned out all the old modules and put in new ones. |
|
Back to top |
|
|
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Fri Mar 11, 2005 1:16 Post subject: |
|
|
JeroenB wrote: | Not in the configuration file. But I see in a post above that you've got two plugins loaded for database access. I suppose it is going wrong there. I don't know what versions those are, but I suggest remove them both and download the latest ODBC plugin. |
well I dled *everythign* last night still the instacrash problem.
I have the DB set up as mysql (using instructions got here) so should I remoeve the mysql one or the odbc one? do I jsut take it otu of the dirictory or would I have put some command In the module?
well this may have to do with the problem...
nwnx_speech.txt:
NWNX2 Speech version 0.1.3 for Windows.
Copyright 2005 (C) Jeroen Broekhuizen
o Using ODBC as connection medium.
o Connect successfull.
1. \Device\NPF_{0EE71C8C-1ADC-4F23-BC09-53B7E1471781} (Intel(R) PRO Adapter)
2. \Device\NPF_{70BC2FD0-15DB-49AA-A492-7342DE3CFCAB} (NET IP/1394 Miniport)
3. \Device\NPF_{5934258E-4268-459C-AC8F-ADEDD6689F9E} (Microsoft MAC Bridge Virtual NIC (Microsoft's Packet Scheduler) )
o Successfully open adapter \Device\NPF_{70BC2FD0-15DB-49AA-A492-7342DE3CFCAB}.
is selectignt he wrong one...
here is the ini file
nwnx_speech.ini:
[Speech]
interface = 3
should I move (or copy) this into the main ini file?
<-- clueless me |
|
Back to top |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Fri Mar 11, 2005 7:52 Post subject: |
|
|
Start simple. If you're just using the basic database bridge, you should only need NWNx, the madcode hook library dll, nwnx-module dll and nwnx_odbc dll. Profiler is handy but not strictly necessary. The speech module needs the Talus listener setup...if not using this, it's probably best to drop it.
NWNx is a "passive" app though, not sure what it could be doing on it's own to spike every 2-3 seconds (most likely a module script--profiler will help track it down). _________________ Neversummer PW NWNx powered mayhem |
|
Back to top |
|
|
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Sat Mar 12, 2005 1:53 Post subject: |
|
|
Lokey wrote: | Start simple. If you're just using the basic database bridge, you should only need NWNx, the madcode hook library dll, nwnx-module dll and nwnx_odbc dll. Profiler is handy but not strictly necessary. The speech module needs the Talus listener setup...if not using this, it's probably best to drop it.
NWNx is a "passive" app though, not sure what it could be doing on it's own to spike every 2-3 seconds (most likely a module script--profiler will help track it down). |
Well actually now it instacrashes rather than lags.
we are using the speach system well were trying to anyway.
do I just take the .dlls out of the directory? |
|
Back to top |
|
|
NoMercy
Joined: 03 Jan 2005 Posts: 123 Location: UK
|
Posted: Sat Mar 12, 2005 4:50 Post subject: |
|
|
I'd remove everything, and then slowly introduce the various parts and get them working fully before adding the next plugin, start by just geting nwnx up and working without any plugins, then get the database working.
I would imagine things like vaultster and the voice system are on the high end of the dificulty scale, so things you shouln't rush into until youre sure the rest of nwnx is setup and working well. |
|
Back to top |
|
|
|