Active Member ReFresh 2339 Posted October 28, 2021 Active Member Share Posted October 28, 2021 Just now, redscoutyt2 said: @ ReFreshThank you, it was just an example. I wrote the quest like this, even before commenting here. I tried yours(even its the same as mine), its not working. Send me your quest to PM. I will try to fix it for you. I'll be always helpful! Link to comment Share on other sites More sharing options...
Etzhel 115 Posted October 28, 2021 Share Posted October 28, 2021 (edited) @Mali Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Pro.Storm 0 Posted December 1, 2021 Share Posted December 1, 2021 i have this error tables.h:1495: error: use of enum 'STableExTypes' without previous declaration ../../common/tables.h:1495: error: expected unqualified-id before ':' token #ifdef __SHOPEX_RENEWAL__ enum STableExTypes : decltype(TShopItemTable::price_type) { EX_GOLD = 1, EX_SECONDARY, EX_ITEM, EX_EXP, EX_MAX }; #endif with gcc+49 Link to comment Share on other sites More sharing options...
Active+ Member blaxis 274 Posted December 18, 2021 Active+ Member Share Posted December 18, 2021 (edited) I am having this problem. From what I can see in the comments, a few people have had the same problem. No response from any of them! Doesn't anyone care? Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active Member Volvox 1510 Posted December 19, 2021 Active Member Share Posted December 19, 2021 (edited) 10 hours ago, blaxis said: I am having this problem. From what I can see in the comments, a few people have had the same problem. No response from any of them! Doesn't anyone care? Send whole error Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active+ Member blaxis 274 Posted December 19, 2021 Active+ Member Share Posted December 19, 2021 1 hour ago, V0lvox said: Send whole error That is all. There is nothing else. Link to comment Share on other sites More sharing options...
Active Member Volvox 1510 Posted December 19, 2021 Active Member Share Posted December 19, 2021 Do: bt all Link to comment Share on other sites More sharing options...
Active+ Member blaxis 274 Posted December 19, 2021 Active+ Member Share Posted December 19, 2021 (edited) 1 hour ago, V0lvox said: Do: bt all As I said, there is no other result other than that. "bt full" results: Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active+ Member blaxis 274 Posted December 21, 2021 Active+ Member Share Posted December 21, 2021 I solved core error but I have this problem.. I can't buy items Error: SHOP_INVALID_POS(locale_game.txt) Link to comment Share on other sites More sharing options...
Honorable Member Mali 41803 Posted December 21, 2021 Author Honorable Member Share Posted December 21, 2021 (edited) On 12/21/2021 at 7:03 PM, blaxis said: I solved core error How? Edit: No answer. It's an error that was your fault then. Edited December 25, 2021 by Mali 1 Link to comment Share on other sites More sharing options...
Active+ Member blaxis 274 Posted December 24, 2021 Active+ Member Share Posted December 24, 2021 On 8/4/2020 at 11:32 AM, V0lvox said: Have a other problem. He use to show items: CShopEx::AddGuest() But when i buy something, he use: pkShop->Buy() This Buy is shop.cpp and not shopex.cpp So the Buy of shop.cpp does not know the items from shopex. So everytime m_itemVector.size() = 0 And so i cant buy items on shopex Solve ? 1 1 Link to comment Share on other sites More sharing options...
Active+ Member blaxis 274 Posted December 25, 2021 Active+ Member Share Posted December 25, 2021 (edited) On 12/21/2021 at 6:25 PM, Mali said: How? Edit: No answer. It's an error that was your fault then. The description file you shared is incorrect. That's why I had this problem. The explanation below is incorrect. (shopex.cpp) //Find switch (shop_tab.coinType) { case SHOP_COIN_TYPE_GOLD: if (bOtherEmpire) // no empire price penalty for pc shop pack_tab.items[i].price = shop_tab.items[i].price * 3; else pack_tab.items[i].price = shop_tab.items[i].price; break; case SHOP_COIN_TYPE_SECONDARY_COIN: pack_tab.items[i].price = shop_tab.items[i].price; break; } memset(pack_tab.items[i].aAttr, 0, sizeof(pack_tab.items[i].aAttr)); memset(pack_tab.items[i].alSockets, 0, sizeof(pack_tab.items[i].alSockets)); ///Change #if defined(ENABLE_RENEWAL_SHOPEX) pack_tab.items[i].price_type = shop_tab.items[i].price_type; pack_tab.items[i].price_vnum = shop_tab.items[i].price_vnum; pack_tab.items[i].price = shop_tab.items[i].price; if (bOtherEmpire && pack_tab.items[i].price_type == SHOPEX_GOLD) pack_tab.items[i].price *= 3; thecore_memcpy(pack_tab.items[i].aAttr, shop_tab.items[i].aAttr, sizeof(pack_tab.items[i].aAttr)); thecore_memcpy(pack_tab.items[i].alSockets, shop_tab.items[i].alSockets, sizeof(pack_tab.items[i].alSockets)); #else switch (shop_tab.coinType) { case SHOP_COIN_TYPE_GOLD: if (bOtherEmpire) // no empire price penalty for pc shop pack_tab.items[i].price = shop_tab.items[i].price * 3; else pack_tab.items[i].price = shop_tab.items[i].price; break; case SHOP_COIN_TYPE_SECONDARY_COIN: pack_tab.items[i].price = shop_tab.items[i].price; break; } memset(pack_tab.items[i].aAttr, 0, sizeof(pack_tab.items[i].aAttr)); memset(pack_tab.items[i].alSockets, 0, sizeof(pack_tab.items[i].alSockets)); #endif Indeed, this is how it should be: //Find memset(pack_tab.items[i].aAttr, 0, sizeof(pack_tab.items[i].aAttr)); memset(pack_tab.items[i].alSockets, 0, sizeof(pack_tab.items[i].alSockets)); ///Change #if defined(ENABLE_RENEWAL_SHOPEX) pack_tab.items[i].price_type = shop_tab.items[i].price_type; pack_tab.items[i].price_vnum = shop_tab.items[i].price_vnum; pack_tab.items[i].price = shop_tab.items[i].price; if (bOtherEmpire && pack_tab.items[i].price_type == SHOPEX_GOLD) pack_tab.items[i].price *= 3; thecore_memcpy(pack_tab.items[i].aAttr, shop_tab.items[i].aAttr, sizeof(pack_tab.items[i].aAttr)); thecore_memcpy(pack_tab.items[i].alSockets, shop_tab.items[i].alSockets, sizeof(pack_tab.items[i].alSockets)); #else memset(pack_tab.items[i].aAttr, 0, sizeof(pack_tab.items[i].aAttr)); memset(pack_tab.items[i].alSockets, 0, sizeof(pack_tab.items[i].alSockets)); #endif And search: char temp[8096]; // ÃÖ´ë 1728 * 3 Change: char temp[8096 * 3]; // ÃÖ´ë 1728 * 3 This is how I solved the problem. Items and prices seem fine, but like I said, I can't buy. I am getting the error mentioned in my above post. Edited December 27, 2021 by blaxis 1 1 1 Link to comment Share on other sites More sharing options...
Active+ Member blaxis 274 Posted December 27, 2021 Active+ Member Share Posted December 27, 2021 Nobody wants to help with this? Link to comment Share on other sites More sharing options...
Mafuyu 51 Posted May 11, 2022 Share Posted May 11, 2022 (edited) ---- solved if anyone has problem with size 2 and 3 items in shopex with 80 slot npcs, change CGrid grid(5, 9); in shop_manager.cpp to: CGrid grid(10, 9); Edited May 11, 2022 by Mafuyu 1 Link to comment Share on other sites More sharing options...
dawnofthedead15 7 Posted July 1, 2022 Share Posted July 1, 2022 Hello has anyone had this problem with shopex? It only happens rarely but sometimes i get this and crash when opening a shopex shop: 0626 00:00:25876 :: Phase Game does not handle this header (header: 38, last: 4, 38) 0626 00:00:25893 :: Unprocessed packet header 8, state Game Link to comment Share on other sites More sharing options...
Stax 1 Posted November 4, 2022 Share Posted November 4, 2022 thank you dude Link to comment Share on other sites More sharing options...
Mettleshade 0 Posted December 14, 2022 Share Posted December 14, 2022 thx for sharing Link to comment Share on other sites More sharing options...
c0mApvp 1 Posted January 19, 2023 Share Posted January 19, 2023 Hi, Mali! I need some adaptations for the shopEx, it has conflict with the Dali's offline shop, he tried to solve, but no result! Can you add me to the discord : c0mApvp#3031 ? Thank you. Link to comment Share on other sites More sharing options...
NeedForM2 0 Posted March 26, 2023 Share Posted March 26, 2023 On 12/21/2021 at 7:03 PM, blaxis said: I solved core error but I have this problem.. I can't buy items Error: SHOP_INVALID_POS(locale_game.txt) FİX; Make sure the shop and shopex classes take the same parameters. Check the parameters you pass in the buy function in the Shopmanager class. If shopex does not take the same parameters, it will rely on the buy function in the shop class. Link to comment Share on other sites More sharing options...
forum80 18 Posted April 20, 2023 Share Posted April 20, 2023 (edited) bool CompareShopItemVnum(const SShopItemTable& lhs, const SShopItemTable& rhs) { return (lhs.vnum == rhs.vnum ? lhs.vnum + lhs.count < rhs.vnum + rhs.count : lhs.vnum < rhs.vnum); } first vnum after count compare like this Spoiler Edited April 20, 2023 by Metin2 Dev International Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Fighternatsu 0 Posted June 26, 2023 Share Posted June 26, 2023 error help In file included from char.cpp:24: shop.h:35:11: error: duplicate 'virtual' 35 | virtual virtual ~CShop(); // @fixme139 (+virtual) | ^~~~~~~ | ------- Link to comment Share on other sites More sharing options...
Fighternatsu 0 Posted June 26, 2023 Share Posted June 26, 2023 new errors shop.cpp: In member function 'virtual bool CShop::AddGuest(LPCHARACTER, DWORD, bool)': shop.cpp:420:33: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'TPacketGCShopStart' {aka 'struct packet_shop_start'}; use assignment or value-initialization instead [-Wclass-memaccess] 420 | memset(&pack2, 0, sizeof(pack2)); | ^ In file included from packet_info.h:4, from input.h:4, from desc.h:5, from shop.cpp:7: packet.h:1273:16: note: 'TPacketGCShopStart' {aka 'struct packet_shop_start'} declared here 1273 | typedef struct packet_shop_start ==================================================================================== ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeShopEXTable()': ClientManagerBoot.cpp:391:49: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'TShopTable' {aka 'struct SShopTable'}; use assignment or value-initialization instead [-Wclass-memaccess] 391 | std::memset(shop_table, 0, sizeof(TShopTable)); | ^ In file included from stdafx.h:14, from ClientManagerBoot.cpp:2: ../../common/tables.h:624:16: note: 'TShopTable' {aka 'struct SShopTable'} declared here 624 | typedef struct SShopTable | ^~~~~~~~~~ ClientManagerBoot.cpp:398:27: error: 'TShopTable' {aka 'struct SShopTable'} has no member named 'szShopName' 398 | std::memcpy(shop_table->szShopName, data[col++], sizeof(shop_table->szShopName)); | ^~~~~~~~~~ ClientManagerBoot.cpp:398:71: error: 'TShopTable' {aka 'struct SShopTable'} has no member named 'szShopName' 398 | std::memcpy(shop_table->szShopName, data[col++], sizeof(shop_table->szShopName)); | ^~~~~~~~~~ ClientManagerBoot.cpp:406:24: error: 'TShopItemTable' {aka 'struct SShopItemTable'} has no member named 'price_vnum' 406 | str_to_number(pItem->price_vnum, data[col++]); | ^~~~~~~~~~ ClientManagerBoot.cpp:407:24: error: 'TShopItemTable' {aka 'struct SShopItemTable'} has no member named 'price_type' 407 | str_to_number(pItem->price_type, data[col++]); | ^~~~~~~~~~ ClientManagerBoot.cpp:410:25: error: 'TShopItemTable' {aka 'struct SShopItemTable'} has no member named 'alSockets' 410 | str_to_number(pItem->alSockets[i], data[col++]); | ^~~~~~~~~ ClientManagerBoot.cpp:412:25: error: 'TShopItemTable' {aka 'struct SShopItemTable'} has no member named 'aAttr' 412 | str_to_number(pItem->aAttr[i].bType, data[col++]); | ^~~~~ ClientManagerBoot.cpp:413:25: error: 'TShopItemTable' {aka 'struct SShopItemTable'} has no member named 'aAttr' 413 | str_to_number(pItem->aAttr[i].sValue, data[col++]); | ^~~~~ Link to comment Share on other sites More sharing options...
Invinciblex3 2 Posted September 3, 2023 Share Posted September 3, 2023 someone know why i aint get the Buttons its always sell and buy button. kind regards Link to comment Share on other sites More sharing options...
faraypt 1 Posted October 9, 2023 Share Posted October 9, 2023 (edited) On 9/8/2021 at 10:29 PM, metser said: SHOP_INVALID_POS This Item cannot be used here. i get this error any item i am trying to buy, what could be the cause of the error? @ Mali Same error there https://metin2.download/picture/BLCx3bRei94DTqJMFiysV38b2ebJ2fhB/.gif Edited October 9, 2023 by Metin2 Dev International Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium DemOnJR 564 Posted October 22, 2023 Premium Share Posted October 22, 2023 (edited) Tested again 0 errors during compile or on the server (buy with item, yang, exp...). Edited October 22, 2023 by DemOnJR Link to comment Share on other sites More sharing options...
Recommended Posts