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_FUNCS Armor Proficiency Heavy

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
highv priest



Joined: 01 Mar 2013
Posts: 111

PostPosted: Sun May 11, 2014 21:40    Post subject: NWNX_FUNCS Armor Proficiency Heavy Reply with quote

So on this server I happen to dev for, when a Pale Master reaches level 10 they get the choice of Immunity to Critical Hits(Deathless Mastery) or Immunity to paralyze/stun(Tough As Bone), naturally they choose the former.

Well when NWNX_FUNCS removes Tough As Bone it appears to take Armor Proficiency Heavy along with it, why is this? and how can I stop it from doing this?
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Mon May 12, 2014 0:04    Post subject: Reply with quote

I had a look at the source code and I don't see anything that should be messing with the armor proficiencies.

http://nwn.virusman.ru/svn/nwnx2-win32/branches/maxrock/funcs/CNssFeats.cpp


Can you post log messages?
Do you see it logging the remove call with the right feat number etc.
Are you removing it byLevel or just generally?

The only thing I can think of is that there might be something wrong with the
CExoArrayList_uint16_delfeatindex
method - but I havent noticed the behavior you are describing - mainly cause I focus on adding feats rather than removing them.
Back to top
View user's profile Send private message
Terra_777



Joined: 27 Jun 2008
Posts: 216
Location: Sweden

PostPosted: Mon May 12, 2014 0:16    Post subject: Reply with quote

Maybe its a datasize missmatch? Feats are WORDs (4 bytes), its possible that at some point the feat is cast as a DWORD (8 bytes) which means that if you set that DWORD to 0 or remove it you're removing two feats.

Also, are you removing the feats from the level-stat list? Could be something regarding that aswell.
_________________
I dun have any signature, I'm happy anyway.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
highv priest



Joined: 01 Mar 2013
Posts: 111

PostPosted: Tue May 13, 2014 14:51    Post subject: Reply with quote

[05/13/2014 08:48:24] - StrReq: "REMOVEFEAT" Params: "894 1"
[05/13/2014 08:48:24] Feat 894 found in general feat index at position 22.
[05/13/2014 08:48:24] Feat 894 found in in feat list of level 11 at position 0.

Reported when debug is set to 3(wasn't even aware FUNCS had a debug option until I googled it).

Yes I do remove it from the level-stat list, legal characters is enforced here so I figured for good measure of not having a headache later just strip it completely.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support 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