View previous topic :: View next topic |
Author |
Message |
entropy
Joined: 23 Jun 2009 Posts: 6
|
Posted: Tue Jun 23, 2009 0:27 Post subject: NWNStructures - looking for (more) info |
|
|
Hi!
I see that the NWNStructures.h (of the functions plugin) has an extensive setup of anything you might want to address as a data structure in plugin development.
I was wondering if something like that existed for the windows platform, or if the same header file can be used.
I'm new to this entire NWNX stuff, but I ran into a little problem - namely wanted to switch an event handler script for another one. The linux version of the funcs and functions plugins have those, and I've tried to convert the two functions over to windows... but without success.
Either the data structure is different, or I made another mistake, as there seems to be no result whatsoever. |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Tue Jun 23, 2009 8:11 Post subject: |
|
|
Most data structures are identical between Linux and Win32. _________________ Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/
<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.
<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for? |
|
Back to top |
|
|
entropy
Joined: 23 Jun 2009 Posts: 6
|
Posted: Tue Jun 23, 2009 8:56 Post subject: |
|
|
Thanks!
Well, with that in mind, I was able to successfully write a conversion of GetEventhandler, largely using (both) linux version as help.
It seems to work properly...
However, when the SetEventhandler doesn't seem to work at all. I'm fairly certain I replace the same ExoString that I read with GetEventhandler, but it doesn't stick. Basically it seems as if I didn't touch the string, nor changed the address of the char* ...
Have others had similar issues with creatures eventhandlers? Can I post the code somewhere for someone interested to look it over? |
|
Back to top |
|
|
entropy
Joined: 23 Jun 2009 Posts: 6
|
Posted: Tue Jun 23, 2009 10:43 Post subject: |
|
|
lol
My own bad - found the mistake in my code, after all.
Works fine now.
If I want to share the functions, where do I put them? Aka should I update the nwnx functions for windows, or should I rather create a new plugin with the Set/GetEventhandler? |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Tue Jun 23, 2009 13:56 Post subject: |
|
|
entropy wrote: | lol
My own bad - found the mistake in my code, after all.
Works fine now.
If I want to share the functions, where do I put them? Aka should I update the nwnx functions for windows, or should I rather create a new plugin with the Set/GetEventhandler? | Definitely new plugin nwnx_functions for windows are totally outdated. Im looking forward to this btw. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Zebranky
Joined: 04 Jun 2006 Posts: 415
|
Posted: Thu Jun 25, 2009 12:59 Post subject: |
|
|
Zebranky wrote: | Most data structures are identical between Linux and Win32. |
By the way, I just found one that isn't, and it had me scratching my head for a while. When I say "most", I really don't mean "all" _________________ Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/
<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.
<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for? |
|
Back to top |
|
|
|