glosteng4141 192 Posted January 3, 2020 Share Posted January 3, 2020 I think Penger is a thief. The system is stealing files. I have proof. 1 1 Link to comment Share on other sites More sharing options...
DDC 19 Posted January 3, 2020 Share Posted January 3, 2020 La 08.04.2018 la 4:13, WLsj24 a spus: Same problem, i have great offlineshop. Any kind person who can adapt the code for OfflineShops? Same problem for me Link to comment Share on other sites More sharing options...
HUNgarocel1 196 Posted January 29, 2020 Share Posted January 29, 2020 0129 19:54:19095 :: Traceback (most recent call last): 0129 19:54:19095 :: File "networkModule.py", line 247, in SetGamePhase 0129 19:54:19096 :: File "game.py", line 99, in __init__ 0129 19:54:19096 :: File "interfaceModule.py", line 352, in MakeInterface 0129 19:54:19096 :: File "interfaceModule.py", line 181, in __MakeWindows 0129 19:54:19096 :: File "uiInventory.py", line 266, in __init__ 0129 19:54:19096 :: File "uiInventory.py", line 375, in __LoadWindow 0129 19:54:19096 :: File "uiInventory.py", line 293, in BindWindow 0129 19:54:19097 :: AttributeError 0129 19:54:19097 :: : 0129 19:54:19097 :: 'InventoryWindow' object has no attribute 'bindWnds' 0129 19:54:19097 :: Hy guys! I have problem Link to comment Share on other sites More sharing options...
Premium Hunger 472 Posted February 7, 2020 Premium Share Posted February 7, 2020 (edited) The system is working great on Martysama's source. I had the problem with the inventory pages at first. A hint: do not use the edits on the comparable files he is just giving an example of how the files should look like. https://metin2.download/picture/7fe60CcxRzbkgSG7J2ZZcFuP6t3uD26r/.gif @HUNgarocel1 Check edits on uiinventory.py. Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 2 1 2 3 Link to comment Share on other sites More sharing options...
Resist0 36 Posted February 18, 2020 Share Posted February 18, 2020 (edited) https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif Have this bug. I checked uiattachmetin, uiinventory. Nothing found. kind regards. Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 2 2 1 Link to comment Share on other sites More sharing options...
Premium Ocelot2606 140 Posted March 16, 2020 Premium Share Posted March 16, 2020 Got this problem 'NoneType' object has no attribute 'GetInventoryType' if app.WJ_ENABLE_TRADABLE_ICON: def CantTradableItem(self, destSlotIndex, srcSlotIndex): if app.ENABLE_SPECIAL_INVENTORY: invenType = player.GetSpecialInventoryTypeByGlobalSlot(srcSlotIndex) if invenType == player.INVENTORY_TYPE_INVENTORY: itemInvenPage = srcSlotIndex / player.INVENTORY_PAGE_SIZE localSlotPos = srcSlotIndex - (itemInvenPage * player.INVENTORY_PAGE_SIZE) else: (specialSlotStart, specialSlotEnd) = player.GetSpecialInventoryRange(invenType) specialInventorySlot = srcSlotIndex - specialSlotStart itemInvenPage = specialInventorySlot / player.INVENTORY_PAGE_SIZE localSlotPos = specialInventorySlot - (itemInvenPage * player.INVENTORY_PAGE_SIZE) self.lockedItems[destSlotIndex] = (invenType, itemInvenPage, localSlotPos) if self.wndInventory.GetInventoryType() == invenType and self.wndInventory.GetInventoryPageIndex() == itemInvenPage and self.IsShow(): self.wndInventory.wndItem.SetCantMouseEventSlot(localSlotPos) else: itemInvenPage = srcSlotIndex / player.INVENTORY_PAGE_SIZE localSlotPos = srcSlotIndex - (itemInvenPage * player.INVENTORY_PAGE_SIZE) self.lockedItems[destSlotIndex] = (itemInvenPage, localSlotPos) if self.wndInventory.GetInventoryPageIndex() == itemInvenPage: self.wndInventory.wndItem.SetCantMouseEventSlot(localSlotPos) anyone a solution for that (using great offshop) Link to comment Share on other sites More sharing options...
jacu999 6 Posted March 22, 2020 Share Posted March 22, 2020 (edited) https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif.html Someone have this problem? I added code perfect, but i cant compile Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 2 1 Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4885 Posted March 28, 2020 Bot Share Posted March 28, 2020 On 4/8/2018 at 3:13 AM, WLsj24 said: Same problem, i have great offlineshop. Any kind person who can adapt the code for OfflineShops? Sorry for reviving old posts, but maybe someone will find this helpful hehe. game.py ## PrivateShop def __PrivateShop_Open(self): if app.ENABLE_OFFLINE_SHOP: if app.WJ_ENABLE_TRADABLE_ICON: self.uiNewShopCreate.privateShopBuilder.BindInterface(self.interface) self.uiNewShopCreate.privateShopBuilder.SetInven(self.interface.wndInventory) self.uiNewShopCreate.privateShopBuilder.wndInventory.BindWindow(self.interface.privateShopBuilder) self.uiNewShop.Show() else: self.interface.OpenPrivateShopInputNameDialog() 2 Link to comment Share on other sites More sharing options...
HUNgarocel1 196 Posted April 5, 2020 Share Posted April 5, 2020 (edited) Hi Dev! I have a little bug or something.. So i trade another player, and marking his item, not mine. Img: Please help for me Best regards Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 4 1 1 2 Link to comment Share on other sites More sharing options...
legendkill 15 Posted August 17, 2020 Share Posted August 17, 2020 (edited) On 4/5/2020 at 4:08 PM, HUNgarocel1 said: Hi Dev! I have a little bug or something.. So i trade another player, and marking his item, not mine. Img: Please help for me Best regards The bug is from PythonNetworkStreamPhaseGame.cpp in Binary. Search for : int iSlotIndex = exchange_packet.arg2.cell; CPythonExchange::Instance().SetItemToTarget(iSlotIndex, exchange_packet.arg1, (BYTE) exchange_packet.arg3); for (int i = 0; i < ITEM_SOCKET_SLOT_MAX_NUM; ++i) CPythonExchange::Instance().SetItemMetinSocketToTarget(iSlotIndex, i, exchange_packet.alValues); for (int j = 0; j < ITEM_ATTRIBUTE_SLOT_MAX_NUM; ++j) CPythonExchange::Instance().SetItemAttributeToTarget(iSlotIndex, j, exchange_packet.aAttr[j].bType, exchange_packet.aAttr[j].sValue); And remove: #ifdef WJ_ENABLE_TRADABLE_ICON ... #endif Then, above you should see: case EXCHANGE_SUBHEADER_GC_ITEM_ADD: if (exchange_packet.is_me) Add under this function: CPythonExchange::Instance().SetItemAttributeToSelf(iSlotIndex, j, exchange_packet.aAttr[j].bType, exchange_packet.aAttr[j].sValue); the function you removed previously. Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active Member nazox 213 Posted February 25, 2021 Active Member Share Posted February 25, 2021 (edited) thanks for the system Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Nicks: Nazox™ Krone™ Nagato™ Yahiko™ Yakiro™ Proyecto: Trabajando en el. Compañeros & firma: DreamHQ - 2009-2015 [Nostalgia] Link to comment Share on other sites More sharing options...
Premium piktorvik 18 Posted June 7, 2021 Premium Share Posted June 7, 2021 Hi. I have this problem. Quote In function `CExchange::Cancel()': /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:916: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' OBJDIR/exchange.o: In function `CExchange::Accept(bool)': /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:907: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:908: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' OBJDIR/exchange.o: In function `CExchange::AddGold(long)': /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:256: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:273: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' OBJDIR/exchange.o:/usr/src/mainline/Srcs/Server/game/src/exchange.cpp:274: more undefined references to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' follow OBJDIR/exchange.o: In function `CExchange::Cancel()': /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:916: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' OBJDIR/exchange.o: In function `CExchange::Accept(bool)': /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:907: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:908: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' OBJDIR/exchange.o: In function `CExchange::AddGold(long)': /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:256: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' /usr/src/mainline/Srcs/Server/game/src/exchange.cpp:273: undefined reference to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' OBJDIR/exchange.o:/usr/src/mainline/Srcs/Server/game/src/exchange.cpp:274: more undefined references to `exchange_packet(CHARACTER*, unsigned char, bool, unsigned int, SItemPos, unsigned int, void*)' follow tutorial: Quote // 1. Replace this function: // ********************************* BEGIN ********************************* // void exchange_packet(LPCHARACTER ch, BYTE sub_header, bool is_me, long long arg1, TItemPos arg2, DWORD arg3, void * pvData) { if (!ch->GetDesc()) return; struct packet_exchange pack_exchg; pack_exchg.header = HEADER_GC_EXCHANGE; pack_exchg.sub_header = sub_header; pack_exchg.is_me = is_me; pack_exchg.arg1 = arg1; pack_exchg.arg2 = arg2; pack_exchg.arg3 = arg3; if (sub_header == EXCHANGE_SUBHEADER_GC_ITEM_ADD && pvData) { thecore_memcpy(&pack_exchg.alSockets, ((LPITEM) pvData)->GetSockets(), sizeof(pack_exchg.alSockets)); thecore_memcpy(&pack_exchg.aAttr, ((LPITEM) pvData)->GetAttributes(), sizeof(pack_exchg.aAttr)); } else { memset(&pack_exchg.alSockets, 0, sizeof(pack_exchg.alSockets)); memset(&pack_exchg.aAttr, 0, sizeof(pack_exchg.aAttr)); } ch->GetDesc()->Packet(&pack_exchg, sizeof(pack_exchg)); } // ********************************** END ********************************** // // With this: // ********************************* BEGIN ********************************* // void exchange_packet(LPCHARACTER ch, BYTE sub_header, bool is_me, long long arg1, TItemPos arg2, DWORD arg3, void * pvData) { if (!ch->GetDesc()) return; struct packet_exchange pack_exchg; pack_exchg.header = HEADER_GC_EXCHANGE; pack_exchg.sub_header = sub_header; pack_exchg.is_me = is_me; pack_exchg.arg1 = arg1; pack_exchg.arg2 = arg2; pack_exchg.arg3 = arg3; if (sub_header == EXCHANGE_SUBHEADER_GC_ITEM_ADD && pvData) { #ifdef WJ_ENABLE_TRADABLE_ICON pack_exchg.arg4 = TItemPos(((LPITEM) pvData)->GetWindow(), ((LPITEM) pvData)->GetCell()); #endif thecore_memcpy(&pack_exchg.alSockets, ((LPITEM) pvData)->GetSockets(), sizeof(pack_exchg.alSockets)); thecore_memcpy(&pack_exchg.aAttr, ((LPITEM) pvData)->GetAttributes(), sizeof(pack_exchg.aAttr)); } else { #ifdef WJ_ENABLE_TRADABLE_ICON pack_exchg.arg4 = TItemPos(RESERVED_WINDOW, 0); #endif memset(&pack_exchg.alSockets, 0, sizeof(pack_exchg.alSockets)); memset(&pack_exchg.aAttr, 0, sizeof(pack_exchg.aAttr)); } ch->GetDesc()->Packet(&pack_exchg, sizeof(pack_exchg)); } // ********************************** END ********************************** // Any idea :\? Link to comment Share on other sites More sharing options...
narcisxb 26 Posted September 29, 2021 Share Posted September 29, 2021 (edited) On 6/7/2021 at 2:05 PM, Equinox said: Hi. I have this problem. tutorial: Any idea :\? That s probably a linker issue. You have two functions with the same name but different parameters and its probably calling the wrong one. Try using gmake clean and recompile afterwards. I have this problem tho: 0929 14:02:30500 :: File "game.py", line 782, in RefreshInventory 0929 14:02:30500 :: File "interfaceModule.py", line 624, in RefreshInventory 0929 14:02:30500 :: File "uiInventory.py", line 846, in RefreshItemSlot 0929 14:02:30501 :: File "uiInventory.py", line 809, in RefreshBagSlotWindow 0929 14:02:30501 :: File "uiInventory.py", line 729, in RefreshMarkSlots 0929 14:02:30501 :: File "ui.py", line 1436, in SetUsableSlotOnTopWnd 0929 14:02:30501 :: AttributeError 0929 14:02:30501 :: : 0929 14:02:30501 :: 'module' object has no attribute 'SetUsableSlotOnTopWnd' 0929 14:02:30501 :: 0929 14:02:30505 :: game.py(line:223) Open game.py(line:632) StartGame game.py(line:782) RefreshInventory interfaceModule.py(line:624) RefreshInventory uiInventory.py(line:846) RefreshItemSlot uiInventory.py(line:809) RefreshBagSlotWindow uiInventory.py(line:729) RefreshMarkSlots ui.py(line:1436) SetUsableSlotOnTopWnd GameWindow.Open - <type 'exceptions.AttributeError'>:'module' object has no attribute 'SetUsableSlotOnTopWnd' 0929 14:02:30506 :: ============================================================================================================ 0929 14:02:30506 :: Abort!!!! Could someone throw a hand? xD Thx. EDIT: SOLVED. Edited October 1, 2021 by narcisxb 1 Link to comment Share on other sites More sharing options...
MyAnubis 4 Posted October 1, 2021 Share Posted October 1, 2021 On 3/19/2017 at 4:56 PM, Zyten said: Hmm, :C Has anyone corrected this problem? Link to comment Share on other sites More sharing options...
Mafia83 3 Posted November 13, 2021 Share Posted November 13, 2021 (edited) Hello and thanks for this resource, could you do an update for the dice system as well? or how could I disable the effect for the dice system? https://metin2.download/picture/EQ698KiURBYOLyt0dNZ9tiAtRTRYp9Pm/.gif Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
ShyD 33 Posted July 3, 2022 Share Posted July 3, 2022 On 3/19/2017 at 4:56 PM, Zyten said: Hmm, :C i have same error.. sb knows the solution? Link to comment Share on other sites More sharing options...
ArturxApsik 0 Posted December 6, 2022 Share Posted December 6, 2022 On 11/13/2021 at 11:38 PM, Mafia83 said: Hello and thanks for this resource, could you do an update for the dice system as well? or how could I disable the effect for the dice system? https://metin2.download/picture/EQ698KiURBYOLyt0dNZ9tiAtRTRYp9Pm/.gif Hi!, did you solved this problem? Link to comment Share on other sites More sharing options...
evils666 0 Posted April 12, 2023 Share Posted April 12, 2023 (edited) @ xP3NG3Rx I have the following error, has anyone encountered it before? Or could you point me to a solution? 0412 07:16:14084 :: Traceback (most recent call last): 0412 07:16:14084 :: File "networkModule.py", line 236, in SetGamePhase 0412 07:16:14084 :: File "game.py", line 88, in __init__ 0412 07:16:14084 :: File "interfaceModule.py", line 454, in MakeInterface 0412 07:16:14084 :: File "interfaceModule.py", line 293, in __MakeWindows 0412 07:16:14084 :: File "uiInventory.py", line 351, in __init__ 0412 07:16:14084 :: File "uiInventory.py", line 490, in __LoadWindow 0412 07:16:14084 :: File "uiAttachMetin.py", line 22, in __init__ 0412 07:16:14084 :: File "uiAttachMetin.py", line 22, in <dictcomp> 0412 07:16:14084 :: TypeError 0412 07:16:14084 :: : 0412 07:16:14084 :: an integer is required 0412 07:16:14084 :: uiattachmetin.py https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif.html Edited April 12, 2023 by Metin2 Dev International Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium TAUMP 840 Posted April 12, 2023 Premium Share Posted April 12, 2023 34 minutes ago, evils666 said: @ xP3NG3Rx I have the following error, has anyone encountered it before? Or could you point me to a solution? 0412 07:16:14084 :: Traceback (most recent call last): 0412 07:16:14084 :: File "networkModule.py", line 236, in SetGamePhase 0412 07:16:14084 :: File "game.py", line 88, in __init__ 0412 07:16:14084 :: File "interfaceModule.py", line 454, in MakeInterface 0412 07:16:14084 :: File "interfaceModule.py", line 293, in __MakeWindows 0412 07:16:14084 :: File "uiInventory.py", line 351, in __init__ 0412 07:16:14084 :: File "uiInventory.py", line 490, in __LoadWindow 0412 07:16:14084 :: File "uiAttachMetin.py", line 22, in __init__ 0412 07:16:14084 :: File "uiAttachMetin.py", line 22, in <dictcomp> 0412 07:16:14084 :: TypeError 0412 07:16:14084 :: : 0412 07:16:14084 :: an integer is required 0412 07:16:14084 :: uiattachmetin.py https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif.html Why you dont compare with files which are included in this tutorial? Link to comment Share on other sites More sharing options...
evils666 0 Posted April 12, 2023 Share Posted April 12, 2023 @ TAUMP I compared and everything is the same Link to comment Share on other sites More sharing options...
evils666 0 Posted April 15, 2023 Share Posted April 15, 2023 @ xP3NG3Rx Could anyone point me to a solution to the problem? Link to comment Share on other sites More sharing options...
Debloat 88 Posted May 9, 2023 Share Posted May 9, 2023 Hi, thank you for this system. However the new fuctions available in the update such as playerIsSealedItemBySlot is not available anywhere I could google. Could you please care to share with us where is it? Link to comment Share on other sites More sharing options...
Ayro 0 Posted August 15, 2023 Share Posted August 15, 2023 On 9/29/2021 at 12:36 PM, narcisxb said: That s probably a linker issue. You have two functions with the same name but different parameters and its probably calling the wrong one. Try using gmake clean and recompile afterwards. I have this problem tho: 0929 14:02:30500 :: File "game.py", line 782, in RefreshInventory 0929 14:02:30500 :: File "interfaceModule.py", line 624, in RefreshInventory 0929 14:02:30500 :: File "uiInventory.py", line 846, in RefreshItemSlot 0929 14:02:30501 :: File "uiInventory.py", line 809, in RefreshBagSlotWindow 0929 14:02:30501 :: File "uiInventory.py", line 729, in RefreshMarkSlots 0929 14:02:30501 :: File "ui.py", line 1436, in SetUsableSlotOnTopWnd 0929 14:02:30501 :: AttributeError 0929 14:02:30501 :: : 0929 14:02:30501 :: 'module' object has no attribute 'SetUsableSlotOnTopWnd' 0929 14:02:30501 :: 0929 14:02:30505 :: game.py(line:223) Open game.py(line:632) StartGame game.py(line:782) RefreshInventory interfaceModule.py(line:624) RefreshInventory uiInventory.py(line:846) RefreshItemSlot uiInventory.py(line:809) RefreshBagSlotWindow uiInventory.py(line:729) RefreshMarkSlots ui.py(line:1436) SetUsableSlotOnTopWnd GameWindow.Open - <type 'exceptions.AttributeError'>:'module' object has no attribute 'SetUsableSlotOnTopWnd' 0929 14:02:30506 :: ============================================================================================================ 0929 14:02:30506 :: Abort!!!! Could someone throw a hand? xD Thx. EDIT: SOLVED. how did you solve it? sorry for recalling old post Link to comment Share on other sites More sharing options...
Premium DemOnJR 564 Posted November 2, 2023 Premium Share Posted November 2, 2023 (edited) Tested on Martysama Srcs there is no error on installation or bug. Also i have found this error @ xP3NG3Rx Edited November 3, 2023 by DemOnJR Link to comment Share on other sites More sharing options...
Premium TAUMP 840 Posted November 3, 2023 Premium Share Posted November 3, 2023 On 11/2/2023 at 8:26 PM, DemOnJR said: Tested on Martysama Srcs there is no error on installation or bug. Also i have found this error @ xP3NG3Rx Same bug, strange that we are finding everything now XD Link to comment Share on other sites More sharing options...
Recommended Posts