View previous topic :: View next topic |
Author |
Message |
gandb
Joined: 14 Jul 2007 Posts: 8
|
Posted: Sat Jul 14, 2007 23:56 Post subject: Starting and Demo Module |
|
|
Hi, I folow steps instalations.
-Download zip file
-Install Hook files
-Configurate ini files
-Startup demo modeule and OK, work fine.
But
If I try startup a my module, the function NWNXInstalled() return false!
And functions SQLExecDirect,SetPersistentString,etc not work!
Yes, I imported the *.erf files to my module
Other situation is the demo module, the area in demo module not open! I try opened to learn but no have success! In Verify and breake in demo module others errors hapens.
My NWNX4 is a 1.08 version.
Wait answers and sorry my bad inglish
Last edited by gandb on Mon Jul 16, 2007 19:24; edited 1 time in total |
|
Back to top |
|
|
gandb
Joined: 14 Jul 2007 Posts: 8
|
Posted: Sun Jul 15, 2007 0:16 Post subject: |
|
|
My logs
demo module
Code: | NWNX MySQL Plugin V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
(built using mysql-5.0.27 source)
* Log level set to 2 (everything)
* Connecting to server 192.168.0.1
* Plugin initialized.
* Registering under function class SQL
* Executing: SHOW DATABASES
* Executing: SELECT count(*) FROM pwdata
* Returning: 3 (column 0)
* Executing: SELECT count(*) FROM pwobjdata
* Returning: 0 (column 0)
* Executing: SELECT val FROM pwdata WHERE player='mtermero' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Returning: 1 (column 0)
* Executing: SELECT val FROM pwdata WHERE player='mtermero' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Returning: 1 (column 0)
* Executing: SELECT player FROM pwdata WHERE player='mtermero' AND tag='Aaharg Velter' AND name='demoName'
* Executing: UPDATE pwdata SET val='555 ',expire=0 WHERE player='mtermero' AND tag='Aaharg Velter' AND name='demoName'
* Executing: SELECT val FROM pwdata WHERE player='mtermero' AND tag='Aaharg Velter' AND name='demoName'
* Returning: 555 (column 0)
* Executing: SELECT val FROM pwdata WHERE player='' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Returning: 1 (column 0)
* Executing: SELECT val FROM pwdata WHERE player='' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Returning: 1 (column 0)
* Plugin unloaded.
|
My module
Code: | NWNX MySQL Plugin V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
(built using mysql-5.0.27 source)
* Log level set to 2 (everything)
* Connecting to server 192.168.0.1
* Plugin initialized.
* Registering under function class SQL
* Plugin unloaded.
|
|
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Sun Jul 15, 2007 2:07 Post subject: |
|
|
did you call SQLInit(); ?
or executed aps_onload ? _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Jul 15, 2007 22:05 Post subject: |
|
|
ShaDoOoW, these functions are not relevant (nor existant) in NWNX4...
gandb, I just want to be sure: If you load the demo module, everything works (as can be seen from the log files you posted), and if you load your own module, not even NWNXInstalled works ? Even as you started the modules exactly in the same way ?
What do the logs look like when you run NWNX4 with your own module ? _________________ Papillon |
|
Back to top |
|
|
gandb
Joined: 14 Jul 2007 Posts: 8
|
Posted: Mon Jul 16, 2007 19:30 Post subject: |
|
|
Tanxs!
The 2 logs above are demo module and my own module.
If I run demo module, ok, work fine!
If I run my own module, the function NWNXInstalled return false and print "no nwnx installed"!
But, module load ok and log no show errors |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Tue Jul 17, 2007 13:51 Post subject: |
|
|
Hmm, the logs above only show the demo module. You can't have the output of two modules in one set of logfiles, since you need to restart the server in between. _________________ Papillon |
|
Back to top |
|
|
gandb
Joined: 14 Jul 2007 Posts: 8
|
Posted: Tue Jul 17, 2007 19:02 Post subject: my module log |
|
|
My module's log shows only this:
Code: | NWNX MySQL Plugin V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
(built using mysql-5.0.27 source)
* Log level set to 2 (everything)
* Connecting to server 192.168.0.1
* Plugin initialized.
* Registering under function class SQL
* Plugin unloaded. |
|
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Tue Jul 17, 2007 20:23 Post subject: |
|
|
And nwnx.txt ? _________________ Papillon |
|
Back to top |
|
|
gandb
Joined: 14 Jul 2007 Posts: 8
|
Posted: Mon Aug 06, 2007 21:24 Post subject: |
|
|
Papillon my log below.
I try again with mini test module and same hapens.
MY TEST MODULE XP_MYSQL.TXT LOG
Code: | NWNX MySQL Plugin V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
(built using mysql-5.0.27 source)
* Log level set to 2 (everything)
* Connecting to server 192.168.0.1
* Plugin initialized.
* Registering under function class SQL
* Plugin unloaded.
|
NWNX4 DEMO MODULE XP_MYSQL.TXT LOG
Code: | NWNX MySQL Plugin V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
(built using mysql-5.0.27 source)
* Log level set to 2 (everything)
* Connecting to server 192.168.0.1
* Plugin initialized.
* Registering under function class SQL
* Executing: SHOW DATABASES
* Executing: SELECT count(*) FROM pwdata
* Returning: 3 (column 0)
* Executing: SELECT count(*) FROM pwobjdata
* Returning: 0 (column 0)
* Executing: SELECT val FROM pwdata WHERE player='mterm' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Returning: 1 (column 0)
* Executing: SELECT val FROM pwdata WHERE player='mterm' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Returning: 1 (column 0)
* Executing: SELECT player FROM pwdata WHERE player='mterm' AND tag='Aaharg Velter' AND name='demoName'
* Executing: INSERT INTO pwdata (player,tag,name,val,expire) VALUES('mtermero','Aaharg Velter','demoName','1234 ',0)
* Executing: SELECT val FROM pwdata WHERE player='mterm' AND tag='Aaharg Velter' AND name='demoName'
* Returning: 1234 (column 0)
* Executing: SELECT val FROM pwdata WHERE player='' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Executing: SELECT player FROM pwdata WHERE player='' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Executing: INSERT INTO pwdata (player,tag,name,val,expire) VALUES('','Aaharg Velter','DemoGreetComplete','1',0)
* Executing: SELECT val FROM pwdata WHERE player='' AND tag='Aaharg Velter' AND name='DemoGreetComplete'
* Returning: 1 (column 0)
* Plugin unloaded.
|
MY TEST MODULE XP_NWNX.TXT LOG
Code: | NWN Extender 4 V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
* Loading plugins...
* Loading plugin xp_mysql.dll: Successfully registered as class: SQL
* Loading plugin xp_time.dll: Successfully registered as class: TIME
* Disabling general protection fault error dialog.
* NWNX4 activated.
* NWNX4 shutting down...
* NWNX4 shutdown successfull.
|
NWNX4 DEMO MODULE NWNX.TXT LOG
Code: | NWN Extender 4 V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
* Loading plugins...
* Loading plugin xp_mysql.dll: Successfully registered as class: SQL
* Loading plugin xp_time.dll: Successfully registered as class: TIME
* Disabling general protection fault error dialog.
* NWNX4 activated.
* NWNX4 shutting down...
* NWNX4 shutdown successfull.
|
|
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Wed Aug 08, 2007 23:02 Post subject: |
|
|
The logs look fine.
I do not know what the problem could be. I would recommend making sure that you imported the correct erf (from 1.0, and recompiled all scripts without compilation errors. _________________ Papillon |
|
Back to top |
|
|
gandb
Joined: 14 Jul 2007 Posts: 8
|
|
Back to top |
|
|
gandb
Joined: 14 Jul 2007 Posts: 8
|
|
Back to top |
|
|
PhyrPhly
Joined: 16 Jun 2007 Posts: 25
|
Posted: Thu Aug 23, 2007 4:18 Post subject: Re: Starting and Demo Module |
|
|
gandb,
Your mini test module is using NWNX4 version 1.07 calls.
Quote: | int NWNXInstalled()
{
SetLocalString(GetModule(), "NWNX!INSTALLED", sSpacer);
if (GetLocalString(GetModule(), "NWNX!INSTALLED") == "TRUE")
return TRUE;
else
return FALSE;
} |
Try using the calls found in the NWNX4Demo.mod that came with NWNX4 version 1.08.
Quote: | int NWNXInstalled()
{
return NWNXGetInt("NWNX", "INSTALLED", "", 0);
} |
Import the nwnx_include from the right version of the NWNX4Demo module, and you will be good.
- PhyrPhly |
|
Back to top |
|
|
gandb
Joined: 14 Jul 2007 Posts: 8
|
Posted: Sun Aug 26, 2007 21:01 Post subject: |
|
|
Tanxs WORK FINE!! =D
I should have done this (upload mod) before.
REALY TANXS |
|
Back to top |
|
|
|