Jump to content

Weapon effect problem c++/python


Recommended Posts

hi,

i was trying to add some weapon animated effects but i get this type of error

Spoiler

0222 10:02:22945 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=236) - Strange Skill Need Weapon(pp_palbang)
0222 10:02:34219 ::
playerSettingModule.py(line:1713) LoadGameData
playerSettingModule.py(line:523) __LoadGameEffect

LoadGameData - <type 'exceptions.AttributeError'>:'module' object has no attribute 'EFFECT_SWORD_REFINED_NEW1'

0222 10:02:34219 :: ============================================================================================================
0222 10:02:34219 :: Abort!!!!


0222 10:02:34219 ::  !!! Failed to load game data : STEP [40]

 

my code

InstanceBase.cpp

Spoiler

#ifdef ENABLE_ARMAS_EFFECT_MOVIMIENTO
        if (pItem->GetSubType() == CItemData::WEAPON_SWORD)
        {
            DWORD vnum = pItem->GetIndex();
            if (vnum >= 69910 && vnum <= 69919) // Cambiar "ID" por el ID (vnum) de tu arma
            {
                __ClearWeaponRefineEffect(); // Clear the previous effect
                m_swordRefineEffectRight = EFFECT_REFINED + EFFECT_SWORD_REFINED_NEW1; //  NEW EFFECT (AQUI CAMBIAS EL NOMBRE SEGUN EL SET)
            }
        }
#endif

 

InstanceBase.h

Spoiler

#ifdef ENABLE_ARMAS_EFFECT_MOVIMIENTO
            EFFECT_SWORD_REFINED_NEW1 = 60,
#endif

 

 

i tried also

#ifdef ENABLE_ARMAS_EFFECT_MOVIMIENTO
            EFFECT_SWORD_REFINED_NEW1,
#endif

 

my playersettingmode:

Spoiler

chrmgr.RegisterEffect(chrmgr.EFFECT_SWORD_REFINED_NEW1+60, "PART_WEAPON", "D:/ymir work/item/weapon/Effect/9/sword.mse")

do you know what may be the problem?

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

yeah, that just fixed the 1 sysser for the effect is not showing

 

 

0222 10:49:12164 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=236) - Strange Skill Need Weapon(pp_palbang)

 

its an empty item.

https://metin2.download/picture/8qb3MZj2XK8jtIQzna39wGXIPg04x6uv/.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

0222 10:49:12164 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=236) - Strange Skill Need Weapon(pp_palbang)

 

I don't think it's a problem with the weapon effects.

 

Your weapon looks like this because you didn't add the model properly. Are you trying to add a new weapon/skin with effects or just refine effects to use on any weapon?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.