[Release] Level-5 3DS Archive Tool

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Nagato, Sep 6, 2014.

  1. Nagato
    OP

    Nagato GBAtemp Advanced Fan

    Member
    531
    509
    Jul 15, 2011
    United States
    There isn't a ROM Hacking and Translations section on the 3DS subforum yet so I'm posting this here instead. I've been working on a small tool over the past few days for the archives used in Level-5's games.

    Tested games:
    - Professor Layton and the Miracle Mask
    - Professor Layton vs. Phoenix Wright: Ace Attorney
    - Weapon Shop de Omasse (Guild01)
    - Youkai Watch
    - Fantasy Life (some errors are shown but the it works for the most part)

    Source code (GPLv2): https://github.com/polaris-/3ds-xfsatool
    Binary: https://github.com/polaris-/3ds-xfsatool/releases
     


  2. Mikecrowfone

    Mikecrowfone Banned

    Banned
    250
    34
    Jul 25, 2014
    United States
    So what does this actually do?
     
  3. Nagato
    OP

    Nagato GBAtemp Advanced Fan

    Member
    531
    509
    Jul 15, 2011
    United States
    It extracts the archive files used in Level-5's 3DS games. There's still more work to be done for anyone who wants to extract the scripts or images, but it's a good first step.
     
  4. gamesquest1

    gamesquest1 Nabnut

    Member
    14,081
    9,416
    Sep 23, 2013
    extract the archives found in level 5 games i would assume
    ninja'd,
    but while im here can it repack them too?
     
  5. Nagato
    OP

    Nagato GBAtemp Advanced Fan

    Member
    531
    509
    Jul 15, 2011
    United States
    Unfortunately not. There are still some parts that I have no idea about since it was mostly guess work involved. At the very least, this tool should be able to act as some form of basic documentation on the archive formats in case someone wants to write their own packer later.
     
    gamesquest1 likes this.
  6. jocopoco

    jocopoco Advanced Member

    Newcomer
    90
    29
    Feb 13, 2014
    excuse me but how can i extract the files from roms?
     
  7. gamesquest1

    gamesquest1 Nabnut

    Member
    14,081
    9,416
    Sep 23, 2013
  8. Nagato
    OP

    Nagato GBAtemp Advanced Fan

    Member
    531
    509
    Jul 15, 2011
    United States
    I added a tool to the repository to decompile Youkai Watch's .bin script files. It decompiles them into roughly the same format as the source files were, which was figured out by looking at an uncompiled file they left in the game.

    Here's an example decompiled script:
    Warning: Spoilers inside!
     
    windwakr likes this.
  9. Heran Bago

    Heran Bago Where do puyo come from?

    Member
    3,003
    408
    Nov 6, 2005
    United States
    Foggy California
    There should be one.
     
    octopus likes this.
  10. octopus

    octopus Member New

    Member
    295
    106
    Sep 6, 2013
    Somalia
    Thanks for the tool. Could you look into _file_archive.bin from Fantasy Life, please?
     
  11. andibad

    andibad Soon™

    Member
    701
    90
    Sep 14, 2009
    Indonesia
    hospital
    most file on _file_archive.bin is seems compressed by lz11 (started with 11, DSDecmp can't decode it <.<). zmdl and ztex is seems for model and texture file. and also is containing bcsar too.

    edit : tinke can open these file <.< idk why dsdecmp and lzss cue is not working ...
     
  12. Dan_Tsukasa

    Dan_Tsukasa GBAtemp Regular

    Member
    171
    41
    Oct 14, 2014
    Tokyo Japan
    Appologese as this might count as a bit of a necro-post (though the opening post was updated a few weeks ago now), I was wondering if you've been able to figure out any of the model or texture formats for Fantasy Life at all.

    all ztex and zmdl headers everywhere, as it stands right now nothing opens these formats, be awesome if you'd made progress on this and just not posted it yet.
     
  13. Nagato
    OP

    Nagato GBAtemp Advanced Fan

    Member
    531
    509
    Jul 15, 2011
    United States
    I don't have any interest in the models or textures so I never looked at them. So I don't have useful information for you, sorry.
     
  14. cearp

    cearp the ticket master

    Member
    7,394
    4,644
    May 26, 2008
    Tuvalu
    thanks for this, i forgot about it, very cool :)
     
  15. andibad

    andibad Soon™

    Member
    701
    90
    Sep 14, 2009
    Indonesia
    hospital
    Warning: Spoilers inside!

    ztex is used RGB565, RGBA4, RGBA8, ETC1, and ETC1A4 texture format. if you ask about texture format, you should ask on this thread, since is more relevant to ask about that. btw i used these texture on my own fl save editor.
     
  16. Dan_Tsukasa

    Dan_Tsukasa GBAtemp Regular

    Member
    171
    41
    Oct 14, 2014
    Tokyo Japan
    Thankyou for the link andibad, are you saying that you converted the textures using your own fl save editor? (or the public fl save editor).

    I'm only curious how to convert those to png like you did.
     
  17. penguin673

    penguin673 Newbie

    Newcomer
    5
    0
    Sep 11, 2009
    United States
    Have you tested this on Time Travelers?
     
  18. Dan_Tsukasa

    Dan_Tsukasa GBAtemp Regular

    Member
    171
    41
    Oct 14, 2014
    Tokyo Japan
    I have.

    Can confirm it works on the .xc files in ctr\model\mc

    First you'll need to extract the ROMFS of course, after that something to extract the .cpk (there are a few free tools about for that too), after that its all folders. Though everythings compressed still so you won't be able to do anything with the files unless you're knowledgable in that area (unfortunately I'm really not, so I'm stuck here).
     
  19. ultimatetemper

    ultimatetemper GBAtemp Fan

    Member
    302
    52
    Dec 30, 2010
    Does this work on Inazuma Eleven?
    I want to extract the songs from Light/Shadow and Neppuu/Raimei so badly.
     
  20. Nagato
    OP

    Nagato GBAtemp Advanced Fan

    Member
    531
    509
    Jul 15, 2011
    United States
    If it's not listed on the list up top then I have not confirmed whether or not it'll work. The best thing you can do is extract the data yourself and try using the tool on it. If it doesn't work then you could always send me a sample file and I can look into it.