TheSLZ 105 Posted September 5, 2014 Share Posted September 5, 2014 (edited) Ty Edited September 7, 2015 by TheSLZ Link to comment Share on other sites More sharing options...
brianman 1 Posted September 6, 2014 Share Posted September 6, 2014 Hi Devs, I have this bug when i have 3. and 4. inventory: Can someone help me to solve this problem? Regards, Brianman Link to comment Share on other sites More sharing options...
Premium Zonni 230 Posted September 20, 2014 Premium Share Posted September 20, 2014 (edited) Exchange fix & explanation what you do wrong (in 1st post). in exchange.cpp when you told to change static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2 to static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2 static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3 static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 2); // inven page 4 you did huge mistake because invertory grid have only 45 slots (5 width, 9 height (9*5 = 45)). With your code we have 90 per page and this is nasty ;3 we must change it to original grid size - every CGrid related to equipment must have 45 slots - we must perform division with number 4 So, that's the right code. static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 4); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 4); // inven page 2 static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 4); // inven page 3 static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 4); // inven page 4 Before do modification:INVENTORY_MAX_NUM = 90 INVENTORY_MAX_NUM / 5 / 2 == 90 / 5 / 2 == 9 After your modification: INVENTORY_MAX_NUM = 180 INVENTORY_MAX_NUM / 5 / 2 == 180 / 5 / 2 == 18 After you apply my fix: INVENTORY_MAX_NUM = 180 INVENTORY_MAX_NUM / 5 / 4 == 180 / 5 / 4 == 180 / 20 == 9 Um, btw. If someone didn't know why 3 left slots in belt inventory didn't working... That's the explanation. +------------------------------------------------------+ 0 | Inventory (45 slots * 4 pages) 90 slots | +------------------------------------------------------+ 180 = INVENTORY_MAX_NUM(180) | Player equipment (items actually in use) 32 slots | +------------------------------------------------------+ 212 = INVENTORY_MAX_NUM(180) + WEAR_MAX_NUM(32) | DSS activated (6 slots * 2 pages) 12 slots | +------------------------------------------------------+ 224 = 212 + DS_SLOT_MAX(6) * DRAGON_SOUL_DECK_MAX_NUM(2) | DSS reserved (6 slots * 3 pages) 18 slos | +------------------------------------------------------+ 242 = 224 + DS_SLOT_MAX(6) * DRAGON_SOUL_DECK_RESERVED_MAX_NUM(3) | Belt inventory (16 slots (4x4 grid) | +------------------------------------------------------+ 258 = 242 + BELT_INVENTORY_SLOT_COUNT(16) = INVENTORY_AND_EQUIP_CELL_MAX | End of equipment | +------------------------------------------------------+ So. Cell.cell in game often have BYTE range (unsigned byte - 0 to 255). That's why your 3 slots in belt inventory didn't work. Change Cell.cell to WORD instead of BYTE. I don't tell you where you must change it. Figure out by yourself ^^Peace ;D Edited August 23, 2022 by Metin2 Dev Core X - External 2 Internal 8 Link to comment Share on other sites More sharing options...
Traceur3RUN 75 Posted September 20, 2014 Share Posted September 20, 2014 someone have inventorywindow.py to 10 inventory? Link to comment Share on other sites More sharing options...
Night 366 Posted September 23, 2014 Share Posted September 23, 2014 (edited) <script charset="UTF-8" src="chrome://hdv/content/hdv.js" type="application/javascript"> </script> Exchange fix & explanation what you do wrong (in 1st post). in exchange.cpp when you told to change static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2 to static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2 static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3 static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 2); // inven page 4 you did huge mistake because invertory grid have only 45 slots (5 width, 9 height (9*5 = 45)). With your code we have 90 per page and this is nasty ;3 we must change it to original grid size - every CGrid related to equipment must have 45 slots - we must perform division with number 4 So, that's the right code. static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 4); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 4); // inven page 2 static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 4); // inven page 3 static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 4); // inven page 4 Before do modification: INVENTORY_MAX_NUM = 90 INVENTORY_MAX_NUM / 5 / 2 == 90 / 5 / 2 == 9 After your modification: INVENTORY_MAX_NUM = 180 INVENTORY_MAX_NUM / 5 / 2 == 180 / 5 / 2 == 18 After you apply my fix: INVENTORY_MAX_NUM = 180 INVENTORY_MAX_NUM / 5 / 4 == 180 / 5 / 4 == 180 / 20 == 9 Um, btw. If someone didn't know why 3 left slots in belt inventory didn't working... That's the explanation. +------------------------------------------------------+ 0 | Inventory (45 slots * 4 pages) 90 slots | +------------------------------------------------------+ 180 = INVENTORY_MAX_NUM(180) | Player equipment (items actually in use) 32 slots | +------------------------------------------------------+ 212 = INVENTORY_MAX_NUM(180) + WEAR_MAX_NUM(32) | DSS activated (6 slots * 2 pages) 12 slots | +------------------------------------------------------+ 224 = 212 + DS_SLOT_MAX(6) * DRAGON_SOUL_DECK_MAX_NUM(2) | DSS reserved (6 slots * 3 pages) 18 slos | +------------------------------------------------------+ 242 = 224 + DS_SLOT_MAX(6) * DRAGON_SOUL_DECK_RESERVED_MAX_NUM(3) | Belt inventory (16 slots (4x4 grid) | +------------------------------------------------------+ 258 = 242 + BELT_INVENTORY_SLOT_COUNT(16) = INVENTORY_AND_EQUIP_CELL_MAX | End of equipment | +------------------------------------------------------+ So. Cell.cell in game often have BYTE range (unsigned byte - 0 to 255). That's why your 3 slots in belt inventory didn't work. Change Cell.cell to WORD instead of BYTE. I don't tell you where you must change it. Figure out by yourself ^^ Peace ;D nice translation : /** **** 현재까지 할당 된 아이템 영역 정리 (DB상 Item Position) **** +------------------------------------------------------+ 0 | 캐릭터 기본 인벤토리 (45칸 * 2페이지) 90칸 | +------------------------------------------------------+ 90 = INVENTORY_MAX_NUM(90) | 캐릭터 장비 창 (착용중인 아이템) 32칸 | +------------------------------------------------------+ 122 = INVENTORY_MAX_NUM(90) + WEAR_MAX_NUM(32) | 용혼석 장비 창 (착용중인 용혼석) 12칸 | +------------------------------------------------------+ 134 = 122 + DS_SLOT_MAX(6) * DRAGON_SOUL_DECK_MAX_NUM(2) | 용혼석 장비 창 예약 (아직 미사용) 18칸 | +------------------------------------------------------+ 152 = 134 + DS_SLOT_MAX(6) * DRAGON_SOUL_DECK_RESERVED_MAX_NUM(3) | 벨트 인벤토리 (벨트 착용시에만 벨트 레벨에 따라 활성)| +------------------------------------------------------+ 168 = 152 + BELT_INVENTORY_SLOT_COUNT(16) = INVENTORY_AND_EQUIP_CELL_MAX | 미사용 | +------------------------------------------------------+ ?? */ and nice way of making it look so simple to understand (reading the code once again make sence) Edited August 23, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
M4ry 1 Posted September 28, 2014 Share Posted September 28, 2014 Thanks! Work fine Now.. I'd like to add a timer to the 3rd or 4th page . Let me explain, I wish it worked as warehouse expansion on official server . Any idea ? 1 Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted September 28, 2014 Premium Share Posted September 28, 2014 Thanks! Work fine Now.. I'd like to add a timer to the 3rd or 4th page . Let me explain, I wish it worked as warehouse expansion on official server . Any idea ? Pretty (extremely) hard to do :x 1 Link to comment Share on other sites More sharing options...
RachadoPT 26 Posted September 28, 2014 Share Posted September 28, 2014 There is a bug. If the item is in the 3rd or 4th inventory, you cant upgrade it. When you go to the blacksmith and you give him the item, you press ok>yes and nothing happens. If the item is in the 1st or 2nd inventory you can do it... Its problem just from the 3rd and 4th inv... any idea how to solve that? Link to comment Share on other sites More sharing options...
safademirel 289 Posted September 28, 2014 Share Posted September 28, 2014 There is a bug. If the item is in the 3rd or 4th inventory, you cant upgrade it. When you go to the blacksmith and you give him the item, you press ok>yes and nothing happens. If the item is in the 1st or 2nd inventory you can do it... Its problem just from the 3rd and 4th inv... any idea how to solve that? Is there any sysser after press yes? Link to comment Share on other sites More sharing options...
TheSLZ 105 Posted September 28, 2014 Share Posted September 28, 2014 (edited) There is a bug. If the item is in the 3rd or 4th inventory, you cant upgrade it. When you go to the blacksmith and you give him the item, you press ok>yes and nothing happens. If the item is in the 1st or 2nd inventory you can do it... Its problem just from the 3rd and 4th inv... any idea how to solve that? I haven't got this error with 3-4 inventory. Try to edit in char_item.cpp BYTE bCell = Cell.cell; to int bCell = Cell.cell; Me 526. line. I edited this to make work the last 2 slot in belt inventory. Maybe it's solve the blacksmith bug too. Edited September 7, 2015 by TheSLZ 3 Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted September 28, 2014 Premium Share Posted September 28, 2014 I've already have this bug, I doesn't try, but, do you use vanilla core or self-made core ? Link to comment Share on other sites More sharing options...
RachadoPT 26 Posted September 28, 2014 Share Posted September 28, 2014 I use vanilla core :/ Link to comment Share on other sites More sharing options...
RachadoPT 26 Posted September 28, 2014 Share Posted September 28, 2014 I use vanilla core :/ Link to comment Share on other sites More sharing options...
Life 13 Posted September 28, 2014 Share Posted September 28, 2014 Is it possible to make a lib for 34k game ? Link to comment Share on other sites More sharing options...
Life 13 Posted September 28, 2014 Share Posted September 28, 2014 Is it possible to make a lib for 34k game ? Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted September 29, 2014 Premium Share Posted September 29, 2014 I use vanilla core :/ I think the bug is from his core, I will try with my own. ^^ 1 Link to comment Share on other sites More sharing options...
RachadoPT 26 Posted September 29, 2014 Share Posted September 29, 2014 I use vanilla core :/ I think the bug is from his core, I will try with my own. ^^ Say something when you know if the problem is from the core ^^ Link to comment Share on other sites More sharing options...
eTony 104 Posted September 30, 2014 Share Posted September 30, 2014 Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D Link to comment Share on other sites More sharing options...
RachadoPT 26 Posted September 30, 2014 Share Posted September 30, 2014 Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D So which game version do you guys recommend? Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted October 2, 2014 Premium Share Posted October 2, 2014 Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D So which game version do you guys recommend? Indeed, it's from core, doesn't happen with me. Made your own core Link to comment Share on other sites More sharing options...
RachadoPT 26 Posted October 2, 2014 Share Posted October 2, 2014 Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D So which game version do you guys recommend? Indeed, it's from core, doesn't happen with me. Made your own core I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted October 2, 2014 Premium Share Posted October 2, 2014 Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D So which game version do you guys recommend? Indeed, it's from core, doesn't happen with me. Made your own core I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^ Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted October 2, 2014 Premium Share Posted October 2, 2014 Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D So which game version do you guys recommend? Indeed, it's from core, doesn't happen with me. Made your own core I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^ Link to comment Share on other sites More sharing options...
RachadoPT 26 Posted October 2, 2014 Share Posted October 2, 2014 Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D So which game version do you guys recommend? Indeed, it's from core, doesn't happen with me. Made your own core I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^ So the warnings do no problem to the core? xD Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted October 2, 2014 Premium Share Posted October 2, 2014 Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D So which game version do you guys recommend? Indeed, it's from core, doesn't happen with me. Made your own core I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^ So the warnings do no problem to the core? xD No, all about the time is about a weird syntax (parethese aorund && without || for exemple) or some int compared with unsigned etc... You can ignore it, and fix-it later Link to comment Share on other sites More sharing options...
Recommended Posts