Help - Extracting content from .dat files of the ROMFS and repacking them

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by SWRosetta, Mar 10, 2017.

  1. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
    Hi guys , i am having some issues with Rom Hacking.

    Recently i got into the files of Mario Sports Supestars (CIA) and got the ROMFS folder.

    The game is enterily compressed and 99% of the files are compresed in various .dat files.

    My question is , does anybody know how to open these files to extract the contents?

    I was looking forward to possibly mod this game , specifically the voices and music.

    Here are some screenshots of the ROMFS

    [​IMG] [​IMG] [​IMG]

    I mainly am looking for the sounds of this game , which i am guessing are inside the na folder.

    Please if anybody knows how to start solving this i would appreciate it so much , i have done some research but i'm not having any luck solving this on my own.
     


  2. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
    Anybody? I see all my topics have been ignored through the years , but i would think at least 1 person could help me out.
     
  3. pikatsu

    pikatsu GBAtemp Advanced Fan

    Member
    724
    125
    Apr 16, 2014
    Argentina
    Sound files should be inside the folders. Can you post an image with the folders content?
     
    Last edited by pikatsu, Mar 11, 2017
  4. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
    Thanks for replying.

    I posted the images though. the romfs_ext is the main folder.
    Images

    i'm guessing the sounds are inside the na folder , because of the size.
     
  5. pikatsu

    pikatsu GBAtemp Advanced Fan

    Member
    724
    125
    Apr 16, 2014
    Argentina
    I am guessing that too. Can you post a view of what a hex editor tells about the file?
     
  6. Ericjwg

    Ericjwg Good

    Member
    2,866
    693
    Jul 2, 2015
    Canada
    ppl need sample file... otherwise....
     
  7. pikatsu

    pikatsu GBAtemp Advanced Fan

    Member
    724
    125
    Apr 16, 2014
    Argentina
  8. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
    Ok so the hex editor says this with the files inside the na folder.
    Hex editor

    I only get that the fs2 is somehow a SARC file and the fs1 has BGM apparently , the other one is confusing.
     
  9. pikatsu

    pikatsu GBAtemp Advanced Fan

    Member
    724
    125
    Apr 16, 2014
    Argentina
    Last edited by pikatsu, Mar 11, 2017
  10. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
    I wasnt succesful. The SARC as well as others are compressed inside the DAT file , and the fs2.dat doesnt seem to be opened with SARC tools.
     
  11. onepiecefreak

    onepiecefreak The Special One

    Member
    390
    131
    Aug 12, 2015
    Germany
    I will look into it. Currently I'm working massively on compression and archives. So we'll see how it's going.
     
    SWRosetta likes this.
  12. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
    Thank you so much for your interest.

    Do you need me to send you the files so you can check them?
     
  13. onepiecefreak

    onepiecefreak The Special One

    Member
    390
    131
    Aug 12, 2015
    Germany
    That would be very good.
     
  14. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
  15. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
  16. onepiecefreak

    onepiecefreak The Special One

    Member
    390
    131
    Aug 12, 2015
    Germany
    Ok, fs1.dat is definitly the music. I don't know how to extract it yet, but at least we know that for sure. I will come back to that file later, but since I have no knowledge of music I would only be able to extract the files but not to create a player or something like that to hear the sounds.

    fs2.dat... Yh, SARC, huh... the header would let you suggest that. But beside that it's in no case a simple archive. Also I don't the compression method if there was one in use. That will be interesting.

    fs0.dat, absolutely no idea. If that are the voices I would say the beginning is some sort of index, following the file data (so the voices maybe).
    But as stated for fs1.dat, I'm not able to write a player or something. Only extraction and repacking then.

    What I find curious is, that this is a mario game from Nintendo but doesn't seem to rely on much standard formats.
     
    SWRosetta likes this.
  17. onepiecefreak

    onepiecefreak The Special One

    Member
    390
    131
    Aug 12, 2015
    Germany
    fs2.dat is indeed a SARC archive. It's very small and seems to be a modified version. But fs2.dat only contains of 3 CRO0 files. CRO0 are some sort of DLLs for the 3DS:
    https://www.3dbrew.org/wiki/CRO0

    fs1.dat is a NUS3 archive. I found out it's the audio format of Smash Bros. 4 for example. And also found an editor for them:
    https://github.com/DanSyor/NUS3BANK-Editor

    fs0.dat is a complete riddle to me. Sry. Until I found one that helps me understand it I can't do something about it.
     
    Last edited by onepiecefreak, Mar 21, 2017
    SWRosetta likes this.
  18. SWRosetta
    OP

    SWRosetta Member

    Newcomer
    42
    10
    Mar 30, 2015
    Thanks!

    I found out about fs1.dat a while ago.

    It contains the Menu music of the game and the music samples in the collection room sound test.

    The music used in the actual game + the voices are in fs0.dat , that's why the file is so big.

    Ironically that's the one file i need and the only one i can't open out of these (i don't think fs2.dat has something important to me)
     
  19. benladen

    benladen Member

    Newcomer
    11
    0
    Feb 25, 2016
    Switzerland
    Is there a way to edit message and fonts?
     
  20. onepiecefreak

    onepiecefreak The Special One

    Member
    390
    131
    Aug 12, 2015
    Germany
    From this game? Most likely if we find out where the files are and how to read them.