View previous topic :: View next topic |
Author |
Message |
Ilrilan
Joined: 29 Aug 2006 Posts: 11
|
Posted: Fri Nov 23, 2007 20:23 Post subject: My version of the nwnx hook - compatible to all version |
|
|
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 |
|
|
serafim
Joined: 02 Jan 2007 Posts: 41
|
Posted: Sat Nov 24, 2007 2:14 Post subject: |
|
|
Very Good
I Try it tomorrow ^^ |
|
Back to top |
|
|
Grinning Fool
Joined: 12 Feb 2005 Posts: 264
|
Posted: Sun Nov 25, 2007 3:10 Post subject: |
|
|
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 |
|
|
Ilrilan
Joined: 29 Aug 2006 Posts: 11
|
Posted: Sun Nov 25, 2007 11:51 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sat Dec 01, 2007 0:52 Post subject: |
|
|
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 |
|
|
serafim
Joined: 02 Jan 2007 Posts: 41
|
Posted: Tue Dec 04, 2007 2:28 Post subject: |
|
|
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 |
|
|
Ilrilan
Joined: 29 Aug 2006 Posts: 11
|
Posted: Tue Dec 04, 2007 15:23 Post subject: |
|
|
Yes. It is done for it - calling all plugins, with new and old syntax |
|
Back to top |
|
|
serafim
Joined: 02 Jan 2007 Posts: 41
|
Posted: Wed Dec 05, 2007 3:17 Post subject: |
|
|
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 |
|
|
Ilrilan
Joined: 29 Aug 2006 Posts: 11
|
Posted: Wed Dec 05, 2007 10:20 Post subject: |
|
|
Post here your nwnx.txt |
|
Back to top |
|
|
serafim
Joined: 02 Jan 2007 Posts: 41
|
Posted: Fri Dec 07, 2007 2:54 Post subject: |
|
|
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 |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Fri Dec 07, 2007 5:04 Post subject: |
|
|
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 |
|
|
Ilrilan
Joined: 29 Aug 2006 Posts: 11
|
Posted: Fri Dec 07, 2007 6:31 Post subject: |
|
|
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 |
|
|
serafim
Joined: 02 Jan 2007 Posts: 41
|
Posted: Mon Dec 10, 2007 1:43 Post subject: |
|
|
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 |
|
|
Ilrilan
Joined: 29 Aug 2006 Posts: 11
|
Posted: Mon Dec 10, 2007 14:05 Post subject: |
|
|
I do one small update with hook dll - reload it, then run and post here nwnx.txt with errors. |
|
Back to top |
|
|
serafim
Joined: 02 Jan 2007 Posts: 41
|
Posted: Tue Dec 11, 2007 4:02 Post subject: |
|
|
ok now works fine ... thanks very much^^
now my only need is for a 64bit nwn2server :p
i'm going ot
thanks again |
|
Back to top |
|
|
|