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 
 
How to make NWNCX plugin (Hook critical)

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Idelish / Lyo



Joined: 02 Sep 2011
Posts: 10

PostPosted: Fri Nov 25, 2011 13:30    Post subject: How to make NWNCX plugin (Hook critical) Reply with quote

Good morning,

I want to know what steps/applications should I go/have to create a critical hook. I need to work only on the client side (NWNCX). I have a medium programming knowledge, but do not know what applications or steps need to create the plugin. I know "terra777" are created a NWNX which plugin hook does what I want, my intention is to try to replicate it in NWNCX.

Any answer will help me.

PS If you knows another way to hook without leaving the client side please let me know, do not do me all the work, only how to start.

I just need to set a 1 to a variable on the critical damager or receiver, when the critical happens (if is inmune or not, but not for this matter).
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Nov 25, 2011 17:25    Post subject: Reply with quote

Critical hits are calculated on the server, so you should make a NWNX plugin and make sure it works with the client (doesn't use absolute addresses, etc.), then run NWNCX with nwncx_nwnxbridge.dll (this NWNCX plugin will attach all available NWNX plugins to the client).
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Idelish / Lyo



Joined: 02 Sep 2011
Posts: 10

PostPosted: Mon Nov 28, 2011 23:14    Post subject: Reply with quote

Hi, if I understand correctly, without having to connect to a remote server can run plugins of NWNX on NWNCX, is that correct?. In that case, how would check that the system loads the functions of the plugins? and also, how do I access them?.
Excuse me for my ignorance of NWNX but so far had not used it
Back to top
View user's profile Send private message
Idelish / Lyo



Joined: 02 Sep 2011
Posts: 10

PostPosted: Fri Dec 02, 2011 0:40    Post subject: Reply with quote

I keep waiting for an answer, thanks.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Fri Dec 02, 2011 7:53    Post subject: Reply with quote

nwmain.exe contains both server and client. So NWNX Bridge plugin launches NWNX and plugins, allowing to use NWNX (server-side) functionality in single-player.
_________________
In Soviet Russia, NWN plays you!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
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