Jump to content

Channel Syserr : Boot: shop table size error (Shop Extensions)


Recommended Posts

common/lengt.h

---------------------------------------------

SHOP_HOST_ITEM_MAX_NUM = 40,
SHOP_PRICELIST_MAX_NUM = 40,

 

REPLACE ;

 

SHOP_HOST_ITEM_MAX_NUM = 100,
SHOP_PRICELIST_MAX_NUM = 100,

---------------------------------------------

game/shop.cpp

m_pGrid = M2_NEW CGrid(5, 9);

 

REPLACE ;

 

m_pGrid = M2_NEW CGrid(12, 9);

 

 

I did shop expands the boundaries of the slot 40 to slot 100 and I get the error channels are not opened Waiting for your help!

Channel Syserr :  Boot: shop table size error (Shop Extensions)

 

EXAMPLE; Channel Syserr :  Boot: shop table size error (Shop Extensions) HELP ME!

 

rmR1qB.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

 

Try to put breakpoint. It's the best way for check.

sys_log(0,"%d",sizeof(TShopTable));

Kind Regards

Zerelth ~ Ellie

Skype, so you could not quite understand

 

 

Maybe you don't want to understand that and what do you mean via skype?

 

 

input_db.cpp

	/*
	 * SHOP
	 */

	if (decode_2bytes(data) != sizeof(TShopTable))
	{
		sys_err("shop table size error");
		thecore_shutdown();
		return;
	}
	data += 2;

	size = decode_2bytes(data);
	data += 2;
	sys_log(0, "BOOT: SHOP: %d", size);


	if (size)
	{
		if (!CShopManager::instance().Initialize((TShopTable *) data, size))
		{
			sys_err("shop table Initialize error");
			thecore_shutdown();
			return;
		}
		data += size * sizeof(TShopTable);
	} 

 

Kind Regards

Zerelth ~ Ellie

Edited by Zerelth™
  • Love 1

Do not be sorry, be better.

Link to comment
Share on other sites

 

 

Try to put breakpoint. It's the best way for check.

sys_log(0,"%d",sizeof(TShopTable));

Kind Regards

Zerelth ~ Ellie

Skype, so you could not quite understand

 

 

Maybe you don't want to understand that and what do you mean via skype?

 

 

input_db.cpp

	/*
	 * SHOP
	 */

	if (decode_2bytes(data) != sizeof(TShopTable))
	{
		sys_err("shop table size error");
		thecore_shutdown();
		return;
	}
	data += 2;

	size = decode_2bytes(data);
	data += 2;
	sys_log(0, "BOOT: SHOP: %d", size);


	if (size)
	{
		if (!CShopManager::instance().Initialize((TShopTable *) data, size))
		{
			sys_err("shop table Initialize error");
			thecore_shutdown();
			return;
		}
		data += size * sizeof(TShopTable);
	} 

 

Kind Regards

Zerelth ~ Ellie

 

https://metin2.download/picture/1trD2tnuWbUgjMPZiUp9to17NDBXUz0P/.pngCorrect me?

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Good 1
Link to comment
Share on other sites

 

 

 

Try to put breakpoint. It's the best way for check.

sys_log(0,"%d",sizeof(TShopTable));

Kind Regards

Zerelth ~ Ellie

Skype, so you could not quite understand

 

 

Maybe you don't want to understand that and what do you mean via skype?

 

 

input_db.cpp

	/*
	 * SHOP
	 */

	if (decode_2bytes(data) != sizeof(TShopTable))
	{
		sys_err("shop table size error");
		thecore_shutdown();
		return;
	}
	data += 2;

	size = decode_2bytes(data);
	data += 2;
	sys_log(0, "BOOT: SHOP: %d", size);


	if (size)
	{
		if (!CShopManager::instance().Initialize((TShopTable *) data, size))
		{
			sys_err("shop table Initialize error");
			thecore_shutdown();
			return;
		}
		data += size * sizeof(TShopTable);
	} 

 

Kind Regards

Zerelth ~ Ellie

 

https://metin2.download/picture/1trD2tnuWbUgjMPZiUp9to17NDBXUz0P/.pngCorrect me?

 

 

If you are delete these things, game is not load your shop system :D I am only say put a breakpoint for understand the error.

 

Kind Regards

Zerelth ~ Ellie

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1

Do not be sorry, be better.

Link to comment
Share on other sites

 

 

 

 

Try to put breakpoint. It's the best way for check.

sys_log(0,"%d",sizeof(TShopTable));

Kind Regards

Zerelth ~ Ellie

Skype, so you could not quite understand

 

 

Maybe you don't want to understand that and what do you mean via skype?

 

 

input_db.cpp

	/*
	 * SHOP
	 */

	if (decode_2bytes(data) != sizeof(TShopTable))
	{
		sys_err("shop table size error");
		thecore_shutdown();
		return;
	}
	data += 2;

	size = decode_2bytes(data);
	data += 2;
	sys_log(0, "BOOT: SHOP: %d", size);


	if (size)
	{
		if (!CShopManager::instance().Initialize((TShopTable *) data, size))
		{
			sys_err("shop table Initialize error");
			thecore_shutdown();
			return;
		}
		data += size * sizeof(TShopTable);
	} 

 

Kind Regards

Zerelth ~ Ellie

 

https://metin2.download/picture/1trD2tnuWbUgjMPZiUp9to17NDBXUz0P/.pngCorrect me?

 

 

If you are delete these things, game is not load your shop system :D I am only say put a breakpoint for understand the error.

 

Kind Regards

Zerelth ~ Ellie

 

Error resolving the channels are opened? I expanded the shop that he was giving an error

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

 

 

 

 

Try to put breakpoint. It's the best way for check.

sys_log(0,"%d",sizeof(TShopTable));

Kind Regards

Zerelth ~ Ellie

Skype, so you could not quite understand

 

 

Maybe you don't want to understand that and what do you mean via skype?

 

 

input_db.cpp

	/*
	 * SHOP
	 */

	if (decode_2bytes(data) != sizeof(TShopTable))
	{
		sys_err("shop table size error");
		thecore_shutdown();
		return;
	}
	data += 2;

	size = decode_2bytes(data);
	data += 2;
	sys_log(0, "BOOT: SHOP: %d", size);


	if (size)
	{
		if (!CShopManager::instance().Initialize((TShopTable *) data, size))
		{
			sys_err("shop table Initialize error");
			thecore_shutdown();
			return;
		}
		data += size * sizeof(TShopTable);
	} 

 

Kind Regards

Zerelth ~ Ellie

 

https://metin2.download/picture/1trD2tnuWbUgjMPZiUp9to17NDBXUz0P/.pngCorrect me?

 

 

If you are delete these things, game is not load your shop system :D I am only say put a breakpoint for understand the error.

 

Kind Regards

Zerelth ~ Ellie

 

Error resolving the channels are opened? I expanded the shop that he was giving an error HELP ME BROOOOOOOO xD

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

Try to put breakpoint. It's the best way for check.

sys_log(0,"%d",sizeof(TShopTable));

Kind Regards

Zerelth ~ Ellie

 

I found this already there:

sys_log(0, "sizeof(TShopTable) = %d", sizeof(TShopTable));

@Tkmt2x11, did you build your dbcache (database / db) with your current settings? If not, give it a try.

Link to comment
Share on other sites

  • 2 years later...
  • 7 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.