Jump to content
  • 0

increasing item_db limit


Saisho

Question


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  185
  • Reputation:   20
  • Joined:  01/06/13
  • Last Seen:  

i was reading this topic but i dont got this part

and

uint16 type of nameid in struct item_data should be redeclared a wide range of type

can someone plz explain? /hmm

the rest if i understand is just change this line in the itemdb.h and recompile...

#define MAX_ITEMDB 0x8000

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

In itemdb.h, there's a line that says this, inside of struct item_data

uint16 nameid;

You need to change nameid from uint16 to a variable type that can hold a larger number total.

And then change this

#define MAX_ITEMDB 0x8000

to this

#define MAX_ITEMDB 0x10000

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  185
  • Reputation:   20
  • Joined:  01/06/13
  • Last Seen:  

thx for the reply

You need to change nameid from uint16 to a variable type that can hold a larger number total.

but what kind of variable?

i changed to uint32 and tested, the item shows in the @ii but cant get it w/ @item.

what else can i do to extend the db to over 40k?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  09/21/12
  • Last Seen:  

been searching for an answer to this question as well.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...