Tutorial  Updated

How to use LayeredFS for Backup Loading + What Games Work/Don't

This thread is outdated
A lot of information in this thread is heavilly out of date.
If you have time, and have Staff permission, feel free to edit this thread and remove this statement once necessary.

Some information that needs to be addressed:
  • SX OS and Atmosphere now supports proper LayeredFS, instructions for using it has changed since this tutorial was made
  • Supported Firmware information is out of date
  • LFSKit needs to be updated to properly support non 5.x.x firmware
  • Compatability chart needs to be re-made
-PRAGMA


WARNING
  • DO NOT GO ONLINE WHEN DOING THIS (YOU WILL BE BANNED)


How to use LayeredFS for Backup Loading

Firmware Supported: ONLY 5.x.x
Use the PRAGMA LFS Kit below.

PRAGMA's LFS Kit

DOWNLOAD
SOURCE

  • Go from NOTHING in your SD Card to playing a game backup in a few clicks!
  • Decrypt .XCI -> romfs/exefs folder with main.nmpd auto edited aswell as folder's name auto renamed to donor titleid
  • Download NOTHING except LFSKit!
ENJOY!

yyTJ8rr.gif


Picking a Donor Title and getting Donor TitleIDRunning Game Backups!


    1. A donor title is the application we will run to open the backup.
      Pick a game you don't care about (Download a Demo or a free game from eShop, for example Octopath Demo)
      saves are something no one knows much about, we don't fully know where or how they are stored.
      They might overwrite the donor titles save, so seriously pick a game you DONT care about, not a game you rarely play.

    2. I also recommend picking a donor title/game combo that has been tested and reported working just so you know if YOU did something wrong or not.
    3. Find the TitleID of the donor title you chose from http://nswdb.com or http://switchbrew.org/index.php?title=Title_list/Games
      Region must be the same, choose the TitleID for the base-game NOT for the update title, even if your updated.

    1. Once again, boot into Hekate-IPL (Step 1).
    2. Enter "Launch firmware" and select "RomFS".
    3. Your now in your system's home menu.
    4. Open the Donor Title you set the TitleID of on that folder and .npmd file earlier.
    5. The game will load up flawlessly.
      If you opened the Title lets say, Fortnite, and Fortnite booted, the titleid of the folder in sd:/atmosphere/titles/{fortnitetitleid} doesnt exist, or doesnt start with 0100.
      If it gives you an error screen, either you didnt edit the main.npmd properly, or its an incompatible title/donor combo.
    To see which games work and which dont using which donor titles, look below.
    If you notice that you used a combination of Game and Donor title that isnt in the list below, post in the thread and I will add it. (look under to see what I need to add to chart).


Troubleshooting

  • Black Screen/Infinitely Loading
    Leave it for around 5 minutes then press the home button and go back into the game without closing it. Often this can do the job.
  • Freeze when Loading
    Close the game and try again, its a common occurence, you may have to try up to 4-5 times before getting it to work, sometimes you may even have to reboot between retries.
 
Last edited by PRAGMA,

Ty_

Well-Known Member
Member
Joined
May 22, 2018
Messages
399
Trophies
0
Age
44
XP
1,256
Country
United Kingdom
At some point I'll stop...but not today!

Monopoly has exactly the same result with using Fortnite, Pokemon Quest or Octopath Traveller Prologue donors. Game runs fine and saves, however if you close the game and try to re-open it the console crashes.
 
  • Like
Reactions: Assasin1990

SonicRegret

Finis Omnium
Member
Joined
Sep 5, 2015
Messages
227
Trophies
0
Location
Mother Base
XP
850
Country
United States
I researched a bit more into how saves are handled by the LayeredFS method of injection using the confirmed combination of Fire Emblem Warriors (Game) and Fortnite (Donor) [much thanks for whoever tested this combination] and I dumped my Fortnite save back on June 13th before injection and then after I injected FEW into Fortnite I re dumped the save after saving in game to see if the saves would be overwritten when I dumped them using Checkpoint. Then I found out that if you have an injected game that shares the same TitleID of the donor game, which is how checkpoint recognizes your games. It will dump both saves! So make sure to still backup all your saves and remember what games you injected in what title so you can move them onto a better format when backup loading becomes more seamless and become their own separate titles.

