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

Giodude

GBAtemp's official rock
Member
Joined
May 17, 2015
Messages
5,094
Trophies
1
Age
23
Location
New York
XP
2,761
Country
United States
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
No that can't be it. The custom update is supposed to run at launch like a regular update.
 

PabloMK7

Red Yoshi! ^ω^
OP
Developer
Joined
Feb 21, 2014
Messages
2,604
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,037
Country
Spain
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
afaik, smash mods won't work because the way they are made. Smash has most of its data stored in a giant file called "dt" in its romfs. OnionFS won't redirect the dt file access, but the romfs file access, so it searches for the dt file. SaltySD does redirect the dt file access, so it's the only thing you can use for now.

BTW, I've just added the python script to change the path, it will be easier to do it now :)
 

YugamiSekai

Mr. Picross
Member
Joined
Dec 24, 2014
Messages
2,015
Trophies
1
Age
22
XP
2,286
Country
United States
Nice! I can probably try this with Dragon Ball Heroes UM2, since it didn't work with the original NTR CFW.

EDIT: It needs PC... so not soon
 

PabloMK7

Red Yoshi! ^ω^
OP
Developer
Joined
Feb 21, 2014
Messages
2,604
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,037
Country
Spain
Nice! I can probably try this with Dragon Ball Heroes UM2, since it didn't work with the original NTR CFW.

EDIT: It needs PC... so not soon
You only need a PC to change the redirection path, by default the path is SD:/OnionFS/<titleID>. If it didn't work with layeredfs, it won't work with this as it is just a fork of it.
 

RustInPeace

Samurai Cop
Member
Joined
Oct 13, 2014
Messages
5,942
Trophies
1
Age
31
XP
5,161
Country
United States
So it doesn't work with Sun/Moon? I tried it and it goes to the error occurred black screen with white text. Just a few hours ago I finally figured out how to get edited wild encounters onto the games with SaltySD.
 

KounkinX94

Member
Newcomer
Joined
Jul 26, 2016
Messages
21
Trophies
0
Age
30
XP
68
Country
Argentina
I've only been able to test this with a few games, could someone test with some other games and give me feedback?

Hello, i tested the plugin with Dragon Ball Heroes Ultimate Mission 2 and works fine but the loads times of the game increased a lot

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

You only need a PC to change the redirection path, by default the path is SD:/OnionFS/<titleID>. If it didn't work with layeredfs, it won't work with this as it is just a fork of it.

Yes it works with onionfs, so the layeredfs plugin of DBHUM2 must be damaged
 
Last edited by KounkinX94,

Chocobubba

Member
Newcomer
Joined
Aug 10, 2012
Messages
22
Trophies
0
Age
31
Location
Candlekeep
XP
213
Country
United States
Games I tested:

New Super Mario Bros. 2: Gold Edition - Working (NEXT Halloween Special) [NTR 3.2/USA]
Mario Kart 7 - Working - (CTGP-7) [NTR 3.2/USA] Note: Requires plugin redirection to the gamefs folder or moving the gamefs files to the root of the MK7 titleID folder, with the .lua files.
Fire Emblem Awakening - Working (Gay Awakening) [NTR 3.2/USA]
Fire Emblem Fates Special Edition - Working (Gay Fates) [NTR 3.2/USA]
 
Last edited by Chocobubba,

shinyquagsire23

SALT/Sm4sh Leak Guy
Member
Joined
Nov 18, 2012
Messages
1,977
Trophies
2
Age
26
Location
Las Vegas
XP
3,765
Country
United States
D

Deleted User

Guest
I found a glitch which update patches. The main romfs gets redirected, but the "update" romfs doesn't. Do you know how could I fix this?
@cell9 @shinyquagsire23 @delebile
They actually mount the update romfs partition with a different name for every game i've seen.
So it's arbitrary; as ShinyQuagsire said smash uses rex:/ and Pokèmon rom2:/ if i'm not mistaken.
A thing that i noticed is that usually it starts with an 'r', just like the apps which mount the sd make them start with the 's' (sdmc:/, sdck:/).
It is not absolutely a general rule, but if it can help sometimes it's functional.
 
  • Like
Reactions: PabloMK7
D

Deleted User

Guest
OnionFS is a fork of layeredfs plugin that will work with mostly any game.
It will detect the patch addresses directy from the game code, making it work without the need of a PC to build the plugin. To get the title ID of your game, just search it in google. :P

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 extended memory games.
This includes:
  • Super Smash Bros. (Won't work on N3DS, O3DS)
  • Pokemon Sun/Moon (Won't work on O3DS)
SaltySD will work with those games, use it instead.

Features:
  • Redirects romfs access to SD:/OnionFS/<titleID> by default.
  • Should work with any game that already works with layeredfs.
  • Works even if there is an update patch installed.
  • Optional custom redirection path.
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

Installing:
  1. Download the OnionFS.plg and copy it to SD:/plugin/<titleID>.
  2. Place the modified files of your game romfs into SD:/OnionFS/<titleID>.
  3. Install and boot NTR CFW (I recommend using BootNTR Selector).
  4. Enjoy. :)
Credits:

@cell9 for making NTR CFW and layeredfs plugin. :D
@Nanquitas for helping me out. :D

Do we need to rebuild a romfs for this or can we use the contents of our extractedromfs folder?
 
D

Deleted User

Guest
Extracted romfs. If the file doesn't exist in the SD, it will be loaded from the game, so you only need to put the modified files.
For confirmation. I can just FTP the contents for the extracted romfs folder or do I need the extractedromfs folder

i.e.
SD:/OnionFS/<titleID>/extractedromfs/contents

or
SD:/OnionFS/<titleID>/contents

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

Extracted romfs. If the file doesn't exist in the SD, it will be loaded from the game, so you only need to put the modified files.
Answered my own question haha. This doesn't support The Binding of Isaac rebirth currently. No matter how small or large the mod the game will get stuck on a white screen
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Slower speeds for gen4
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=1hp24nDVKvY