Hey guys, I've read any topic about this out there, but I am still not able to make it work.
This is what I've done:
/src/map/itemdb.h:
-#define MAX_ITEMDB 0x8000 // 32k array entries in array (the rest goes to the db)
+#define MAX_ITEMDB 0x10000 // 64k array entries in array (the rest goes to the db)
/src/common/mmo.h:
- short nameid;
+ unsigned short nameid;
/sql-files/main.sql:
card0~ card3 from smallint to mediumint
(at multiple places)
BUT still: when i logout with an itemID over 32k, it gets deleted with following error:
[SQL]: DB error - data of field 'nameid' was truncated
[Debug]: column - 1
[Debug]: data - type=UNSIGNED MYSQL_TYPE_LONG, le
[Debug]: buffer - type=MYSQL_TYPE_SHORT, length=2
Hey guys, I've read any topic about this out there, but I am still not able to make it work.
This is what I've done:
/src/map/itemdb.h:
-#define MAX_ITEMDB 0x8000 // 32k array entries in array (the rest goes to the db) +#define MAX_ITEMDB 0x10000 // 64k array entries in array (the rest goes to the db)
/src/common/mmo.h:
- short nameid; + unsigned short nameid;
/sql-files/main.sql:
card0~ card3 from smallint to mediumint
(at multiple places)
Edited by leertasteBUT still: when i logout with an itemID over 32k, it gets deleted with following error:
Share this post
Link to post
Share on other sites