Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2002, 07:30 AM
Drawde
Dragon
 
Join Date: Jan 2002
Posts: 521
Default Need help with books table in DB

Since I'm working on quests etc. at the minute I thought I'd try adding some book text to the DB, since many quests involve notes, books etc.
However I'm not entirely sure how the book table works.
The txtfile value presumably is the name of the file containing the text, e.g book1.txt. Where is this file located, in a books subdirectory, or in the EQEmu directory?
And the name value, presumably this is for assigning the text to an item, should it be the same as the item's lore text?

Any help from the developers or someone else who's tried adding book data would be appreciated!
Reply With Quote
  #2  
Old 05-02-2002, 12:56 AM
DeletedUser
Fire Beetle
 
Join Date: Sep 2002
Posts: 0
Default

each book item has a "filename" value inside the item...

Like, the Tome of Order & Discord is "discord". Currently, there are no editors out that I know of which let you look at or edit these values.


in the table, you have 2 fields, name & txtfile. name would be discord for this book we are talking about, and txtfile would be the text in the book. Each type of book has a different built in format it appears, so you need to play around with it. Some books have ` (by the #1 key) as the newline seperator, others do not. It is an experement thing you have to do....
Reply With Quote
  #3  
Old 05-02-2002, 05:55 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

The key name starts on the AF hex offset and ends at the next NULL (00)

Using mysql-front, you can find your item, and then view the blob in the hex tab to find the key name.
Reply With Quote
  #4  
Old 05-03-2002, 04:34 AM
Drawde
Dragon
 
Join Date: Jan 2002
Posts: 521
Default

Thanks for the help!
So the "txtfile" value actually contains the text, it's not a reference to a filename?
I'll try it out and see what happens, anyway.
Reply With Quote
  #5  
Old 05-04-2002, 05:15 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

The txtfile field seems to only hold about 64 characters....

Am I missing something, or is this meant to be a link to actual text files?

Also I wanted to post this link http://www.eqcaster.com/ He has a compendium that list the actual contents of MANY books type objects!
Reply With Quote
  #6  
Old 05-04-2002, 06:48 AM
Drawde
Dragon
 
Join Date: Jan 2002
Posts: 521
Default

Tried it out and it works!
Now I just need to work out where to put the ` line breaks..
The txtfile value seems to be capable of holding more than 64 characters, as far as I can see.
Reply With Quote
  #7  
Old 05-05-2002, 04:42 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

Ahh it was mysql-front limiting the field to 64 characters. Using rew sql queries I can get it to use longer text.
Reply With Quote
  #8  
Old 05-05-2002, 05:08 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

It seems that it will wrap a long line of text on it's own. But for paragraphs and such, the ` will break the automatic line wraping. Also putting a charage return in the string causes some problems.

The below works as long as the lines aren't longer than the page width.

'sample text`
more sample text'

'sample text
more sample text'
Reply With Quote
  #9  
Old 05-09-2002, 07:37 AM
Esco
Fire Beetle
 
Join Date: May 2002
Posts: 5
Default

I am soooooo wanting to do research.
Reply With Quote
Reply

Thread Tools
Display Modes

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 09:19 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