ROM Hack LayeredFS faster Loading?

ehnoah

Well-Known Member
OP
Member
Joined
Oct 9, 2012
Messages
918
Trophies
0
XP
781
Country
Netherlands
So currently we're translating Story of Season,

sadly it has over 500 Files which makes the loading super slow when using the mod as LayeredFS. Is there any way to make the game load fast again?
Like pack the RomFS to an NSP again?
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,297
Trophies
3
XP
12,074
Country
Poland
Like pack the RomFS to an NSP again?
This would limit your release only to pirates and potentially ban anyone who tries to use it.

You can't do much about it. This is how access to physical drive for hundreds of files works instead of blob. It got much slower in recent releases because faster method was causing issues with games containing tens of thousands files.
 
Last edited by masagrator,

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,890
Trophies
2
XP
29,455
Country
United Kingdom
Can layeredfs use a romfs file instead of 'loose' files? I feel like it can, but I haven't checked. If so, and if that works out faster, you could include instructions for users who want to repack a romfs file themselves?
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,297
Trophies
3
XP
12,074
Country
Poland
Can layeredfs use a romfs file instead of 'loose' files? I feel like it can, but I haven't checked. If so, and if that works out faster, you could include instructions for users who want to repack a romfs file themselves?
I don't remember any tool that can pack files to romfs.bin (only that you can extract it). So I don't think so. But I will ask on ReSwitched if layeredfs supports romfs blob.
Ofc this would mean that there must be introduced priority if blob and loose files have the same file. And I didn't see anything about this issue.
 
Last edited by masagrator,

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,890
Trophies
2
XP
29,455
Country
United Kingdom
I don't remember any tool that can pack files to romfs.bin (only that you can extract it). So I don't think so. But I will ask on ReSwitched if layeredfs supports romfs blob.
Ofc this would mean that there must be introduced priority if blob and loose files have the same file. And I didn't see anything about this issue.
I feel like I remember reading that the priority is loose files first, then romfs.bin, then the game's original romfs - however I can't find any layeredfs details in the docs on github so idk where I read this or if I dreamt it.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,297
Trophies
3
XP
12,074
Country
Poland
Okay, found it.

  • fs.mitm will parse the base RomFS image for a game, a RomFS image located at /atmosphere/titles/<title ID>/romfs.bin, and all loose files in /atmosphere/titles/<title ID>/romfs/, and merge them together into a single RomFS image.
  • When merging, loose files are preferred to content in the SD card romfs.bin image, and files from the SD card image are preferred to those in the base image.
Now only how to pack to romfs.bin
 
  • Like
Reactions: hippy dave

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    What's the same thing?
    +1
  • The Real Jdbye @ The Real Jdbye:
    before or after a hit
    +1
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
    +1
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
    +1
  • Veho @ Veho:
    It's a tradeoff.
    +1
  • The Real Jdbye @ The Real Jdbye:
    no i mean, before a hit is after the previous hit
    +1
  • The Real Jdbye @ The Real Jdbye:
    if you keep them well enough fed, it's the same thing
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    By the power of Florida Man, I have the power!!! *Lifts up meth pipe* Meth Man!!! lol
  • BakerMan @ BakerMan:
    Guys, I just learned my little brother is in the hospital because he had a seizure last night.
  • cearp @ cearp:
    Sorry to hear that BakerMan
    +2
  • BakerMan @ BakerMan:
    Just found out he's doing alright, doing a lot of complaining too, rightfully so. Who wouldn't complain after having a seizure and being hospitalized?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Glad he is OK and complaining is cool :)
    +1
  • K3Nv2 @ K3Nv2:
    Yeah been there had that no fun
    +1
  • K3Nv2 @ K3Nv2:
    They'll give him sleep studies eegs and possibly one week hospital stay
    +1
  • BakerMan @ BakerMan:
    I hope it's not a week.
  • K3Nv2 @ K3Nv2:
    It's standard so doctors can get a idea about what's going on
  • BakerMan @ BakerMan:
    understood
  • BakerMan @ BakerMan:
    well, i'm glad he seems to be doing fine, and ig i'm going to start spewing goofy shit again
  • BakerMan @ BakerMan:
    Update: Turns out he's epileptic
  • K3Nv2 @ K3Nv2:
    Get a 2nd opinion run mris etc they told me that also
  • Psionic Roshambo @ Psionic Roshambo:
    Also a food allergy study would be a good idea
  • K3Nv2 @ K3Nv2:
    Turns out you can't sprinkle methamphetamine on McDonald's French fries
  • ZeroT21 @ ZeroT21:
    they wouldn't be called french fries at that point
    ZeroT21 @ ZeroT21: they wouldn't be called french fries at that point