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 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 Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right? I can use this tutorial and it wont be bugged? Link to comment Share on other sites More sharing options...
Premium Galet 509 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 Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right? I can use this tutorial and it wont be bugged? Your welcome. I try this tutorial, and some fix, and I doesn't have this bug, only two : -Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory. -Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess). 1 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 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 Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right? I can use this tutorial and it wont be bugged? Your welcome. I try this tutorial, and some fix, and I doesn't have this bug, only two : -Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory. -Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess). Okay then, i'll try it out, thank you ^^ 1 Link to comment Share on other sites More sharing options...
Premium Galet 509 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 Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right? I can use this tutorial and it wont be bugged? Your welcome. I try this tutorial, and some fix, and I doesn't have this bug, only two : -Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory. -Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess). Okay then, i'll try it out, thank you ^^ Your welcome Flood : We have a lot of quoted messages xD 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 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 Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right? I can use this tutorial and it wont be bugged? Your welcome. I try this tutorial, and some fix, and I doesn't have this bug, only two : -Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory. -Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess). Okay then, i'll try it out, thank you ^^ Your welcome Flood : We have a lot of quoted messages xD Ik right? xD Btw, where do i see the log of the machine? i tried to compile it but it gave me some errors and i want to see the log of this to see where the errors are >< do you know where is the log? Link to comment Share on other sites More sharing options...
Premium Galet 509 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 Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right? I can use this tutorial and it wont be bugged? Your welcome. I try this tutorial, and some fix, and I doesn't have this bug, only two : -Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory. -Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess). Okay then, i'll try it out, thank you ^^ Your welcome Flood : We have a lot of quoted messages xD Ik right? xD Btw, where do i see the log of the machine? i tried to compile it but it gave me some errors and i want to see the log of this to see where the errors are >< do you know where is the log? You can add log from Makefile I think, but you can use flags like W-error or W-fatal-error I think. 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 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 Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right? I can use this tutorial and it wont be bugged? Your welcome. I try this tutorial, and some fix, and I doesn't have this bug, only two : -Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory. -Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess). Okay then, i'll try it out, thank you ^^ Your welcome Flood : We have a lot of quoted messages xD Ik right? xD Btw, where do i see the log of the machine? i tried to compile it but it gave me some errors and i want to see the log of this to see where the errors are >< do you know where is the log? You can add log from Makefile I think, but you can use flags like W-error or W-fatal-error I think. I compile the source with the FreeBSD 9.2 compileable that is able to download here in the Metin2Dev, i want to know where is the log of the things that appears in the virtual machine, like these people who get this: Example 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 compile Config.cpp compile NetBase.cpp compile Peer.cpp compile PeerBase.cpp compile Main.cpp compile Lock.cpp compile DBManager.cpp compile Cache.cpp compile LoginData.cpp compile ClientManager.cpp compile ClientManagerPlayer.cpp compile ClientManagerLogin.cpp compile ClientManagerBoot.cpp compile ClientManagerParty.cpp compile ClientManagerGuild.cpp compile GuildManager.cpp compile HB.cpp In file included from ClientManager.cpp:6: ../../common/VnumHelper.h:59:32: warning: no newline at end of file compile MoneyLog.cpp compile ItemAwardManager.cpp compile PrivManager.cpp In file included from ClientManagerBoot.cpp:8: ProtoReader.h:36:7: warning: no newline at end of file Cache.cpp:365:7: warning: no newline at end of file ItemAwardManager.cpp:129:2: warning: no newline at end of file compile ClientManagerEventFlag.cpp compile Marriage.cpp compile Monarch.cpp compile BlockCountry.cpp compile ItemIDRangeManager.cpp compile ClientManagerHorseName.cpp g++: directory": No such file or directory <command-line>: warning: missing terminating " character version.cpp:11: error: missing terminating " character version.cpp: In function 'void WriteVersion()': version.cpp:11: error: expected primary-expression before ')' token gmake: *** [.obj/version.o] Error 1 gmake: *** Waiting for unfinished jobs.... ClientManagerBoot.cpp:20: error: expected initializer before 'if' gmake: *** [.obj/ClientManagerBoot.o] Error 1 ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(char*)': ClientManagerPlayer.cpp:433: warning: address of local variable 'command' returned Is that a log file or did he just copy the things that appeared in the virtualbox by hand? If it is a log file, where is this file? Do you know? xD I didn't understand nothing of what you said before about the W-error or the W-fatal-error or the makefile, that's why i'm asking for this log file >< #Edit----------------------------------------- Forget that, i did it xD Im going to post my log, the problem is not with the 4 inv page, the errors are in the char_item.cpp, i edited something but i commited a error, it looks like, i'll post the log now, if you can see it, please ^^ Thank you once again Link to comment Share on other sites More sharing options...
Premium Zonni 230 Posted October 4, 2014 Premium Share Posted October 4, 2014 After All i must correct this modification because exchange didn't work well (3&4 page didn't work, like doesn't exist) You cant use it like this: for (i = 0; i < INVENTORY_MAX_NUM / 4; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid1.Put(i, 1, item->GetSize()); } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid2.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid3.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); } for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid4.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize()); } And little explanaton. If someone read this topic before i said you must set right grid size (5x9). anyway look at this - if we have 4 inventory cards we set (INVENTORY_MAX_NUM(180) /5 /4 = 9) so we have 45 slots. static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 4); // inven page 1 But if you want to trade works well with entire inventory you must change something more. look at code i posted up. for example: cgrid4 uses slots from 45-180 but it's only 45 slot grid so after value pass 45 everything is set to null, and item cant locate at this grid. we must set it to right inventory value and set right slots to this card. good value is between 135 - 180. How we can do that - we must modify function. for (i = (INVENTORY_MAX_NUM / 4) *3; i < (INVENTORY_MAX_NUM /4 ) * 4; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid4.Put(i - (INVENTORY_MAX_NUM / 4) * 3, 1, item->GetSize()); } Now function checks slots from 135 ((INVENTORY_MAX_NUM / 4) * 3 = 180 / 4 * 3 = 135) to 180 (INVENTORY_MAX_NUM) and set item to right pos because we set correctly i (for example if we have full first, second and third inventory and someone trade with us red potion, item bind to first slot in fourth inventory (135) (why? i - INVENTORY_MAX_NUM / 4 = (INVENTORY_MAX_NUM / 4) *3 - (INVENTORY_MAX_NUM/4) *3 = 0 and this is first place in fourth inventory) finally, that's valid code if you use 5 inventory window. int i; for (i = 0; i < INVENTORY_MAX_NUM / 5; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid1.Put(i, 1, item->GetSize()); } for (i = INVENTORY_MAX_NUM / 5; i < (INVENTORY_MAX_NUM / 5) * 2; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid2.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize()); } for (i = (INVENTORY_MAX_NUM / 5) * 2; i < (INVENTORY_MAX_NUM / 5) * 3; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid3.Put(i - (INVENTORY_MAX_NUM / 5) * 2, 1, item->GetSize()); } for (i = (INVENTORY_MAX_NUM / 5) * 3; i < (INVENTORY_MAX_NUM / 5) * 4; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid4.Put(i -(INVENTORY_MAX_NUM / 5) * 3, 1, item->GetSize()); } for (i = (INVENTORY_MAX_NUM / 5) * 4; i < (INVENTORY_MAX_NUM / 5) * 5; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; s_grid5.Put(i - (INVENTORY_MAX_NUM / 5) * 4, 1, item->GetSize()); } i'm really sorry if you don't understand me but i tried to explain it as easy as i can if you don't understand my explanation look into code and analize it. moreover aveline forgot about something. find int iPos = s_grid1.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid1.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid2.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid2.Put(iPos, 1, item->GetSize()); } else { return false; } and replace to: int iPos = s_grid1.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid1.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid2.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid2.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid3.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid3.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid4.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid4.Put(iPos, 1, item->GetSize()); } else { iPos = s_grid5.FindBlank(1, item->GetSize()); if (iPos >= 0) { s_grid5.Put(iPos, 1, item->GetSize()); } else { return false; } } } } } adapt it for yourself if you're using 4 inventory window. 7 Link to comment Share on other sites More sharing options...
eTony 104 Posted October 8, 2014 Share Posted October 8, 2014 (edited) 0 bugs/fails ... // In code by Aveline is good only binary Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Tacticus 73 Posted October 9, 2014 Share Posted October 9, 2014 (edited) I have this problem,like this guy....can someone help me how i can fix this=?? thanks Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
eTony 104 Posted October 9, 2014 Share Posted October 9, 2014 (edited) I have this problem,like this guy....can someone help me how i can fix this=?? thanks Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Tacticus 73 Posted October 9, 2014 Share Posted October 9, 2014 anyone plz? Link to comment Share on other sites More sharing options...
Premium Zonni 230 Posted October 10, 2014 Premium Share Posted October 10, 2014 anyone plz? Follow the tutorial. I think you don't set properly things in char_item.cpp Link to comment Share on other sites More sharing options...
Morphe 158 Posted October 11, 2014 Share Posted October 11, 2014 anyone plz? Part of char_item.cpp... Link to comment Share on other sites More sharing options...
Souza 12 Posted November 8, 2014 Share Posted November 8, 2014 Who know to fix this, InventoryWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'Inventory_Tab_03' Thanks 4 help Link to comment Share on other sites More sharing options...
Premium KingTsunamy 24 Posted November 8, 2014 Premium Share Posted November 8, 2014 Who know to fix this, InventoryWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'Inventory_Tab_03' Thanks 4 help Add 4 inventory part in inventorywindow,py from locale Link to comment Share on other sites More sharing options...
Souza 12 Posted November 8, 2014 Share Posted November 8, 2014 Yes but how?? I will add this now { "name" : "Inventory_Tab_03", "type" : "radio_button", "x" : 10, "y" : 33 + 191, "default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub", "over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub", "down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub", "tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3, "children" : ( { "name" : "Inventory_Tab_03_Print", "type" : "text", "x" : 0, "y" : 0, "all_align" : "center", "text" : "I", }, ), }, But i dont know the Position of the buttons Y and X Link to comment Share on other sites More sharing options...
Smith 98 Posted November 26, 2014 Share Posted November 26, 2014 Can everyone compile me the binary(exe) with this function? const DWORD c_Inventory_Page_Count = 4; Or a downloadlink with this function? Thanks a lot! Link to comment Share on other sites More sharing options...
TheDelphi 0 Posted December 10, 2014 Share Posted December 10, 2014 (edited) Please Help Me Edited August 31, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Zonni 230 Posted December 10, 2014 Premium Share Posted December 10, 2014 (edited) Please Help Me Follow the tutorial. I think you mess something in char_item ;3 Edited August 31, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Fliegex3 29 Posted December 16, 2014 Share Posted December 16, 2014 (edited) How can I fix this? Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 5 2 1 1 Link to comment Share on other sites More sharing options...
Premium Ocelot2606 140 Posted December 17, 2014 Premium Share Posted December 17, 2014 (edited) Thank you Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Morphe 158 Posted December 17, 2014 Share Posted December 17, 2014 (edited) How can I fix this? Problem is in char_item.cpp Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Fliegex3 29 Posted December 17, 2014 Share Posted December 17, 2014 This is not complete .... I'll check. Link to comment Share on other sites More sharing options...
Premium Ocelot2606 140 Posted December 17, 2014 Premium Share Posted December 17, 2014 Fliege give me your Skype addy if you need help Link to comment Share on other sites More sharing options...
Recommended Posts