Jump to content
×
×
  • Create New...
  • 0

CPythonItem::LoadItemTable: invalid item_proto STRIDE[220] != sizeof(SItemTable)[168]


Karbust

Question

  • Web Developer

Hello metin2dev

I'm having this problem, after I open log in, the client abort, this is the error:

1001 10:11:08935 :: ## Network - Select Phase ##
1001 10:11:08938 :: 
1001 10:11:09158 :: SYSERR: CPythonItem::LoadItemTable: invalid item_proto[locale/pt/lista_itens] STRIDE[220] != sizeof(SItemTable)[168]
1001 10:11:09161 :: SYSERR: LoadLocaleData - LoadItemProto Error
1001 10:11:09162 :: importing from pack introSelect
1001 10:11:09167 :: importing from lib math
1001 10:11:09169 :: importing from pack uiMapNameShower
1001 10:11:09171 :: importing from pack uiAffectShower
1001 10:11:09176 :: importing from pack uiToolTip
1001 10:11:09191 :: importing from pack uiPlayerGauge
1001 10:11:09194 :: importing from pack uiCharacter
1001 10:11:09202 :: importing from pack uiTarget
1001 10:11:09206 :: importing from pack consoleModule
1001 10:11:09212 :: importing from pack interfaceModule
1001 10:11:09222 :: importing from pack uiTaskBar
1001 10:11:09229 :: importing from pack uiInventory
1001 10:11:09238 :: importing from pack uiRefine
1001 10:11:09242 :: importing from pack uiAttachMetin
1001 10:11:09244 :: importing from pack uiPickMoney
1001 10:11:09246 :: importing from pack uiPrivateShopBuilder
1001 10:11:09249 :: importing from pack uiDragonSoul
1001 10:11:09258 :: importing from pack uiChat
1001 10:11:09265 :: importing from pack colorInfo
1001 10:11:09267 :: importing from pack uiMessenger
1001 10:11:09272 :: importing from pack uiGameOption
1001 10:11:09276 :: importing from pack uiHelp
1001 10:11:09278 :: importing from pack uiWhisper
1001 10:11:09281 :: importing from pack uiPointReset
1001 10:11:09282 :: importing from pack uiShop
1001 10:11:09285 :: importing from pack uiExchange
1001 10:11:09287 :: importing from pack uiSystem
1001 10:11:09289 :: importing from pack uiOption
1001 10:11:09292 :: importing from pack uiSystemOption
1001 10:11:09295 :: importing from pack uiSelectMusic
1001 10:11:09297 :: importing from pack uiRestart
1001 10:11:09298 :: importing from pack uiMiniMap
1001 10:11:09302 :: importing from pack uiParty
1001 10:11:09307 :: importing from pack uiSafebox
1001 10:11:09312 :: importing from pack uiGuild
1001 10:11:09329 :: importing from pack uiUploadMark
1001 10:11:09333 :: importing from pack uiQuest
1001 10:11:09339 :: importing from pack uiEquipmentDialog
1001 10:11:09341 :: importing from pack uiGameButton
1001 10:11:09343 :: importing from pack uiTip
1001 10:11:09345 :: importing from pack uiCube
1001 10:11:09350 :: importing from pack uiSelectItem
1001 10:11:09352 :: importing from pack uiCards
1001 10:11:09355 :: importing from pack uiAttrDialog
1001 10:11:09359 :: importing from pack uiinventory

What can I do?

Thanks

QJ0orbR.png

Metin2 Icon Database

Link to comment

8 answers to this question

Recommended Posts

  • 0

Hello charparodar,

14 minutes ago, charparodar said:

1001 10:11:09158 :: SYSERR: CPythonItem::LoadItemTable: invalid item_proto[locale/pt/lista_itens] STRIDE[220] != sizeof(SItemTable)[168]

This line pretty much answers your question: the item_proto you're trying to use has a different structure compared to the one your client supports.

  • Love 2

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment
  • 0
  • Web Developer
2 hours ago, NabbHackeR said:

Hello charparodar,

This line pretty much answers your question: the item_proto you're trying to use has a different structure compared to the one your client supports.

I use the same dump proto since I started to "play" with the source, I didn't knew how to build the item proto so I used the one from the ymir source on vs 2010, I had this problem some time ago, but I can't remember what I did to correct this...

EDIT: I used the same item proto but from another client that is working, and the one that I'm using says the same error...

QJ0orbR.png

Metin2 Icon Database

Link to comment
  • 0
On 1/10/2016 at 1:37 PM, charparodar said:

I use the same dump proto since I started to "play" with the source, I didn't knew how to build the item proto so I used the one from the ymir source on vs 2010, I had this problem some time ago, but I can't remember what I did to correct this...

EDIT: I used the same item proto but from another client that is working, and the one that I'm using says the same error...

Cause the clients are different, the other client supports that item_proto structure, yours doesn't, simple as that.

  • Love 1

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment
  • 0
  • Web Developer
5 hours ago, NabbHackeR said:

Cause the clients are different, the other client supports that item_proto structure, yours doesn't, simple as that.

Same source, same client, just one difference, one is mine the other is to give to my friends to test...

The problem must be in the source somewhere, and I don't know where or what is causing this error, since the other binary was compiled, and then I just made some changes on mine, but I don't know what may have caused the error...

QJ0orbR.png

Metin2 Icon Database

Link to comment
  • 0
  • Moon

As nabHacker mention, your item_proto structure does not fit to your compiled one,

if you look at the function CItemManager::LoadItemTable in ItemManager.cpp 

And take another look at SaveItemProto() at dump_proto.cpp, you can see there's a check condition that checks if the item_proto structrue is the same as the compiled one. The variable Stride stores the item_proto structure size.

Spoiler

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

Basically what it means is that your item_proto.txt structure is missing/having more members than it should be and this causing the error.

And also, make sure that the item_proto.txt is compile with dump_proto that match to your client.

Look at class TClientItemTable(in dump_proto.cpp) and class TItemTable in ItemData.h and verify they match.

  • Love 1
Link to comment
  • 0
  • Web Developer
5 hours ago, metin2-factory said:

As nabHacker mention, your item_proto structure does not fit to your compiled one,

if you look at the function CItemManager::LoadItemTable in ItemManager.cpp 

And take another look at SaveItemProto() at dump_proto.cpp, you can see there's a check condition that checks if the item_proto structrue is the same as the compiled one. The variable Stride stores the item_proto structure size.

  Hide contents

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

Basically what it means is that your item_proto.txt structure is missing/having more members than it should be and this causing the error.

And also, make sure that the item_proto.txt is compile with dump_proto that match to your client.

Look at class TClientItemTable(in dump_proto.cpp) and class TItemTable in ItemData.h and verify they match.

Thanks for that answer!!

Days ago I changed the ITEM_NAME_MAX_LEN and the CHARACTER_NAME_MAX_LEN (game, client and dump proto), but I don't know how, on the binary it went back to the default values, so I had names bigger on the item_proto and the client only could read 24... After I changed the ITEM_NAME_MAX_LEN to the new value I received another error, the mob_proto, had to change again...

Thanks to all!!

QJ0orbR.png

Metin2 Icon Database

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.