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

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #16  
Old 10-04-2003, 07:24 PM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default Importing character_ records from 0.44 databases

Is there a technique for importing characters items when importing characters from a 0.44 databases? I assume you have to extract (and convert?) the item data from the character_.profile blob and populate the new character_.inventory blob.
I guess this information is already available but I haven't located it yet.
Reply With Quote
  #17  
Old 10-04-2003, 11:59 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Quote:
The first statement returned two rows. I removed these entries from the database and was able to get pass the charater screen and into the zone. I'm not sure if this did it because I did alot of other data normalization and came up with a completly different database than the one I initially started with. But it works.
Very possible... Incorrect handling of NULLS is often the source of many problems. If you could recreate it and verify for sure it happened right there (Backup your database, put the original database back in, test, remove the offending entries, test) and let us know exactly what stage of the zone server boot it occured at, we could put some checks in the code to make the server more robust when it encounters bad data...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #18  
Old 10-06-2003, 10:38 AM
tcsmyworld's Avatar
tcsmyworld
Discordant
 
Join Date: Feb 2002
Posts: 452
Default

It seems that one of the starting items is the crash problem.
One of the starting items has an itemid of 0.
Remove the entry with itemid 0 from starting_items table and it should work.
I'm putting fixed files up on same links , so won't be an issue anymore.
Sorry for any inconvenience , but this IS still just in alpha stage
__________________
Founder PEQ (ProjectEQ)
Reply With Quote
  #19  
Old 10-06-2003, 10:42 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Hmmm... I'd still like to know the offender..

The code I merged of krich's for starting items should handle the 0 item id correctly, it did on my machine at least...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #20  
Old 10-07-2003, 04:38 PM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default

Trump,

Here's the code you added to avoid the crash problem:
Code:
                                const Item_Struct* myitem = database.GetItem(atoi(row[0]));
                                if ( myitem !=0)
The problem is that I tracked down the source of the crash inside of the GetItem method. You won't get to check myitem!=0, because it's too late, world has crashed already.

This is what I saw in my testing. GetItem calls something in the Mutex library and I really didn't want to mess with that stuff. If I get a chance, I'll try to reproduce and give you a gdb backtrace.

Regards,

krich
Reply With Quote
  #21  
Old 10-30-2003, 10:20 PM
AK1122
Sarnak
 
Join Date: Apr 2003
Posts: 41
Default Broken Link

Hmmmm... tcsmyworld.. ur db link is broken..

Could some1 mirror his file, or could you tcs put it up again? =)

If you wanna use my site as a mirror:
ftp://ak1121.no-ip.info
just drop it into uploads and ill put it in home folder n post link

Thank You
Reply With Quote
  #22  
Old 10-31-2003, 01:43 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

removing itemid 0 from table starting_items causes serious errors when you source the sql... is this supposed to happen?
Reply With Quote
  #23  
Old 10-31-2003, 04:19 AM
devn00b's Avatar
devn00b
Demi-God
 
Join Date: Jan 2002
Posts: 15,658
Default

As i have posted in a different thread, I host all tcs files, my webserver recently canged my addy from : http://nctimes.net to forcing this addy http://www.nctimes.net

Tcs hasnt updated his dns you can reach any of his files at the following location

http://www.nctimes.net/~threeofus/db/<instertcasesensitivefilenamehere>.ace

thank you and have a nice day
__________________
(Former)Senior EQEMu Developer
GuildWars Co-Founder / World Builder.
World Builder and Co-Founder Zek [PVP/Guild Wars/City Takeovers]
Member of the "I hate devn00b" Club
Most Senior EQEMu Member.

Current Work: EverQuest 2 Emulator. Zeklabs Server
Reply With Quote
  #24  
Old 11-01-2003, 10:32 AM
tcsmyworld's Avatar
tcsmyworld
Discordant
 
Join Date: Feb 2002
Posts: 452
Default

Kroeg , only one item in starting items needs to be removed , it's the item with id# 0.
__________________
Founder PEQ (ProjectEQ)
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:44 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