Jump to content

(C++) Pánt rendszer (Scale)


Recommended Posts

Sziasztok. Megprobáltam berakni a Scale féle pánt rendszert de az alábbi hibákba ütköztem... Esetleg valaki tudna ebben segíteni? Itt az első hiba kód:image.png.cc137feb3740fa8e7eb928a558d09de2.png

Itt van a kód:

#ifdef ENABLE_SASH_SYSTEM
void CActorInstance::AttachSash(CItemData * pItemData, float fSpecular)
{
    if (!pItemData)
    {
        RegisterModelThing(CRaceData::PART_SASH, NULL);
        SetModelInstance(CRaceData::PART_SASH, CRaceData::PART_SASH, 0);
        RefreshActorInstance();
        return;
    }
    
    RegisterModelThing(CRaceData::PART_SASH, pItemData->GetModelThing());
    SetModelInstance(CRaceData::PART_SASH, CRaceData::PART_SASH, 0);
    AttachModelInstance(CRaceData::PART_MAIN, "Bip01 Spine2", CRaceData::PART_SASH);
    
    if (fSpecular > 0.0f)
    {
        SMaterialData kMaterialData;
        kMaterialData.pImage = NULL;
        kMaterialData.isSpecularEnable = TRUE;
        kMaterialData.fSpecularPower = fSpecular;
        kMaterialData.bSphereMapIndex = 1;
        SetMaterialData(CRaceData::PART_SASH, NULL, kMaterialData);
    }
}
#endif

Van még egy hiba amit nem teljesen értek annak a hiba kódja itt van:image.png.afe78ca745b8394dff9633b5a749da5e.png

És a kódja itt van:

#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
const DWORD c_New_Equipment_Start = c_Equipment_Start + 22 + 1;
#else
const DWORD c_New_Equipment_Start = c_Equipment_Start + 22;
#endif
#ifdef ENABLE_SASH_SYSTEM
const DWORD c_New_Equipment_Start = c_Equipment_Start + 21 + 1;
#else
const DWORD c_New_Equipment_Start = c_Equipment_Start + 21;

const DWORD c_New_Equipment_Count = 3;
const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 0;
const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 1;
const DWORD c_Equipment_Belt = c_New_Equipment_Start + 2;;
#endif

Előre is köszönöm szépen a segítségeket 🙂

Link to post
Share on other sites

#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
    const DWORD c_New_Equipment_Start = c_Equipment_Start + 24;
    const DWORD c_New_Equipment_Count = 4;
    const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 1;
    const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 2;
    const DWORD c_Equipment_Belt = c_New_Equipment_Start + 0;
#endif

Link to post
Share on other sites

1, RaceData.h oda kellett #include-olni a Locale_inc.h-t, mert nem ismerte fel a makrót.

2, Lenght.h-ban lévő 'enum EWearPositions' részt kell figyelembe venni a sorrendnél:

Hidden Content

    Give reaction to this post to see the hidden content.

 

 

  • Like 2
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...