niokio 366 Posted November 14, 2019 Share Posted November 14, 2019 (edited) Hey guys, i have the bug with inventory. Can anyone know where i could make a mistake? 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 August 26, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
intern35 0 Posted November 14, 2019 Share Posted November 14, 2019 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 More sharing options...
niokio 366 Posted November 14, 2019 Author Share Posted November 14, 2019 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 More sharing options...
Premium WeedHex 635 Posted November 14, 2019 Premium Share Posted November 14, 2019 1 3 Link to comment Share on other sites More sharing options...
intern35 0 Posted November 14, 2019 Share Posted November 14, 2019 Yep, picture is really helpful I think you made a mistake in slot count (5 page inventory), INVENTORY_MAX_NUM in src or EQUIPMENT_START_INDEX (inventorywindow.py) should be 225 slots count. Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted November 14, 2019 Premium Share Posted November 14, 2019 Was joking bro, btw problem seems to be on inventorywindow.py because item.EQUIPMENT_x is taking bad numbers from ItemData. Try to search difference with other sources and where is 23th wear slot? xD Link to comment Share on other sites More sharing options...
damzaffari 6 Posted July 19, 2021 Share Posted July 19, 2021 You solved the problem? I had the same problem! Ty Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now