[How to] Create and Use a LayeredFS plugin

Discussion in '3DS - Flashcards & Custom Firmwares' started by Asia81, Jun 1, 2015.

  1. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,138
    2,565
    Nov 15, 2014
    France
    Albi


    Download the NTR Pakckage here:
    http://www13.zippyshare.com/v/OG29vyMr/file.html
    (Inluded the NTR 3.4 with NTR Viewer)

    Be sure to have DevKitPro installed:
    http://tinyurl.com/DevKitPro

    Put DecryptedExeFS.bin in workdir.
    Rename it exefs.bin
    Run BuildLayeredFS.bat.
    Enter TitleID.
    Enter Nothing.

    Create 2 new folders:
    - 1 at the root of your SD
    - 1 in the plugin folder.

    Rename them with your TitleID.
    Put the plg file in the TitleID folder (the one in your plugin folder).

    For the folder at the root:
    TitleID = RomFS
    Files in romfs should be in your TitleID folder instead.

    I used Pokémon Alpha Sapphire as an example.

    Be sure to like the video if that helped you :)
     
    Last edited by Asia81, Apr 15, 2016
  2. gamesquest1

    gamesquest1 Nabnut

    Member
    GBAtemp Patron
    gamesquest1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    14,150
    9,504
    Sep 23, 2013
    you dont even need to rebuild, just put the raw files on your SD card, so you can literally include JUST the edited files....so for an example, lets just say i edited world 1-1 on NSMB2, basically i would make my layeredFS plugin for NSMB2, and put that in the folder X:/plugin/000400000007AF00/layeredFS.plg

    next i would make a new folder in the root and include any modded files (in their correct directory path)....so if i edited course 1-1 i would make this directory
    X:/000400000007AF00/Course/ and drop the new 1-1.sarc in there, when you load up the game that will will be used in place of the original file meaning it can be used even with retail carts
     
    DarkFlare69 likes this.
  3. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,138
    2,565
    Nov 15, 2014
    France
    Albi
    But how can I make the good plugin for layeredFS ?

    I want just to try some hack in AlphaSapphire, without rebuild the romfs/game...
     
    DarkFlare69 likes this.
  4. cell9

    cell9 GBAtemp Regular

    Member
    225
    629
    Nov 14, 2014
    Switzerland
    DarkFlare69 likes this.
  5. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,138
    2,565
    Nov 15, 2014
    France
    Albi
    Yeah, just tried and it's working fine.
    Thanks !
     
  6. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,138
    2,565
    Nov 15, 2014
    France
    Albi
    @cell9

    We can only use a custom romfs or we can also do it for exefs ?
    I have a custom banner
     
  7. gamesquest1

    gamesquest1 Nabnut

    Member
    GBAtemp Patron
    gamesquest1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    14,150
    9,504
    Sep 23, 2013
    it only does romFS as the plugin is only loaded upon choosing the game,(and afaik there is no way to apply any sort of exefs mods using it either)
     
    DarkFlare69 likes this.
  8. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,138
    2,565
    Nov 15, 2014
    France
    Albi
    ok thank you
     
  9. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,744
    2,602
    Dec 8, 2014
    United States
    Ohio
    Thanks for these good answers, I was wondering the same, too. But... I downloaded NTR-CFW 1.0 so I can use it on my Old 3DS (I heard the 2.0+ doesn't work on Old 3DS) and I can't seem to properly patch GW22.dat. @cell9 What's the point of making users patch it themselves? Why not just give us the patched file instead of making people do it themselves? Is it illegal or something?

    @gamesquest1 you seem knowledgeable, too, can you answer any of these if cell9 isn't online
     
  10. gamesquest1

    gamesquest1 Nabnut

    Member
    GBAtemp Patron
    gamesquest1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    14,150
    9,504
    Sep 23, 2013
    its against GBATemp rules to host the GW files (as they received a DMCA notice pretty much as soon as gateway was released as the FW contains part of the 3DS FW inside it), as NTR 1.0 was based on the gateway launcher only a patch to be applied to the gateway launcher could be hosted/linked to on GBAtemp itself.....if you look around on different sites you will probably be able to find a pack containing everything you need already set up
     
  11. froggestspirit

    froggestspirit D/P/Pt Demix Guy

    Member
    1,113
    546
    Jul 28, 2011
    United States
    Can anyone confirm Pokemon X/Y US working with layeredFS? It would always crash on me, even without custom files
     
  12. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,138
    2,565
    Nov 15, 2014
    France
    Albi
  13. LinkmstrYT

    LinkmstrYT ( ͡° ͜ʖ ͡°)

    Member
    1,467
    807
    Dec 16, 2013
    United States
    You wanted to see where I live? You stalker...
    I'm very confused. I don't know how to create a layeredfs.plg. I looked at the English manual, but I just don't understand how to do all of that. ;m;
     
  14. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,138
    2,565
    Nov 15, 2014
    France
    Albi
  15. Dennis G

    Dennis G GBAtemp Advanced Fan

    Member
    671
    205
    Jan 4, 2016
    Netherlands
    that thread is gone, could you give me the structure? what i have is root/plugin/game id/layeredfs.plg
    where do i put the edited files and what would those be, like star sapphire has the a folder edited on romfs, so would i make root/game id/a/edited files
    or would i do root/game id/romfs/a/edited files
    or would i put it in root/plugin/game id/ bla bla bla?? please help me out :D
     
  16. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,744
    2,602
    Dec 8, 2014
    United States
    Ohio
    The edited files go in the folder you specified when building your layeredfs plugin. Put everything in the same file structure as the actual romfs
     
  17. Dennis G

    Dennis G GBAtemp Advanced Fan

    Member
    671
    205
    Jan 4, 2016
    Netherlands
    Yes but how do i know what structure it has on the game card. i can't see that, that's why i ask. different programs give me different file names, i get romfs, and decrypted romfs. and a folder or a bin file, i don't know which of those is the real one as it is on the cartridge, and someone just tell me what folder should be the first ?
     
  18. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,744
    2,602
    Dec 8, 2014
    United States
    Ohio
    The folder is what you need to follow.
    For example, mario kart 7 has a folder called "Course"
    To play custom tracks i would place them inside of the "Course" folder

    1. Rip ROM
    2. Extract RomFS using 3ds lazy

    You could do both those using braindump iirc
     
  19. Dennis G

    Dennis G GBAtemp Advanced Fan

    Member
    671
    205
    Jan 4, 2016
    Netherlands
    i Have braindump dumps and i know how to decrypt but the question is what folder layout does pokemon use, i don't know if romfs = a folder, or just a result or decryption. i need to know how to layout this stuff for the pokemon games :s i know how to do mario kart and smash bro's but just can't get pokemon running
     
  20. SenorContento

    SenorContento Newbie

    Newcomer
    9
    1
    Apr 12, 2016
    United States
    Somewhere on Earth...
    The RomFS binary contains the files you want to edit inside of it. I use the below commands in order to edit my games (I pulled them straight from my text document).

    Steps.txt

    You will be interested in the part that says "To Extract RomFS and ExeFS Bin to Folders".