Jump to content

Recommended Posts

  • Former Staff

I'm working on 40k client and i use txt protos in server

 

i tried to dump the txts my dump_proto.exe

 

after adding item proto to pack i got this error

0112 17:23:07421 :: CPythonItem::LoadItemTable: invalid item_proto[locale/de/item_proto] STRIDE[152] != sizeof(SItemTable)
0112 17:23:07422 :: LoadLocaleData - LoadItemProto(locale/de/item_proto) Error
0112 17:23:16024 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0112 17:24:29928 :: Traceback (most recent call last):

0112 17:24:29928 ::   File "networkModule.py", line 239, in SetGamePhase

0112 17:24:29929 ::   File "game.py", line 100, in __init__

0112 17:24:29929 ::   File "interfaceModule.py", line 296, in MakeInterface

0112 17:24:29943 ::   File "interfaceModule.py", line 130, in __MakeTaskBar

0112 17:24:29944 ::   File "uiTaskBar.py", line 563, in LoadWindow

0112 17:24:29944 ::   File "uiTaskBar.py", line 771, in RefreshQuickSlot

0112 17:24:29945 :: RuntimeError
0112 17:24:29945 :: :
0112 17:24:29945 :: skill.GetSkillType - Failed to find skill by 77
0112 17:24:29945 ::

Link to comment
https://metin2.dev/topic/4877-item-proto-error/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Former Staff

I've edited something to let the game open cus it's stops on the loading screen

i changed this

	if (!rkItemMgr.LoadItemTable(szItemProto))
	{
		TraceError("LoadLocaleData - LoadItemProto(%s) Error", szItemProto);
		return false;
	}

to this to know how this problem affect on the client

	if (!rkItemMgr.LoadItemTable(szItemProto))
	{
		TraceError("LoadLocaleData - LoadItemProto(%s) Error", szItemProto);
	//	return false;
	}

he client works but i can't see any item name or state

 

.....

the problem lead me to this

        if (dwStride != sizeof(CItemData::TItemTable))
        {
            TraceError("CPythonItem::LoadItemTable: invalid item_proto[%s] STRIDE[%d] != sizeof(SItemTable)",
                c_szFileName, dwStride, sizeof(CItemData::TItemTable));
            return false;
        }

i think the new item proto it not compatible with the client proto reader

Link to comment
https://metin2.dev/topic/4877-item-proto-error/#findComment-30772
Share on other sites

  • Former Staff

changed this

        if (dwStride != sizeof(CItemData::TItemTable))
        {
            TraceError("CPythonItem::LoadItemTable: invalid item_proto[%s] STRIDE[%d] != sizeof(SItemTable)",
                c_szFileName, dwStride, sizeof(CItemData::TItemTable));
            return false;
        }

to this to know the "sizeof(CItemData::TItemTable)"

		if (dwStride != sizeof(CItemData::TItemTable))
		{
			TraceError("CPythonItem::LoadItemTable: invalid item_proto[%s] STRIDE[%d] != sizeof(SItemTable) [%d]",
				c_szFileName, dwStride, sizeof(CItemData::TItemTable));
			return false;
		}

and now the error is like this

0112 19:49:04360 :: CPythonItem::LoadItemTable: invalid item_proto[locale/de/item_proto] STRIDE[152] != sizeof(SItemTable) [208]
Link to comment
https://metin2.dev/topic/4877-item-proto-error/#findComment-30775
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.