xbb files, how to open and/or edit them ?

Discussion in 'NDS - ROM Hacking and Translations' started by NewZealandSolid, Aug 25, 2015.

  1. NewZealandSolid
    OP

    NewZealandSolid Newbie

    Newcomer
    7
    1
    Apr 26, 2015
    Gambia, The
    Does anyone know how to open these files ? I've had a really hard time with it. There doesn't seem to be an application for it and tinke can't do anything with it.

    Unfortunately, I'm not very knowledgeable in rom hacking, so I cant figure out what to do with these files. If anyone knows how, please share it. I'd appreciate it.
     
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,168
    8,907
    Nov 21, 2005
    What game would this be? xbb is not a generic extension like bin or dat or something but unless we can look at an example of them then there is not much that can be done.

    I did a token search and apparently I pulled apart some files with the extension xbb last year some time
    https://gbatemp.net/threads/xbb-files.360831/

    I do not think there is are any tools available for that example, however it was pretty simple so you can probably get something done.
     
  3. Auryn

    Auryn GBAtemp Advanced Fan

    Member
    536
    346
    Jul 21, 2011
    Swaziland
    xbb isn't a common/standart nds file so it can be anything.
    You should post an example or at least what game you are working on so that somebody can take a look at them.
     
  4. NewZealandSolid
    OP

    NewZealandSolid Newbie

    Newcomer
    7
    1
    Apr 26, 2015
    Gambia, The
    Oh sure, I'm specifically talking about Harvest Moon : Sunshine Islands.

    Here is one such file :
     

    Attached Files:

    Last edited by NewZealandSolid, Aug 25, 2015
  5. admirzuza

    admirzuza Member

    Newcomer
    10
    3
    Aug 5, 2010
    try with this ;)
     

    Attached Files:

  6. I pwned U!

    I pwned U! GBAtemp Advanced Fan

    Member
    833
    1,116
    Jun 14, 2013
    United States
    I hope that any way of opening and editing .xbb files will also work with the similar .mbb format used in the Mario vs. Donkey Kong games.
     
  7. NewZealandSolid
    OP

    NewZealandSolid Newbie

    Newcomer
    7
    1
    Apr 26, 2015
    Gambia, The
    Thank you, but for some reason the program you uploaded doesn't work on my PC. It immediately crashes whenever I try to run it. :huh:
     
    admirzuza likes this.
  8. admirzuza

    admirzuza Member

    Newcomer
    10
    3
    Aug 5, 2010
    no idea why it doesnt work on ur PC, but here are extracted files from file u attached..hopefully it help u :)
     

    Attached Files:

    NewZealandSolid likes this.
  9. NewZealandSolid
    OP

    NewZealandSolid Newbie

    Newcomer
    7
    1
    Apr 26, 2015
    Gambia, The
    Thank you very much ! :)
     
  10. ChaosBoi

    ChaosBoi Ushiromiya Battler

    Member
    1,339
    60
    Feb 19, 2007
    United States
    California
    Ah, I feel nostalgic now all of a sudden, lol. I had actually managed to extract the image files from Harvest Moon with FAST and Gryphon93's help. Unfortunately I never did find out how to put them back together though; programming just isn't in my blood. :\
     
  11. NewZealandSolid
    OP

    NewZealandSolid Newbie

    Newcomer
    7
    1
    Apr 26, 2015
    Gambia, The
    Ok so, I've managed to extract all the .xbb files I needed and edited them, but.....how do I put the edited .nclr, .nanr, .ncer and .ncbr files back into the game ? Does anyone know ?

    I guess I'd have to package the extracted files into .xbb files again, but how do you do that ?
     
  12. Gryphon93

    Gryphon93 GBAtemp Regular

    Member
    145
    13
    Nov 30, 2008
    I've heard about a tool which can pack XBB-files again after modification. I've worked on one myself since ChaosBoi wanted one earlier, but I haven't finished it because of other projects (I'm really sorry about that ChaosBoi!).

    As far as I know, no one has figured out exactly what one of the fields, used for each file entry in an XBB file, is used for. This field is needed to really pack the files correctly, at least if you want to add files (which the game would most likely not care about anyways). I've been trying to figure it out myself, which is the main reason I didn't finish my tool. I have a few leads, but nothing worth mentioning really.

    So, the only way of repacking a XBB file to my knowledge is to replace the the old data in the XBB file for the particular file entry you want to replace. Then you have to change the appropriate fields for the file entry to reflect any changes in the file size, etc. (If I recall correctly the only field you need to change is the file size field). Of course this can be done by using a hex editor, but that is tedious. For the time being I recommend that you check out this thread: http://gbatemp.net/threads/harvest-moon-a-new-beginning-scripts-etc-in-plain-text.382612/page-7. The URL will take you to the 7th page of the thread where some tools are discussed. I think you will be able to find something there. I haven't checked out any of the tools myself.

    Good luck!