Jump to content

[TOOL] [Mysql2Proto] item_proto structSize[163]


Recommended Posts

Hi,

#download removed by a moderator


I'm using this tool for converting item_proto & mob_proto to sql. When i try to convert patch 18.4 item_proto it giving me error.

LoadItemProto: invalid item_proto structSize[163] != sizeof(SItemTable)

How can i add new proto_struct to this source ?

Edit: mob_proto.sql have 1844 line but all values 0. :)

Thanks.

Link to comment
Share on other sites

inside client binary source your typedef struct TItemTable {...} SItemTable; has to match stride of item_proto. This means that for each field ("column") of the item_proto, SItemTable should have a corresponding field of the right type. For example old item_protos (before dragonsoul system) had a stride of 152 meanwhile after dragonsould system it got expanded to 156.
156-152 = 4. 4 is the size of the new field added "vnum_range" which is declared as int inside SItemTable hence the difference of 4 bytes. So if your new item_proto has a size of 163 you should check which type of new fields are missing in your current SItemTable and just add them.

  • Love 1
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

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.