Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-09-2007, 10:56 AM
Sprig
Fire Beetle
 
Join Date: Jun 2007
Posts: 8
Default Possible new aproach to world building

I'm not sure how possible this would be....

I think it would be a good idea to attempt to come up with a standard for IDs based on the zone numbers for the id numbers used in the database for things like doors mobs etc,

If blocks of ID numbers were reserved for certain areas anyone who used the standards would have a much easier time changing out individual zones for newer versions.

with this modular method it would be possible to choose between versions of zones that people make public without worrying about picking through ID numbers to make sure you weren't messing things you had worked on up.

I understand that this would require a ton of work as far as rewrites go
but i would be willing to assist in whatever way i could if anyone wants to work on it with me. ( my knowledge of mysql is somewhat limited though)

-sprig
Reply With Quote
  #2  
Old 06-11-2007, 11:37 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Before someone comes and says something mean, I will attempt to take the high moral ground and say, much of the data already is in that structure (zoneid * 1000), for say NPCs and such. To re-ID the entire database would be monumental. Many have talked about it, said they'd get back to us with some results, and vanished from cyberspace.

Even I myself (a self-proclaimed SQL GOD - until I saw some of GeorgeS's hints ) tried to review what it would take to re-ID everything. It's just too scarey, and dangerous. So many things could break. Blah blah.

Best thing IMO is to leave it in the hands of PEQ - those uber data monkeys. If they want the core database "fixed", they'll ask.
Reply With Quote
  #3  
Old 06-11-2007, 07:59 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

hehe yeah there is prabobly MILLIONS lines of data in DB (class skills table is 40,000 lines alone), but since I am rebuilding everquest from the scratch right now, I am only doing 1 zone at a time, so i have the luxury to set up a standart and follow =)
Reply With Quote
  #4  
Old 06-11-2007, 11:35 PM
Sprig
Fire Beetle
 
Join Date: Jun 2007
Posts: 8
Default

Let people say mean things... i'm posting on the the web so manners are not the norm =)

my prior post was more of a wish list than anything i hoped would really happen.
I am not completely giving up on the idea but not expecting it to happen either. =)
-sprig
Reply With Quote
  #5  
Old 06-12-2007, 01:33 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

I should have asked initially, but where do you see a deficiency with the current indexing? I mean, the PKs shouldn't matter as much as the FKs - or what IDs tie the whole thing together. The database does show it's age, with no constraints and dead data (that many have offered to clean up).

The npc_types table is laid out exactly as you described, with Zone 1 mobs being numbered 1000-1999, zone 2 being 2000-2999, etc. You can't really bind many of the other tables to "zones" unless the range is increased (I guess), because there could be more spawn groups, spawns, loot drops etc.

I doubt SQL cares what your PK is, but I believe our shared memory modules do. If you read in IDs 1-100,000, it takes up 'x' amount of memory. If you start making up new IDs and now have to read in ID 1-1,000,000, that's a helluva lot more memory (if we pad that empty space, which I think we do from an earlier discussion).

Anyway, always a good idea to have a solid database. I guess I forgive 'eq' because it is so old, before MySQL became a real database solution
Reply With Quote
  #6  
Old 06-12-2007, 05:40 AM
EmanonCow
Sarnak
 
Join Date: Aug 2006
Posts: 35
Default

How practical would splitting the IDs be?

Ie, items being identified by a (zone, ID) pair, with (0, ID) being "uncatagorized"?

This would require changes to the code base (so it identifies things as (zone, ID) pairs rather than just IDs), but the existing data wouldn't have to be changed.

Then one could start moving things out of the "uncatagorized" zone and into a (zone, ID) pair space -- it would allow one to create portable zone-data files, but not require you to, so existing data would work fine.
Reply With Quote
  #7  
Old 06-12-2007, 05:44 AM
Dralanna
Sarnak
 
Join Date: Jan 2006
Posts: 49
Default

Quote:
items being identified by a (zone, ID) pair, with (0, ID) being "uncatagorized"?
The problem is many items appear in multiple zones.
Reply With Quote
  #8  
Old 06-20-2007, 11:22 PM
ArChron
Fire Beetle
 
Join Date: Dec 2006
Location: Vienna
Posts: 28
Default

Quote:
Originally Posted by John Adams View Post
I doubt SQL cares what your PK is, but I believe our shared memory modules do. If you read in IDs 1-100,000, it takes up 'x' amount of memory. If you start making up new IDs and now have to read in ID 1-1,000,000, that's a helluva lot more memory (if we pad that empty space, which I think we do from an earlier discussion).
I believe that the IDs are read and stored in a 1 to <maxid> space... there are other programming models for handling what could be a "sparse matrix/list" if the range of values for IDs were spread out to accomodate a new identification scheme. I think that (EMU code change) is far less of an issue than just managing the data transformations that would have to happen in the SQL database...
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 07:05 PM.


 

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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3