Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2007, 08:23 PM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default Mmf_eqmax_items=100,000?

FYI to devs;

In Item.h, there is this define:
Code:
#define MMF_EQMAX_ITEMS		100000
And in wandering through some of the latest `items` table data, the max ID is currently 99211 (Shiliskin Dagger). I might misunderstand the meaning of this #define, but if our items break the 100k mark, will we have troubles?

I once manually created an item > 100,000 and it did not work. I cannot remember if I crashed, or if I just couldn't find it (was ID 150,000 for custom items).

Just thought I'd bring it up in case it becomes an issue on the next Items import.

-J
Reply With Quote
  #2  
Old 07-09-2007, 01:49 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

The way memshare works is it allocates memory space for a given amount of items, npcs, doors, etc (Everything that is handled in memshare has a #), if you exceed the ID number of the maximum, you have to increase it and re-compile.
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote
  #3  
Old 07-09-2007, 10:52 PM
GeorgeS
Forum Guide
 
Join Date: Sep 2003
Location: California
Posts: 1,474
Default

I'm slowly rewriting the item editor code to use a smarter way of finding the next available item_id, instead of using SELECT MAX(id) FROM ITEMS...
In this way it will not go over 100K limit.


GeorgeS
__________________
Your source for EQ database tools
Toolshop is open for business


http://www.georgestools.chrsschb.com//
Reply With Quote
  #4  
Old 07-09-2007, 11:17 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

When you insert into a table using MySQL you are able to pass in a integer to retrieve the unique insert id, this would probably be the best way by just letting mysql decide the newest ID.
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote
  #5  
Old 07-10-2007, 03:07 PM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Right, Image. So long as someone knows that time is coming. I think that item ID was the latest from 13th Floor, as of May.

Will the shared memory just not load those 100k+ items? Or will it crap something out? I think the former is true. I can't remember. i guess I could just go create item id's 100,000 through 100,100 and see if they show up.
Reply With Quote
  #6  
Old 07-10-2007, 04:47 PM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

Well you are confusing me, you are talking about an item editor and then you are bringing up code for the emulator. If you have item ID's that exceed that define, the items simply will not load into EQEMu's memshare because it needs more memory space. There is no other way around it other than increasing the define to exceed the highest item id number.
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote
  #7  
Old 07-10-2007, 04:57 PM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

No, I was talking about Emu only... not the item editor. Sorry for not being clear. I actually created my item by inserting a new SQL row manually. I'm a barbarian at heart.

But thanks for clearing it up.
Reply With Quote
  #8  
Old 08-08-2007, 09:41 PM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

100k should be enough for anybody.

Or was that 640k?
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
Reply With Quote
  #9  
Old 08-15-2007, 04:50 AM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

Quote:
Originally Posted by GeorgeS View Post
I'm slowly rewriting the item editor code to use a smarter way of finding the next available item_id, instead of using SELECT MAX(id) FROM ITEMS...
In this way it will not go over 100K limit.


GeorgeS
Thank you, GeorgeS. That is badly needed for sure. It will be helpful also to fill in gaps in the items table this way.
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:37 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3