Homebrew [Release] OnionFS for NTR CFW - LayeredFS plugin fork that works with any game.

PabloMK7

Red Yoshi! ^ω^
OP
Developer
Joined
Feb 21, 2014
Messages
2,616
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,172
Country
Spain
OnionFS - v1.4

OnionFS is a fork of layeredfs plugin made by cell9 that redirects romfs and code access to the SD card, useful for game mods. It works with any game, even if there is an update patch installed. For romfs redirection, you only need to put in your SD card the modified files, not the whole romfs directory nor a romfs.bin/game.romfs file.

Compatibility:

All the games that work with layeredfs should be working with OnionFS.
Since this uses NTR CFW to be loaded, it won't work with some games.
This includes:
  • Super Smash Bros. (Won't work on N3DS, O3DS)
SaltySD will work with that game, use it instead.

Features:
  • Redirects romfs access. (optional)
  • Redirects code.bin. (optional)
  • Applies ips patches. (optional)
  • Should work with any game that already works with layeredfs.
  • Works even if there is an update patch installed, the update files will also be redirected.
  • Optional custom redirection path.
Default redirection paths:
  • Extracted romfs (only modified files): "SD:/OnionFS/<titleID>/romfs/"
  • code.bin: "SD:/OnionFS/<titleID>/code.bin"
  • code.ips: "SD:/OnionFS/<titleID>/code.ips"
Use 3dsdb to get the game TID.

Changing SD redirection path:

To change the redirection path, use the included python script:
Code:
OnionFS_pathchange.py <plg file path> <redirection path>
For example: SD:/folder/subfolder/
Code:
OnionFS_pathchange.py OnionFS.plg folder/subfolder
In the above example, the new paths would be SD:/folder/subfolder/romfs and SD:/folder/subfolder/code.bin

Debug mode:

If you are having issues, you can use OnionFS_debug.plg to output the plugin log to a file: SD:/OnionFS.log. The information given by the plugin may help you fixing what's wrong. It's not recommended to use the debug plugin for normal use as it may be slower.

Installing:
  1. Download the OnionFS.plg and copy it to SD:/plugin/<titleID>.
  2. (Optional) Place only the modified files in their respective folders into SD:/OnionFS/<titleID>/romfs/.
  3. (Optional) Place your custom code.bin at SD:/OnionFS/<titleID>/code.bin.
  4. (Optional) Place the code.ips patch at SD:/OnionFS/<titleID>/code.ips.
  5. Install and boot NTR CFW (I recommend using BootNTR Selector).
  6. Enjoy. :)
Credits:

@cell9 for making NTR CFW and layeredfs plugin. :)
@Nanquitas for helping me a lot. :)
Luma CFW for the ips patching code. :)

 
Last edited by PabloMK7,

PabloMK7

Red Yoshi! ^ω^
OP
Developer
Joined
Feb 21, 2014
Messages
2,616
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,172
Country
Spain
I've only been able to test this with a few games, could someone test with some other games and give me feedback?

So with this you can change the game files without packaging the romfs right? Just like saltysd
Yes, but remember that since this is a plugin, you need NTR CFW.
 
Last edited by PabloMK7,
  • Like
Reactions: erman1337

hacksn5s4

Banned!
Banned
Joined
Aug 12, 2015
Messages
4,332
Trophies
0
XP
1,322
Country
i would not say any game on the old 3ds it won't work with smm sun and moon smash bros and monster hunter you can use salty sd on sun and moon and smash though
 

RyDog

Lazy Animal Crossing hacks
Member
Joined
Apr 26, 2015
Messages
1,698
Trophies
1
Age
24
XP
2,850
Country
United States
i would not say any game on the old 3ds it won't work with smm sun and moon smash bros and monster hunter you can use salty sd on sun and moon and smash though
if your going to b making rom hacks i think its common knowldge know that ntr doesnt work on o3ds and never will u can use luma for romfs redirection if u use the latest commit

yes, this was written in his version of English on purpose.
 
Last edited by RyDog,

HolyHobo

That guy you see around but don't know
Member
Joined
Oct 2, 2016
Messages
203
Trophies
0
Age
26
Location
US
XP
806
Country
United States
Nice! Trying it out right now :P

--------------------- MERGED ---------------------------

Tried it with smash bros.. didn't work :( any idea why?
 

PabloMK7

Red Yoshi! ^ω^
OP
Developer
Joined
Feb 21, 2014
Messages
2,616
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,172
Country
Spain
Nice! Trying it out right now :P

--------------------- MERGED ---------------------------

Tried it with smash bros.. didn't work :( any idea why?
Smash bros will never work with it with an O3DS because it is an extended memory game and the console reboots before it being launched causing NTR CFW to be unloaded. I'll add that to the OP later.
 
Last edited by PabloMK7,

HolyHobo

That guy you see around but don't know
Member
Joined
Oct 2, 2016
Messages
203
Trophies
0
Age
26
Location
US
XP
806
Country
United States
Smash bros will never work with it because it is an extended memory game and the console reboots before it being launched causing NTR CFW to be unloaded. I'll add that to the OP later.
Even with a new 3ds? I'm still able to access the NTRcfw menu within the game
 
Last edited by HolyHobo,

HolyHobo

That guy you see around but don't know
Member
Joined
Oct 2, 2016
Messages
203
Trophies
0
Age
26
Location
US
XP
806
Country
United States
Well maybe onionfs isn't working since the files are packed, but i see no reason why saltysd didn't. Maybe the file paths were wrong?

I used the file paths in the mods I downloaded so I don't think it was the file paths... maybe I forgot to to run something before booting up smash or something along those lines
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
    rqkaiju2 @ rqkaiju2: i like physical media because it actually feels like you own it. thats why i plan on burning...