View previous topic :: View next topic |
Author |
Message |
scarface
Joined: 12 Jun 2005 Posts: 94 Location: Sweden
|
Posted: Wed Aug 12, 2009 15:07 Post subject: |
|
|
Zebranky wrote: | @jec2: Edit NWNXdmactions.h and add right before the closing #endif:
extern void nwn_ExecuteScript(const char *scr, nwn_objid_t oid);
@scarface: No, but you do need a hook handler script in your mod, and you need to use NWNX!DMACTIONS!SET_ACTION_SCRIPT to let the plugin know what the script is called. |
I've set the var on module load:
SetLocalString(GetModule(), "NWNX!DMACTIONS!SET_ACTION_SCRIPT", "dm_actions");
dm_actions is the event script which the dm action events, still doesn't work for me. |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Wed Aug 12, 2009 15:26 Post subject: |
|
|
default script is: dmaction
Go into nss folder in archive, there are header file nwnx_dmactions and example dmaction. |
|
Back to top |
|
|
driller
Joined: 23 Mar 2009 Posts: 6
|
Posted: Thu Jan 14, 2010 13:34 Post subject: |
|
|
This compiles fine after I added the external function reference.
But I get this when I tried to load it.
ERROR: dlopen: ./nwnx_dmlogs.so: ./nwnx_dmlogs.so: undefined symbol: _Z17nwn_ExecuteScriptPKcj
ldd produces this:
linux-gate.so.1 => (0xb77a0000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb775a000)
libz.so.1 => /lib/libz.so.1 (0xb7744000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb75fe000)
/lib/ld-linux.so.2 (0xb77a1000)
Is this an issue with a library version?
Thanks. |
|
Back to top |
|
|
Timear
Joined: 23 Aug 2005 Posts: 31
|
Posted: Tue Feb 02, 2010 20:31 Post subject: |
|
|
Hi everyone
Is this plugin still available anywhere? I can't connect to the server that is referenced in the link.
Kind regards
Timear |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
Timear
Joined: 23 Aug 2005 Posts: 31
|
Posted: Wed Feb 03, 2010 13:34 Post subject: |
|
|
Thanks |
|
Back to top |
|
|
Timear
Joined: 23 Aug 2005 Posts: 31
|
Posted: Mon Feb 15, 2010 13:30 Post subject: |
|
|
driller wrote: | This compiles fine after I added the external function reference.
But I get this when I tried to load it.
ERROR: dlopen: ./nwnx_dmlogs.so: ./nwnx_dmlogs.so: undefined symbol: _Z17nwn_ExecuteScriptPKcj
ldd produces this:
linux-gate.so.1 => (0xb77a0000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb775a000)
libz.so.1 => /lib/libz.so.1 (0xb7744000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb75fe000)
/lib/ld-linux.so.2 (0xb77a1000)
Is this an issue with a library version?
Thanks. |
Hi axs,
do you know what might be the problem an is there a solution for this issue?
I have the same problem as described above. Sources are out of the svn (trunk and branches). I've already tried to add nwn_funcs.o (lib where nwn_ExecuteScript is in) to makefile, but that didn't work either. Maybe i did something wrong?
Im not very used to work with linux and gcc (more windows and VC++) and could use a little help here.
Kind regards
Timear |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Mon Feb 15, 2010 14:40 Post subject: |
|
|
Hi.
I've commited little change in core header.
Try to compile nwnx core and dmactions against this change, in my case this helps. |
|
Back to top |
|
|
Timear
Joined: 23 Aug 2005 Posts: 31
|
Posted: Mon Feb 15, 2010 20:36 Post subject: |
|
|
Yup,
exporting the function did help
Thank you very much. |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Sun May 09, 2010 13:29 Post subject: |
|
|
New version is now in my SVN branche.
Features:- New actions
- DM_ACTION_REST_CREATURE
- DM_ACTION_RUNSCRIPT
- DM_ACTION_CREATE_PLACEABLE
- Better multi targeting handling
- Example code for dm multiselection tool triggered by REST from radial menu
- Few code corrections
|
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Jul 06, 2010 21:38 Post subject: |
|
|
The server crashes when DM clicks "Force Rest". _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Sun Jul 18, 2010 19:07 Post subject: |
|
|
Any backtrace of that?
I often use rest as DMTOOL and have no crash yet. |
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Fri Sep 24, 2010 21:15 Post subject: |
|
|
virusman wrote: | The server crashes when DM clicks "Force Rest". |
Duh, just happened to us. |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Fri Sep 24, 2010 21:28 Post subject: |
|
|
Ouch. New version is comming, for now just bypass rest event.
Code: | if(nAction == DM_ACTION_REST_CREATURE) {
PreventDMAction(); // Prevent standard effect
ForceRest(oGetDMAction_Target());
} |
|
|
Back to top |
|
|
Ravine
Joined: 26 Jul 2006 Posts: 105
|
Posted: Fri Sep 24, 2010 23:07 Post subject: |
|
|
Thx! |
|
Back to top |
|
|
|