Jump to content
  • 0

increasing item_db limit


Question

Posted

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

3 answers to this question

Recommended Posts

Posted

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

Posted

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?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...