Jump to content

Repacked item_proto doesnt want to work


Recommended Posts

Hello, I have a small problem when editing the client.

 

Whenever I unpack the item_proto using EPack32 and repack it even without changing anything, I get this error.

 

0715 11:22:06127 :: CPythonItem::LoadItemTable: invalid item_proto[locale/pl/item_proto] STRIDE[152] != sizeof(SItemTable)
0715 11:22:06128 :: LoadLocaleData - LoadItemProto(locale/pl/item_proto) Error

 

The game crashes. How do I fix it?

Link to comment
Share on other sites

10 hours ago, r00t said:

Why do you unpack proto? You haven't txt db files?

 

I do not really understand. I mean the client proto, bruv! :)

 

9 hours ago, arves100 said:

Check  GameLib\ItemData.h if item proto structure is the same of the unpacker

 

Thanks, unfortunately I have no acess to the unpacker/packer source so I cannot verify or edit. 

 

Update: When I unpacked it using Metin2dev archiver 

it gave me an output of .xml, not .txt file which I was able to edit and repack later. The client worked, but some of the values (like Specular) didnt work and there was no effects of Specular etc. Seeking for further help.

 

If it does matter, here is my SItemTable structure:

 

DWORD       dwVnum;
            DWORD       dwVnumRange;
            char        szName[ITEM_NAME_MAX_LEN + 1];
            char        szLocaleName[ITEM_NAME_MAX_LEN + 1];
            BYTE        bType;
            BYTE        bSubType;
            
            BYTE        bWeight;
            BYTE        bSize;
            
            DWORD       dwAntiFlags;
            DWORD       dwFlags;
            DWORD       dwWearFlags;
            DWORD       dwImmuneFlag;
                        
            DWORD       dwIBuyItemPrice;            
            DWORD        dwISellItemPrice;
            
            TItemLimit  aLimits[ITEM_LIMIT_MAX_NUM];
            TItemApply  aApplies[ITEM_APPLY_MAX_NUM];
            long        alValues[ITEM_VALUES_MAX_NUM];
            long        alSockets[ITEM_SOCKET_MAX_NUM];
            DWORD       dwRefinedVnum;
            WORD        wRefineSet;
            BYTE        bAlterToMagicItemPct;
            BYTE        bSpecular;
            BYTE        bGainSocketPct;

Link to comment
Share on other sites

50 minutes ago, r00t said:

I mean that if you go in your db folder insede serverfiles you have the 4 txt files (proto and name for item and mob) and you can dump it...but i dont know if it contanin all the same items in db table "item_proto"

I dont even have these files, i'm using NOTXT and everything is in the database. Seeking for further help, $10 is the prize by now, need this really.

Link to comment
Share on other sites

11 minutes ago, bumxd said:

your proto crashed,i recommend use other proto,but if need fix your proto do it: 

1. open proto .xml your in notepad.

2. Ctrl+h

3.Find: ? Type=

Replace: ?" Type=

4. Click change all.

5.Problem fixed.

Could you share me your packer? When I unpack the original proto using mine I cannot find " ? Type= " the thing you posted in step number 3.

f4d3813e0d44460c90c70bc8bdf6f448.jpeg

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

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.