Jump to content
  • 0

max item limit


Stolao

Question


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Today I tested the item_db limits, useable item ids are 1-32867. To my point I'm getting close to hitting this limit. How hard would it be to increase this if at all possible?

I assume the limit hard-coded in sorce somewhere but was unable to locate it.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

I ran into some thing similar to this as well. I'm hoping it's not hard coded into the client.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Update: I've searched every instance of "#define" and instance of "item" in the my servers sorce, to no avail.

Also there is no debug info displayed in the server when an item with an Id greater then 32767 is listed, however said item is not generated through @item nor getitem.

I assume this is a sorce "bug" and not a client issue, I have a very extensive item_db and have not even started adding my collection of ~5k headgear (mostly recolors) I collected over the years, so I'd really like this "bug" fixed.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

this ?

map/itemdb.h

#define MAX_ITEMDB 0x8000

#define MAX_ITEMDB 0x10000

1~65535

and

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

Edited by QQfoolsorellina
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Ty, how the _ did I miss this Idk God I need more sleep -_-

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  05/16/12
  • Last Seen:  

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

 

what that means?

 

    uint16 nameid; ->     uint32 nameid;

or

    uint16 nameid; -> int nameid;

 

 

i have tried both but if i try to use @item 40150 it give me there error "Cannot get this item" in game

I also changed #define MAX_ITEMDB 0x8000 to #define MAX_ITEMDB 0x10000

Edited by Filgaja
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   5
  • Joined:  06/14/12
  • Last Seen:  

How does this topic solved? Can you please post the instruction on how to changed the max id's.

  • Upvote 1
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:  

yeah. please share how to increase max IDs

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  33
  • Reputation:   2
  • Joined:  04/16/12
  • Last Seen:  

oh yeah, please share your knowledge :D

it would be nice ;)

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...