Neuz crash CWndCommItemCtrl::DrawSkill

01/02/2015 11:24 raventh1984#1
Hi elitepvpers,

i am adding an new buff item and i have taken the example of II_SYS_SYS_ARMOREFFECTCHANGE_GOLD_7DAY

so what i changed was

CmnHdr.h added
Code:
SM_GLOWDBZ
dwSMItemID [SM_GLOWDBZ]			  =		II_SYS_SYS_ARMOREFFECTDBZ;
DPClient.cpp
Code:
else if(g_pPlayer->HasBuff(BUFF_ITEM, II_SYS_SYS_ARMOREFFECTDBZ ))
		{
			if(pItemProp->dwID == II_SYS_SYS_ARMOREFFECTDBZ )
				check = TRUE;
		}
CreateObj.cpp
under XI_NAT_WINGANGEL01
Added XI_GEN_DBZ

Mover.cpp
Code:
else if(HasBuff(BUFF_ITEM2, II_SYS_SYS_ARMOREFFECTDBZ))
		{
			if(m_pSfxWing == NULL)
				m_pSfxWing = CreateSfx( D3DDEVICE, XI_GEN_DBZ, GetPos(), GetId(), D3DXVECTOR3(0,0,0), NULL_ID, -1);
		}
Added Spec_Item
II_SYS_SYS_ARMOREFFECTCHANGE_GOLD_7DAY <-- this entire line and changed it to II_SYS_SYS_ARMOREFFECTDBZ etc..

Defined it in DefineItem.h/DefineObj.h/Mdldyna.inc

Entering in game
Pressed the glow change. Its working. But i dont see an icon at the top of the screen with the countdown timer. Also pressing J will crash the neuz.

Error:

Any help will be appreciated.
01/02/2015 14:03 Mognakor#2
You should know the procedure: Post the specific parts of the function and give info which line is line 549.
01/02/2015 14:57 raventh1984#3
Thanks for the reply Mognakor.

Already found the problem

II_SYS_SYS_ARMOREFFECTDBZ was defined with number 71002

Inside the Table [SKILLINFLUENCE_TBL] @ [SkillInfluence] the value was 5466.
So i looked why it changed to 5466 instead of the item number. And it was because of this WORD wID inside Skillinfluence.cpp
While an WORD has only a range from 0 to 65535.
So the DefineItem number was out of range. Lowerd it and its working now.
01/02/2015 19:13 Lumi#4
Why you defined sm mode without using it? :o I think you can do it easily in MoverSkill.cpp.
01/02/2015 19:24 raventh1984#5
The sm mode will be used later.