Jump to content

Recommended Posts

Hey guys, i have the bug with inventory. Can anyone know where i could make a mistake?
Untitled-1.jpg

ItemData.h:

Spoiler

            WEAR_COSTUME_BODY,    // 19
            WEAR_COSTUME_HAIR,    // 20
#ifdef ENABLE_MOUNT_COSTUME_SYSTEM
            WEAR_COSTUME_MOUNT, // 21
#endif
#ifdef ENABLE_WEAPON_COSTUME_SYSTEM
            WEAR_COSTUME_WEAPON, // 22
#endif

            WEAR_RING1 = 24,
            WEAR_RING2 = 25,
            WEAR_BELT = 26,

            WEAR_MAX_NUM = 32,


GameType.h:

Spoiler

    const DWORD c_New_Equipment_Start = 24;
    const DWORD c_New_Equipment_Count = 3;
    const DWORD c_Equipment_Ring1 = CItemData::WEAR_RING1;
    const DWORD c_Equipment_Ring2 = CItemData::WEAR_RING2;
    const DWORD c_Equipment_Belt = CItemData::WEAR_BELT;;


length.h:

Spoiler

    WEAR_COSTUME_BODY,    // 19
    WEAR_COSTUME_HAIR,    // 20
#ifdef ENABLE_MOUNT_COSTUME_SYSTEM
    WEAR_COSTUME_MOUNT, // 21
#endif
#ifdef ENABLE_WEAPON_COSTUME_SYSTEM
    WEAR_COSTUME_WEAPON, // 22
#endif
    WEAR_RING2 = 24,
    WEAR_RING1 = 25,
    WEAR_BELT = 26,

    WEAR_MAX = 32


inventorywindow.py:

Spoiler

                            "slot" : (
                                {"index":item.EQUIPMENT_BODY, "x":39, "y":37, "width":32, "height":64},
                                {"index":item.EQUIPMENT_HEAD, "x":39, "y":2, "width":32, "height":32},
                                {"index":item.EQUIPMENT_SHOES, "x":39, "y":145, "width":32, "height":32},
                                {"index":item.EQUIPMENT_WRIST, "x":75, "y":67, "width":32, "height":32},
                                {"index":item.EQUIPMENT_WEAPON, "x":3, "y":3, "width":32, "height":96},
                                {"index":item.EQUIPMENT_NECK, "x":114, "y":67, "width":32, "height":32},
                                {"index":item.EQUIPMENT_EAR, "x":114, "y":35, "width":32, "height":32},
                                {"index":item.EQUIPMENT_UNIQUE1, "x":2, "y":145, "width":32, "height":32},
                                {"index":item.EQUIPMENT_UNIQUE2, "x":75, "y":145, "width":32, "height":32},
                                {"index":item.EQUIPMENT_ARROW, "x":114, "y":2, "width":32, "height":32},
                                {"index":item.EQUIPMENT_SHIELD, "x":75, "y":35, "width":32, "height":32},
                                {"index":item.EQUIPMENT_RING1, "x":2, "y":106, "width":32, "height":32},
                                {"index":item.EQUIPMENT_RING2, "x":75, "y":106, "width":32, "height":32},
                                {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32},
                            ),

 

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

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I don't know exactly what the problem is, because the screenshot doesn't work,
but I can recommend adding systems as in the example below, at least you have a smaller chance to make a mistake while indexing them.

GameType.h:

#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
 
    const DWORD c_New_Equipment_Start = c_Equipment_Start + 21
	#ifdef ENABLE_SASH_SYSTEM
	+1
	#endif
	#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
	+1
	#endif
	;
 
    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


#ifdef ENABLE_COSTUME_SYSTEM
	const DWORD c_Costume_Slot_Start	= c_Equipment_Start + 19;
	const DWORD	c_Costume_Slot_Body		= c_Costume_Slot_Start + 0;
	const DWORD	c_Costume_Slot_Hair		= c_Costume_Slot_Start + 1;
	#ifdef ENABLE_SASH_SYSTEM
		const DWORD	c_Costume_Slot_Sash		= c_Costume_Slot_Start + 2;
	#endif
	#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
		const DWORD c_Costume_Slot_Weapon 	= c_Costume_Slot_Start + 3;
	#endif
	

	const DWORD c_Costume_Slot_Count = 2
	#ifdef ENABLE_SASH_SYSTEM
	+1
	#endif
	#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
	+1
	#endif
	;

	const DWORD c_Costume_Slot_End		= c_Costume_Slot_Start + c_Costume_Slot_Count;
#endif

 

Link to comment
Share on other sites

1 hour ago, intern35 said:

I don't know exactly what the problem is, because the screenshot doesn't work,
but I can recommend adding systems as in the example below, at least you have a smaller chance to make a mistake while indexing them.

GameType.h:


#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
 
    const DWORD c_New_Equipment_Start = c_Equipment_Start + 21
	#ifdef ENABLE_SASH_SYSTEM
	+1
	#endif
	#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
	+1
	#endif
	;
 
    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


#ifdef ENABLE_COSTUME_SYSTEM
	const DWORD c_Costume_Slot_Start	= c_Equipment_Start + 19;
	const DWORD	c_Costume_Slot_Body		= c_Costume_Slot_Start + 0;
	const DWORD	c_Costume_Slot_Hair		= c_Costume_Slot_Start + 1;
	#ifdef ENABLE_SASH_SYSTEM
		const DWORD	c_Costume_Slot_Sash		= c_Costume_Slot_Start + 2;
	#endif
	#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
		const DWORD c_Costume_Slot_Weapon 	= c_Costume_Slot_Start + 3;
	#endif
	

	const DWORD c_Costume_Slot_Count = 2
	#ifdef ENABLE_SASH_SYSTEM
	+1
	#endif
	#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
	+1
	#endif
	;

	const DWORD c_Costume_Slot_End		= c_Costume_Slot_Start + c_Costume_Slot_Count;
#endif

 

I update a pic, mb its help...

Link to comment
Share on other sites

  • 1 year later...

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.