Jump to content
  • 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 post

6 answers to this question

Recommended Posts

  • 0

Hey, your fault is at playersettingmodule.py.

 

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

 

Link to post
  • 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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Activity

    1. 1

      Arrows with another weapons

    2. 0

      Client afk in background - Effects started to fun faster

    3. 1

      Arrows with another weapons

    4. 221

      WorldEditor ReMIX

    5. 31

      [FIX] Fixing Metin2 memory leaks

    6. 1

      Starting a metin2 server on a VPS ?

    7. 1

      Starting a metin2 server on a VPS ?

  • Recently Browsing

    No registered users viewing this page.

Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

×
×
  • 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.