Hacking [How to] Create and Use a LayeredFS plugin

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,646
Trophies
3
Age
29
XP
3,446
Country
France


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,

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,237
@cell9 Maybe you can help me.

I was wondering what is this ?
I can use a RomHack file (like a romfs.bin rebuilded) put it in my MicroSD card, and use a retail card to have RomHack on this retail card and use this romfs.bin file ?
Or is something else i don't understand ?
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
 
  • Like
Reactions: DarkFlare69

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,646
Trophies
3
Age
29
XP
3,446
Country
France
But how can I make the good plugin for layeredFS ?

I want just to try some hack in AlphaSapphire, without rebuild the romfs/game...
 
  • Like
Reactions: DarkFlare69

DarkFlare69

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,736
Country
United States
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
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,237
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
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
 

Dennis G

Well-Known Member
Member
Joined
Jan 4, 2016
Messages
673
Trophies
0
Age
31
XP
436
Country
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
 

DarkFlare69

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,736
Country
United States
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
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
 

Dennis G

Well-Known Member
Member
Joined
Jan 4, 2016
Messages
673
Trophies
0
Age
31
XP
436
Country
Netherlands
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
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 ?
 

DarkFlare69

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,736
Country
United States
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 ?
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
 

Dennis G

Well-Known Member
Member
Joined
Jan 4, 2016
Messages
673
Trophies
0
Age
31
XP
436
Country
Netherlands
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
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
 

SenorContento

Member
Newcomer
Joined
Apr 12, 2016
Messages
9
Trophies
0
Age
26
Location
Somewhere on Earth...
Website
senorcontento.github.io
XP
53
Country
United States
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

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).

To Decrypt .3ds
---------------
* Copy .3ds to D9Game folder of SD Card
* Run Decrypt9WIP
* Click Game Decryptor Options
* Click NCCH/NCSD Decryptor
* Wait for it to finish decrypting all .3ds in D9Game folder
* Copy .3ds files back to pc (or run ctrtool directly on SD Card)

To Extract RomFS and ExeFS to Bin
---------------------------------
ctrtool -p --romfs=DecryptedRomFS.bin CTR-P-AQEE.3ds
ctrtool -p --exefs=DecryptedExeFS.bin CTR-P-AQEE.3ds

To Extract RomFS and ExeFS Bin to Folders
-----------------------------------------
ctrtool -t exefs --exefsdir=./exe DecryptedExeFS.bin --decompresscode
ctrtool -t romfs --romfsdir=./romfs DecryptedRomFS.bin

Editing the Game
----------------
http://wololo.net/2015/10/28/tutorial-hack-pack-3ds-rom-use-hans/

You will be interested in the part that says "To Extract RomFS and ExeFS Bin to Folders".
 
  • Like
Reactions: Jax_Ripper

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    He said he had 3 different doctors apt this week, so he prob there. Something about gerbal extraction, I don't know.
    +1
  • ZeroT21 @ ZeroT21:
    bored, guess i'll spread more democracy
  • LeoTCK @ LeoTCK:
    @K3Nv2 one more time you say such bs to @BakerMan and I'll smack you across the whole planet
  • K3Nv2 @ K3Nv2:
    Make sure you smack my booty daddy
    +1
  • LeoTCK @ LeoTCK:
    telling him that my partner is luke...does he look like someone with such big ne
    eds?
  • LeoTCK @ LeoTCK:
    do you really think I could stand living with someone like luke?
  • LeoTCK @ LeoTCK:
    I suppose luke has "special needs" but he's not my partner, did you just say that to piss me off again?
  • LeoTCK @ LeoTCK:
    besides I had bigger worries today
  • LeoTCK @ LeoTCK:
    but what do you know about that, you won't believe me anyways
  • K3Nv2 @ K3Nv2:
    @BigOnYa can answer that
  • BigOnYa @ BigOnYa:
    BigOnYa already left the chat
  • K3Nv2 @ K3Nv2:
    Biginya
  • BigOnYa @ BigOnYa:
    Auto correct got me, I'm on my tablet, i need to turn that shit off
  • K3Nv2 @ K3Nv2:
    With other tabs open you perv
  • BigOnYa @ BigOnYa:
    I'm actually in my shed, bout to cut 2-3 acres of grass, my back yard.
  • K3Nv2 @ K3Nv2:
    I use to have a guy for that thanks richard
  • BigOnYa @ BigOnYa:
    I use my tablet to stream to a bluetooth speaker when in shed. iHeartRadio, FlyNation
  • K3Nv2 @ K3Nv2:
    While the victims are being buried
  • K3Nv2 @ K3Nv2:
    Grave shovel
  • BigOnYa @ BigOnYa:
    Nuh those goto the edge of the property (maybe just on the other side of)
  • K3Nv2 @ K3Nv2:
    On the neighbors side
    +1
  • BigOnYa @ BigOnYa:
    Yup, by the weird smelly green bushy looking plants.
  • Xdqwerty @ Xdqwerty:
    Water park was quite fun
    Xdqwerty @ Xdqwerty: Water park was quite fun