View previous topic :: View next topic |
Author |
Message |
highv priest
Joined: 01 Mar 2013 Posts: 111
|
Posted: Sun May 11, 2014 21:40 Post subject: NWNX_FUNCS Armor Proficiency Heavy |
|
|
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 |
|
|
Baaleos
Joined: 02 Sep 2007 Posts: 830
|
Posted: Mon May 12, 2014 0:04 Post subject: |
|
|
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 |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Mon May 12, 2014 0:16 Post subject: |
|
|
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 |
|
|
highv priest
Joined: 01 Mar 2013 Posts: 111
|
Posted: Tue May 13, 2014 14:51 Post subject: |
|
|
[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 |
|
|
|