AltanOzkan 17 Posted May 16, 2019 Share Posted May 16, 2019 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 More sharing options...
OtherChoice 77 Posted May 17, 2019 Share Posted May 17, 2019 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. 1 Link to comment Share on other sites More sharing options...
Premium TAUMP 847 Posted May 17, 2019 Premium Share Posted May 17, 2019 @Raylee ? 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now