Proof :

 
  • Like
Reactions: RazzerX7

SonicRegret

Finis Omnium
Member
Joined
Sep 5, 2015
Messages
227
Trophies
0
Location
Mother Base
XP
850
Country
United States
I think that Yooka Laylee dump was from an eshop game, nsp i think. I don't think anyone has tested it but if you could extract and decrypt that nsp into nca then it is theoretically possible to use LayeredFS to inject and launch.
 
  • Like
Reactions: Skater4599

alkar

Well-Known Member
Member
Joined
Apr 30, 2013
Messages
329
Trophies
1
Age
94
XP
1,254
Country
United States
I tried Yooka Laylee BBB dump, it works, just extract the NSP as PFS0.

I also managed to play another eShop game with its update (Stardew Valley). You can actually play updated games, just extract the games with the updates with hactool, and it will automatically create a romfs folder with the updated game (original files + new files merged).

I didn't dump the updates myself, I've found some laying around.

PS : tried both games with Fortnite, they save

EDIT : spoke to fast, only Yooka Laylee saves it seems. Didn't play much of Stardew Valley to be sure
 
Last edited by alkar,

AtomicallyRetro

Member
Newcomer
Joined
Jun 16, 2018
Messages
17
Trophies
0
Age
34
XP
66
Country
United Kingdom
You can actually play updated games, just extract the games with the updates with hactool, and it will automatically create a romfs with the updated game (original files + new files merged).
What? Can you go into more detail on this because I'm pretty sure I've been doing this and I haven't got updated games.
 

Sprengsatz

Member
Newcomer
Joined
May 26, 2018
Messages
8
Trophies
0
Age
37
XP
139
Country
Germany
Kirby.Star.Allies > Donor Octopath Demo
Boot: black screen (kirby in right conor), crashed switch after deleted save data and start again

Kirby.Star.Allies > Kitten Squad
Boot: yes
Saves: no
 
Last edited by Sprengsatz,

alkar

Well-Known Member
Member
Joined
Apr 30, 2013
Messages
329
Trophies
1
Age
94
XP
1,254
Country
United States
What? Can you go into more detail on this because I'm pretty sure I've been doing this and I haven't got updated games.
For eShop games it's a bit harder because they need titleID key so you need to decrypt the base NCA before merging the update, for that use the --plaintext= function in hactool.

To merge an update NCA with a base NCA, use
hactool.exe -k keys.dat --basenca=yourdecryptedbaseNCA.nca --titlekey=yourpdatetitlekey (for eshop games it has one) --romfsdir="xciDecrypted/romfs" --section0dir="xciDecrypted\exefs" yourupdateNCA.nca

then you will have the updated game in romfs and exefs, merged (i checked by extracting only the updated files, they match)
 

aslk

Well-Known Member
Newcomer
Joined
Oct 30, 2013
Messages
46
Trophies
0
Age
31
XP
356
Country
Canada
When Im in HxD the number im replacing doesnt seem right. Starts with 7 and has a bunch of numbers. Is it because the xci was trimmed? Ive tried two different main.npdm files
7GoNkIo.png
.
you have to check those off exactly like that in hxd or it'll give you something that starts with a 7 and can't be edited
 

PRAGMA

Well-Known Member
OP
Member
Joined
Dec 29, 2015
Messages
2,258
Trophies
1
Location
Ireland
Website
github.com
XP
5,039
Country
Ireland
Also, PuyoPuyo Tetris works for me with Rocket League, it just keeps the blackscreen overlay unless you click home to get out of it then come back in.
Which is Donor

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

Lost Sphear (Jap version) work with Fortnite (dont know for save)
Which is donor
 

dgr1592

Well-Known Member
Member
Joined
Jan 22, 2018
Messages
128
Trophies
0
Age
32
XP
420
Country
Peru
Game: Pokken DX
Donor: Has Been Heroes (cart)
Loads: Yes
Saves: No
FW: 5.0.0

The most important is that this works on 5.0.0 too :D
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: [awaits for him to notice something] :blush::ha::evil: