1. Nagato

    OP Nagato GBAtemp Advanced Fan
    Member

    Joined:
    Jul 15, 2011
    Messages:
    535
    Country:
    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/mhvuze/3ds-xfsatool (mirror)
     
    Last edited by Nagato, Feb 22, 2020
  2. Mikecrowfone

    Mikecrowfone Banned
    Banned

    Joined:
    Jul 25, 2014
    Messages:
    250
    Country:
    United States
    So what does this actually do?
     
  3. Nagato

    OP Nagato GBAtemp Advanced Fan
    Member

    Joined:
    Jul 15, 2011
    Messages:
    535
    Country:
    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
    Moderator

    Joined:
    Sep 23, 2013
    Messages:
    15,028
    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

    Joined:
    Jul 15, 2011
    Messages:
    535
    Country:
    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

    Joined:
    Feb 13, 2014
    Messages:
    90
    Country:
    excuse me but how can i extract the files from roms?
     
  7. gamesquest1

    gamesquest1 Nabnut
    Moderator

    Joined:
    Sep 23, 2013
    Messages:
    15,028
  8. Nagato

    OP Nagato GBAtemp Advanced Fan
    Member

    Joined:
    Jul 15, 2011
    Messages:
    535
    Country:
    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:
    Code:
    LAST_UPDATE_DATE_TIME "2012/12/20 15:10:22";
    LAST_UPDATE_USER "Nishida Kensuke";
    LAST_UPDATE_MACHINE "FPLN1214";
    TEXT_INFO_BEGIN 3;
    TEXT_INFO 58205923, 0, "さぁ ケータくん!{"%02d"/"current_area"}\nでは[妖怪/ようかい][探/さが]しとまいりましょうか!";
    TEXT_INFO 676689184, 0, "うん! [今日/きょう]はどこに[行/い]こうか?";
    TEXT_INFO 827212897, 0, "[妖怪/ようかい]はいたるところに[潜/ひそ]んでいます!\nとりあえず[外/そと]に[出/で]てみましょう!";
    TEXT_INFO_END;
    TEXT_CONFIG_BEGIN 3;
    TEXT_CONFIG 58205923, 1, 0;
    TEXT_CONFIG 676689184, 1, 1;
    TEXT_CONFIG 827212897, 1, 0;
    TEXT_CONFIG_END;
    TEXT_WASHA_BEGIN 13;
    TEXT_WASHA 0, 1277834628;
    TEXT_WASHA 1, 2720289960;
    TEXT_WASHA 2, 1661952619;
    TEXT_WASHA 3, 2322384734;
    TEXT_WASHA 4, 3849629636;
    TEXT_WASHA 5, 697118499;
    TEXT_WASHA 6, 4108050209;
    TEXT_WASHA 7, 336089853;
    TEXT_WASHA 8, 2212137845;
    TEXT_WASHA 9, 2457050962;
    TEXT_WASHA 10, 4251711432;
    TEXT_WASHA 11, 1684186738;
    TEXT_WASHA 12, 325424868;
    TEXT_WASHA_END;
     
    windwakr likes this.
  9. Heran Bago

    Heran Bago Where do puyo come from?
    Member

    Joined:
    Nov 6, 2005
    Messages:
    3,088
    Country:
    United States
    There should be one.
     
    octopus likes this.
  10. octopus

    octopus Custom Title
    Member

    Joined:
    Sep 6, 2013
    Messages:
    391
    Country:
    Somalia
    Thanks for the tool. Could you look into _file_archive.bin from Fantasy Life, please?
     
  11. andibad

    andibad Soon™
    Member

    Joined:
    Sep 14, 2009
    Messages:
    701
    Country:
    Indonesia
    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

    Joined:
    Oct 14, 2014
    Messages:
    178
    Country:
    United States
    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

    Joined:
    Jul 15, 2011
    Messages:
    535
    Country:
    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 瓜老外
    Developer

    Joined:
    May 26, 2008
    Messages:
    8,266
    Country:
    Tuvalu
    thanks for this, i forgot about it, very cool :)
     
  15. andibad

    andibad Soon™
    Member

    Joined:
    Sep 14, 2009
    Messages:
    701
    Country:
    Indonesia
    [​IMG]

    [​IMG]

    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

    Joined:
    Oct 14, 2014
    Messages:
    178
    Country:
    United States
    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

    Joined:
    Sep 11, 2009
    Messages:
    5
    Country:
    United States
    Have you tested this on Time Travelers?
     
  18. Dan_Tsukasa

    Dan_Tsukasa GBAtemp Regular
    Member

    Joined:
    Oct 14, 2014
    Messages:
    178
    Country:
    United States
    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

    Joined:
    Dec 30, 2010
    Messages:
    320
    Country:
    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

    Joined:
    Jul 15, 2011
    Messages:
    535
    Country:
    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.
     
Loading...

Hide similar threads Similar threads with keywords - [Release], Archive, Level