Jump to content

Recommended Posts

Have downloaded ava 2 source file and client but when try to translate my item_proto and encrypt its all ok but the client say me ":

 

1111 17:00:12282 :: CPythonItem::LoadItemTable: invalid item_proto[locale/it/item_proto] STRIDE[156] != sizeof(SItemTable)
1111 17:00:12282 :: LoadLocaleData - LoadItemProto(locale/it/item_proto) Error

this is my item_proto and item names file get the item proto from the database but i 've alredy tried with the item proto inside srv/db/item_proto.txt, nothing happen it's the same result.

 

item_proto example:

 

vnum	name	locale_name	type	subtype	weight	size	antiflag	flag	wearflag	immuneflag	gold	shop_buy_price	refined_vnum	refine_set	refine_set2	magic_pct	limittype0	limitvalue0	limittype1	limitvalue1	applytype0	applyvalue0	applytype1	applyvalue1	applytype2	applyvalue2	value0	value1	value2	value3	value4	value5	socket0	socket1	socket2	socket3	socket4	socket5	specular	socket_pct
1	???????	Yang	9	0	0	1	0	0	0		0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	-1	-1	-1	-1	-1	0	0
2	??????????	Deutsche Version	0	0	0	1	0	0	0		0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	-1	-1	-1	-1	-1	-1	0	0
10	??+0	Schwert+0	1	0	0	2	262176	1	16		0	0	11	1	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	0	-1	-1	-1	-1	-1	-1	0	1
11	??+1	Schwert+1	1	0	0	2	262176	1	16		100	100	12	2	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	7	-1	-1	-1	-1	-1	-1	0	1
12	??+2	Schwert+2	1	0	0	2	262176	1	16		100	100	13	3	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	14	-1	-1	-1	-1	-1	-1	0	1
13	??+3	Schwert+3	1	0	0	2	262176	1	16		100	150	14	4	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	21	-1	-1	-1	-1	-1	-1	0	1
14	??+4	Schwert+4	1	0	0	2	262176	1	16		100	150	15	5	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	28	-1	-1	-1	-1	-1	-1	30	1
15	??+5	Schwert+5	1	0	0	2	262176	1	16		100	200	16	6	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	35	-1	-1	-1	-1	-1	-1	40	1
16	??+6	Schwert+6	1	0	0	2	262176	1	16		100	250	17	7	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	42	-1	-1	-1	-1	-1	-1	50	1
17	??+7	Schwert+7	1	0	0	2	262176	1	16		100	350	18	8	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	49	-1	-1	-1	-1	-1	-1	65	1
18	??+8	Schwert+8	1	0	0	2	262176	1	16		100	500	19	9	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	56	-1	-1	-1	-1	-1	-1	80	1
19	??+9	Schwert+9	1	0	0	2	262176	1	16		100	750	0	0	0	15	1	0	0	0	7	22	0	0	0	0	0	15	19	13	15	63	-1	-1	-1	-1	-1	-1	100	1

item_names.txt

VNUM	LOCALE_NAME
1	Yang
2	Versione italiana
10	Spada+0
11	Spada+1
12	Spada+2
13	Spada+3
14	Spada+4
15	Spada+5
16	Spada+6
17	Spada+7
18	Spada+8
19	Spada+9

 

client inside ItemData.h

	typedef struct SItemTable_r152
		{
			DWORD       dwVnum;
			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;
		} TItemTable_r152;

		typedef struct SItemTable_r156
		{
			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;
		} TItemTable_r156;

		typedef struct SItemTable_r158
		{
			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;
			WORD		wWearableFlag;
		} TItemTable_r158;

some can explain me what do wrong ? 

 

thank you

Edited by rayans91
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Hi, yes you have missing in .py:
VnumRange
But, why still use script dump proto in .py and create .txt?
I prefer you use eg. tool martysamy, some change have to lines and you can forget about creating proto in .txt via .py script

I have already helped many people (for a small fee, of course) to change and adapt the Martysama program to other server files and make it a bit easier

  • 2 weeks later...

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.