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 
 
My version of the nwnx hook - compatible to all version
Goto page 1, 2  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
Ilrilan



Joined: 29 Aug 2006
Posts: 11

PostPosted: Fri Nov 23, 2007 20:23    Post subject: My version of the nwnx hook - compatible to all version Reply with quote

Nothing new - but useful, because it can load old (based on SetLocalString) and new (based on NWNX Set/Get) plugins simultaneously.

Here is nwnx.txt:
Code:
NWN Extender 4 V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
added compatibility with 0.0.7 - Ilrilan
visit us at http://www.nwnx.org
...
Connecting NWNXSetString (0x547500)...
SetLocalString hooked at 0x53cb00
* Loading plugins...
* Loading plugin xp_craft.dll: Successfully registered as class: CRAFTER
* Loading plugin xp_leto.dll: Successfully registered as class: LETO
* Loading plugin xp_sqlite.dll: Successfully registered as class: SQL
* Loading plugin xp_time.dll: Successfully registered as class: TIME


New plugins (craft, sqlite, time) and old (leto) works together.

Files here:
http://nwnx.org/index.php?id=85


Last edited by Ilrilan on Thu Nov 29, 2007 11:49; edited 5 times in total
Back to top
View user's profile Send private message
serafim



Joined: 02 Jan 2007
Posts: 41

PostPosted: Sat Nov 24, 2007 2:14    Post subject: Reply with quote

Very Good Smile

I Try it tomorrow ^^
Back to top
View user's profile Send private message MSN Messenger
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Sun Nov 25, 2007 3:10    Post subject: Reply with quote

Nicely done, the loss of the ability to access objects directly was a painful one. I might suggest contacting papillon to maintain/integrate the source into the main project, rather than maintaining a separate branch on your own?
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Ilrilan



Joined: 29 Aug 2006
Posts: 11

PostPosted: Sun Nov 25, 2007 11:51    Post subject: Reply with quote

I have already contacted with Papillon - he said that he want receive from OE new functions (NWNXGet/Set) for working with objects.
Source code is open - if he want, he always can insert my variant to the official branch. If not - i always can add this compatibility in the any next version of the official core.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Dec 01, 2007 0:52    Post subject: Reply with quote

And I think this is what I will do. Ilrilan's solution is a pragmatic one, and will fit nicely into NWNX 1.09.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
serafim



Joined: 02 Jan 2007
Posts: 41

PostPosted: Tue Dec 04, 2007 2:28    Post subject: Reply with quote

A question...

a must admin that i know nothing regarding hoocking and plugins, but..

can this new hook make a nwnx4 1.07 function call (not compatible with the new 1.08 syntax) running in nwnx4 1.08?
Back to top
View user's profile Send private message MSN Messenger
Ilrilan



Joined: 29 Aug 2006
Posts: 11

PostPosted: Tue Dec 04, 2007 15:23    Post subject: Reply with quote

Yes. It is done for it - calling all plugins, with new and old syntax
Back to top
View user's profile Send private message
serafim



Joined: 02 Jan 2007
Posts: 41

PostPosted: Wed Dec 05, 2007 3:17    Post subject: Reply with quote

ok this is true even for sql code nested in nwn scripts?

i triyed the alternate hook with my module whose syntax calls DirectExec of sql code, but in the debug file sqlyte i receive the error:

* Function class 'SQL' not provided by any plugin. Check your installation.

any advice ?
Back to top
View user's profile Send private message MSN Messenger
Ilrilan



Joined: 29 Aug 2006
Posts: 11

PostPosted: Wed Dec 05, 2007 10:20    Post subject: Reply with quote

Post here your nwnx.txt
Back to top
View user's profile Send private message
serafim



Joined: 02 Jan 2007
Posts: 41

PostPosted: Fri Dec 07, 2007 2:54    Post subject: Reply with quote

Code:
NWN Extender 4 V.0.0.8
(c) 2007 by Ingmar Stieger (Papillon)
added compatibility with 0.0.7 - Ilrilan
visit us at http://www.nwnx.org

* Loading plugins...
* Loading plugin xp_sqlite.dll: Successfully registered as class: SQL
* Loading plugin xp_time.dll: Successfully registered as class: TIME
* Disabling general protection fault error dialog.
* NWNX4 activated.
* Function not specified.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* Function class 'SQL' not provided by any plugin. Check your installation.
* NWNX4 shutting down...
* NWNX4 shutdown successfull.


the shut down whas made by me.

and this is the xp_sqlite.txt:

Code:
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 e:\entara2\db\ero2.db
* Plugin initialized.
* Registering under function class SQL
* Plugin unloaded.


any suggestion?
Back to top
View user's profile Send private message MSN Messenger
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Fri Dec 07, 2007 5:04    Post subject: Reply with quote

Each plug-in 'style' requires it's own #includes script.
You need to make sure that you are using the appropriate #includes for the plug-in you are using.
Judging by the log, you're using the old SQLite.
Don't forget to use SQLInit() in your OnModuleLoad script.

Cheers
Gryphyn
Back to top
View user's profile Send private message
Ilrilan



Joined: 29 Aug 2006
Posts: 11

PostPosted: Fri Dec 07, 2007 6:31    Post subject: Reply with quote

By the nwnx.txt plugin is loaded. You should check, do you correctly call this plugin in nwn scripts? If it's old plugin (with SetLocalString) and you try use it with NWNXGetString - yes, you'll receive error. And using new plugins with SetlLocalString - same error.
Back to top
View user's profile Send private message
serafim



Joined: 02 Jan 2007
Posts: 41

PostPosted: Mon Dec 10, 2007 1:43    Post subject: Reply with quote

So i can rename:

nwnx_include107 the 1.07 include

and

nwnx_include108 the one from 1.08

have all them in my module and call wath i need in the right script?

Can i so have mixed code in my module? (mainly for a transitional period)
Back to top
View user's profile Send private message MSN Messenger
Ilrilan



Joined: 29 Aug 2006
Posts: 11

PostPosted: Mon Dec 10, 2007 14:05    Post subject: Reply with quote

I do one small update with hook dll - reload it, then run and post here nwnx.txt with errors.
Back to top
View user's profile Send private message
serafim



Joined: 02 Jan 2007
Posts: 41

PostPosted: Tue Dec 11, 2007 4:02    Post subject: Reply with quote

ok now works fine ... thanks very much^^

now my only need is for a 64bit nwn2server :p

i'm going ot Very Happy

thanks again
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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