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 
 
nwnx_dmactions
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
scarface



Joined: 12 Jun 2005
Posts: 94
Location: Sweden

PostPosted: Wed Aug 12, 2009 15:07    Post subject: Reply with quote

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



Joined: 11 Feb 2005
Posts: 76

PostPosted: Wed Aug 12, 2009 15:26    Post subject: Reply with quote

default script is: dmaction

Go into nss folder in archive, there are header file nwnx_dmactions and example dmaction.
Back to top
View user's profile Send private message
driller



Joined: 23 Mar 2009
Posts: 6

PostPosted: Thu Jan 14, 2010 13:34    Post subject: Reply with quote

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



Joined: 23 Aug 2005
Posts: 31

PostPosted: Tue Feb 02, 2010 20:31    Post subject: Reply with quote

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



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Feb 02, 2010 22:07    Post subject: Reply with quote

http://data.virusman.ru/nwn/mirrors/dmactions.tar.gz
http://data.virusman.ru/nwn/mirrors/dmlogs_priv.tar.gz
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Timear



Joined: 23 Aug 2005
Posts: 31

PostPosted: Wed Feb 03, 2010 13:34    Post subject: Reply with quote

Thanks Smile
Back to top
View user's profile Send private message
Timear



Joined: 23 Aug 2005
Posts: 31

PostPosted: Mon Feb 15, 2010 13:30    Post subject: Reply with quote

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



Joined: 11 Feb 2005
Posts: 76

PostPosted: Mon Feb 15, 2010 14:40    Post subject: Reply with quote

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



Joined: 23 Aug 2005
Posts: 31

PostPosted: Mon Feb 15, 2010 20:36    Post subject: Reply with quote

Yup,

exporting the function did help Smile

Thank you very much.
Back to top
View user's profile Send private message
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Sun May 09, 2010 13:29    Post subject: Reply with quote

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



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Jul 06, 2010 21:38    Post subject: Reply with quote

The server crashes when DM clicks "Force Rest".
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Sun Jul 18, 2010 19:07    Post subject: Reply with quote

Any backtrace of that?
I often use rest as DMTOOL and have no crash yet.
Back to top
View user's profile Send private message
Ravine



Joined: 26 Jul 2006
Posts: 105

PostPosted: Fri Sep 24, 2010 21:15    Post subject: Reply with quote

virusman wrote:
The server crashes when DM clicks "Force Rest".


Duh, just happened to us. Sad
Back to top
View user's profile Send private message
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Fri Sep 24, 2010 21:28    Post subject: Reply with quote

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



Joined: 26 Jul 2006
Posts: 105

PostPosted: Fri Sep 24, 2010 23:07    Post subject: Reply with quote

Thx!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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