Jump to content
×
×
  • Create New...
  • 0

Weapon effect problem c++/python


Sneaky Sneaky

Question

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

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.