100 Classic Book Collection

Discussion in 'NDS - ROM Hacking and Translations' started by Sparticuz, May 1, 2009.

May 1, 2009

100 Classic Book Collection by Sparticuz at 5:54 AM (4,748 Views / 0 Likes) 21 replies

  1. Sparticuz
    OP

    Newcomer Sparticuz Newbie

    Joined:
    Dec 10, 2008
    Messages:
    2
    Country:
    United States
    I got this 'game' a few weeks ago and thought that it was way better than the current ereaders on the ds. So I took to disassembling the rom to see if I could find some way to replace the books with others. I used dsbuff on it to unpack the files, but now I'm kinda stuck. When I unpack it I get a folder book with over 100 books in it. book_001.bin etc... Using a hex editor I've opened one up and the text is there, but random nonsense is in between words, sometimes inside words. I guess I need help disassembling these bin files. Near the tops of the files is this (book_083.bin)

    CODE.....................The Taming o
    f the Shrew.William Shakespeare.T
    HE TAMING
    OF THE SHREW.William

    Shakespeare.The Taming of

    the Shrew.TAMINGOFTHESHREW.SHAKES
    PEAREWILLIAM.BookData_.TamingOfTh
    eShrew.........0...H...\...w.....

    The first thing I noticed was the
    's Maybe using some sort of html? Any help learning how to disassemble the bin files would be appreciated
     


  2. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Unfortunately, it appears to be a fairly complex format. The file starts out with a header containing pointers to various sections in the file, such as the title image and the font info. Many sections (including the text ones) are stored in LZ77-compressed NARC files.
     
  3. Porkdish

    Member Porkdish GBAtemp Fan

    Joined:
    Jul 6, 2007
    Messages:
    335
    Country:
    Australia
    What about it exactly do you prefer in relation to other ebook homebrew?
     
  4. Kuschel-Drow

    Member Kuschel-Drow GBAtemp Fan

    Joined:
    Mar 25, 2009
    Messages:
    419
    Location:
    Duisburg
    Country:
    Germany
    I think moonshell is quite allright for reading ebooks. I mean... you'll have to convert the files to a correct format in order for Moonshell to show all special letters, but I've managed to do it for German and I can read whatever I want in a decent way. [​IMG]

    Exchanging the books of that rom won't probably be easy so... x)
     
  5. theli

    Member theli GBAtemp Regular

    Joined:
    Oct 20, 2006
    Messages:
    222
    Country:
    Ukraine
    well, it is possible
    for those interested in format of books_xxx.bin (001-100)
    here is some information for start:

    Code:
    0x10 bytes - MD5 sum of rest of file
    0x04 bytes - unknown (always 0x0f000000)
    0x04 bytes * 0x17 - offsets
    0x04 bytes * 0x17 - sizes
    
    all subfiles(except first) are CARC files (lz compressed narc)
    {offsets/sizes} (this is for book_001, I haven't really looked through all books)
    ÂÂÂÂÂÂ 0 :ÂÂpoints to first,uncompressed book's main data , offset always 0xCC , format unknown :)
    ÂÂÂÂÂÂ 1 :ÂÂcover of book 
    ÂÂÂÂÂÂ 2-4 : unknown
    ???ÂÂÂÂ5-7 :ÂÂparts of book's main text .. can be repeated (if repeated - size is zero for all but last entry)
    ???ÂÂÂÂ8-19 :ÂÂparts of book's "about book"
    ÂÂÂÂÂÂ 20 :ÂÂabout author
    ÂÂÂÂÂÂ 21 :ÂÂauthor's portret
    ÂÂÂÂÂÂ 22 :ÂÂchapters' data , format simple , contains chapters' titles and offsets in text
    ÂÂÂÂÂÂ 23 :ÂÂpoints to end of file , size==0
    books' titles and authors seen when browsing shelf are hardcoded in arm9.bin
     
  6. Benandanti

    Newcomer Benandanti Advanced Member

    Joined:
    May 21, 2007
    Messages:
    85
    Country:
    United Kingdom
    Is it possible to make a patch to add the downloadable content books to the rom?
     
  7. ShigeruTR

    Member ShigeruTR GBAtemp Regular

    Joined:
    Feb 10, 2007
    Messages:
    151
    Location:
    Turkey
    Country:
    Turkey
    Sorry for this

    Can moonshell support the turkish character?
    Example;
    Code:
    Çç ?? Öö ?? Üü
    If it supports anyone can send me?
     
  8. bumjeans

    Member bumjeans GBAtemp Regular

    Joined:
    Jul 28, 2007
    Messages:
    205
    Country:
    United Kingdom
    Background and font makes it very readable. If the homebrew can emulate it, I would be happy.
     
  9. ferofax

    Member ferofax End of the World

    Joined:
    Jan 26, 2009
    Messages:
    2,564
    Location:
    Philippines
    Country:
    Philippines
    seems nobody's too keen on doing anything with this... i absolutely love the way this software presents all the ebooks. my only problem is, i'm not too keen on the titles included themselves, haha.

    now, if the books were, let's say, the entire Vampire Chronicles of Anne Rice, or the Sleeping Beauty trilogy, or the whole Harry Potter series, even the Twilight sagas, well that should make quite a point, haha.

    it'd be one heck of an undertaking though. seems the text are all formatted, which means entire ebooks will probably have to be proof-read and formatted to fit the screen, much like how Alice in Wonderland (included in dsreader) have been sort of manually adjusted to fit without making the text look scattered with out of place linebreaks.

    if someone could make a patcher that could insert or replace titles, man that'd be awesome.
     
  10. Biblio

    Newcomer Biblio Newbie

    Joined:
    Dec 12, 2009
    Messages:
    3
    Country:
    France
    Hi,
    First please forgive me for my bad English...

    So this is what brings me here

    I extracted the parts of a book, the format corresponds mainly to that indicated by theli. (Thx)

    The interesting parts to recreate a book are

    i.e for Book 1

    part 00
    Bookdata (book number, author name, tittle, genre, era, etc....)

    part 02
    LittleWomen.npix (pages offset for small font) (pages 0-1 2-3 etc)
    LittleWomen.lpix (pages offset for large font) (idem)

    part 06 to 17
    LittleWomen_00.bd
    LittleWomen_01.bd (Little Women is a small book, only 2 xxxxx.bd)

    part 21
    LittleWomen.cts (chapter's data)


    With a little personal tool, i used a simple .rtf file to create a properly formatted bd file and the corresponding npix, lpix and cts files.

    The book created is working in 100CBC, but i have a little problem.

    I can not determine with precision how to cut the pages to have correct offsets in .npix or .lpix files

    - if the difference between 2 offsets is too large, then missing words when the page is turned

    - if the difference between 2 offsets is too small, then there are redundant words when the page is turned

    So we must find the correct way pages are cut in 100CBC


    What I know for small font :

    line width 170 pixels
    minimum space between 2 words 4 pixels
    rows per page 12
    no word cut on the last line of a page
    if you cut a word you must take two letters to the minimum but you must leave at least two letters.

    any idea ?
    Thx
     
  11. sfg

    Member sfg GBAtemp Regular

    Joined:
    Oct 26, 2009
    Messages:
    299
    Country:
    United States
    Great, somebody else thought of that! Unfortunately, I've only got as far as unpacking the rom so I won't be of any use but at least there's somebody working on it.
     
  12. Asaki

    Newcomer Asaki Member

    Joined:
    Mar 17, 2007
    Messages:
    26
    Country:
    United States
    I personally found DSLibris's white-on-black to be much easier on the eyes, and the font was more customizable.
     
  13. sfg

    Member sfg GBAtemp Regular

    Joined:
    Oct 26, 2009
    Messages:
    299
    Country:
    United States
    Biblio, could you also have a look at 200 Klassische Buecher? I've unpacked that too and the books have the .xml extension, although they don't seem .xml as I know it... maybe they're coded, I don't know, but it may be worth a try.
     
  14. Biblio

    Newcomer Biblio Newbie

    Joined:
    Dec 12, 2009
    Messages:
    3
    Country:
    France
    I've looked at 200 Klassische Buecher before working on 100 Classic Book Collection but it doesn't work on any PC emulator.
    For the moment, I'm still working on 100CBC... Maybe later.

    And yes those .xml files are encrypted or packed, I haven't looked further
     
  15. Biblio

    Newcomer Biblio Newbie

    Joined:
    Dec 12, 2009
    Messages:
    3
    Country:
    France
    Eurêka ! Now it's time to code
     
  16. sfg

    Member sfg GBAtemp Regular

    Joined:
    Oct 26, 2009
    Messages:
    299
    Country:
    United States
    Great job! Good luck!
     
  17. ferofax

    Member ferofax End of the World

    Joined:
    Jan 26, 2009
    Messages:
    2,564
    Location:
    Philippines
    Country:
    Philippines
    sweet! i know you guys are probably a long way from any huge progress with real outputs, but try to aim for something that can format texts for insertion into the roms. This way, people can convert what titles they want, and inject them as they see fit.
     
  18. djshok

    Newcomer djshok Member

    Joined:
    Jul 22, 2009
    Messages:
    39
    Location:
    Canada
    Country:
    Canada
    Excellent. This is relevant to my interests. I would love to see all the William Gibson cyberpunk stuff put into this. I hope you guys can get this thing working. I'd help, but I don't know much about coding. So the best I can do is cheer you guys on and hope you don't lose motivation. [​IMG]
     
  19. Aganar

    Newcomer Aganar Member

    Joined:
    Aug 1, 2009
    Messages:
    41
    Country:
    United States
    Best of luck to you guys! I'd love to get this working.
     
  20. deathking

    Member deathking GBAtemp Advanced Fan

    Joined:
    Mar 15, 2009
    Messages:
    647
    Country:
    United States
    if its too hard how bout trying it with the flipz series of book on ds?
     

Share This Page