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 
 
Starting and Demo Module

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



Joined: 14 Jul 2007
Posts: 8

PostPosted: Sat Jul 14, 2007 23:56    Post subject: Starting and Demo Module Reply with quote

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 Very Happy

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 Cool


Last edited by gandb on Mon Jul 16, 2007 19:24; edited 1 time in total
Back to top
View user's profile Send private message
gandb



Joined: 14 Jul 2007
Posts: 8

PostPosted: Sun Jul 15, 2007 0:16    Post subject: Reply with quote

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
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Sun Jul 15, 2007 2:07    Post subject: Reply with quote

did you call SQLInit(); ?
or executed aps_onload ?
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Jul 15, 2007 22:05    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
gandb



Joined: 14 Jul 2007
Posts: 8

PostPosted: Mon Jul 16, 2007 19:30    Post subject: Reply with quote

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 Crying or Very sad
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Jul 17, 2007 13:51    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
gandb



Joined: 14 Jul 2007
Posts: 8

PostPosted: Tue Jul 17, 2007 19:02    Post subject: my module log Reply with quote

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
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Jul 17, 2007 20:23    Post subject: Reply with quote

And nwnx.txt ?
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
gandb



Joined: 14 Jul 2007
Posts: 8

PostPosted: Mon Aug 06, 2007 21:24    Post subject: Reply with quote

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
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Wed Aug 08, 2007 23:02    Post subject: Reply with quote

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.0Cool, and recompiled all scripts without compilation errors.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
gandb



Joined: 14 Jul 2007
Posts: 8

PostPosted: Wed Aug 22, 2007 20:14    Post subject: Reply with quote

I work in 1.08 version

Sad

Look my work, download my module below

www.adenworld.com.br/aden/temp/testeminimo.zip

wait more help Crying or Very sad
Back to top
View user's profile Send private message
gandb



Joined: 14 Jul 2007
Posts: 8

PostPosted: Wed Aug 22, 2007 20:16    Post subject: Reply with quote

My ini files:

http://www.adenworld.com.br/aden/temp/nwnx.ini

http://www.adenworld.com.br/aden/temp/xp_mysql.ini
Back to top
View user's profile Send private message
PhyrPhly



Joined: 16 Jun 2007
Posts: 25

PostPosted: Thu Aug 23, 2007 4:18    Post subject: Re: Starting and Demo Module Reply with quote

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. Smile

- PhyrPhly
Back to top
View user's profile Send private message
gandb



Joined: 14 Jul 2007
Posts: 8

PostPosted: Sun Aug 26, 2007 21:01    Post subject: Reply with quote

Tanxs WORK FINE!! =D

I should have done this (upload mod) before.

REALY TANXS
Back to top
View user's profile Send private message
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