View previous topic :: View next topic |
Author |
Message |
fb_ba
Joined: 24 Jun 2013 Posts: 11
|
Posted: Mon Jun 24, 2013 18:41 Post subject: Call a script from a NWNX4 plugin |
|
|
Hi people, can anyone help me ???
I'm using NWNX4 to take some info from a simple script which runs in my Neverwinter Nights 2 level.
More exactly, from a script attached to an event of the game (for example "On Heartbeat") i send a string to my
NWNX4 dll plugin.
My question is:
since i'd like to do the opposite from what i do actually, is there a trick to call my script directly from the C++ code
of the NWNX4 plugin ??
Thanks for the help !!! |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
fb_ba
Joined: 24 Jun 2013 Posts: 11
|
Posted: Mon Jun 24, 2013 19:19 Post subject: |
|
|
Ah wonderful !!!
And works it in the windows version of the source code ? |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Mon Jun 24, 2013 20:03 Post subject: |
|
|
Yes. NWNX4 is Windows-only. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
fb_ba
Joined: 24 Jun 2013 Posts: 11
|
Posted: Tue Jun 25, 2013 10:24 Post subject: |
|
|
mmmm ... when i try to buold the solution i receive this:
1>LINK : fatal error LNK1181: cannot open input file 'detours.lib'
where is this file ?? |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Tue Jun 25, 2013 11:55 Post subject: |
|
|
Build Detours project first. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
fb_ba
Joined: 24 Jun 2013 Posts: 11
|
Posted: Tue Jun 25, 2013 14:15 Post subject: |
|
|
Sorry but it doesn't compile
From the "Properties" of the project "chat" i choose "Project Build order";
by the tab "Dependencies" i set that "Project: chat depends on: Detours"
Is this the correct way?
It is possible to put directly the file "detours.lib" in the right directory (maybe \..\lib\detours) ???? |
|
Back to top |
|
|
fb_ba
Joined: 24 Jun 2013 Posts: 11
|
Posted: Tue Jun 25, 2013 15:17 Post subject: |
|
|
Ok it was my fault !!
I used to do "Rebuilt" instead of "Built" command |
|
Back to top |
|
|
fb_ba
Joined: 24 Jun 2013 Posts: 11
|
Posted: Tue Jun 25, 2013 23:25 Post subject: |
|
|
Virusman i'm not very skilled in C++ ... could you explain a little how the chat plugin works and how the "runScript" is used ??
Is there a .mod which uses this module ? |
|
Back to top |
|
|
|