Atmosphere CFW updated to 1.5.4, adds support for loading mods for Tears of the Kingdom

dashjkfas.png

SciresM has just released a new version of Atmosphere, bringing the project to version 1.5.4. Currently, it's in pre-release, which is standard for a new release, and will become a full release pending any initial bug reports. The main change that this new update offers is that it adds an experimental feature that lets users load layeredfs and romfs mods for The Legend of Zelda: Tears of the Kingdom, and also for Fire Emblem: Engage.

Experimental new functionality was implemented to prevent crashing when building romfs for certain games with obscene file counts.
  • This includes both Fire Emblem: Engage (~190000 files), and The Legend of Zelda: Tears of the Kingdom (~300000) files.
  • The solution involved adding functionality to ams.mitm/pm to dynamically steal memory from the application (and system) pool as needed when the games have romfs mods.
    • No memory is taken, and there is no cost to this functionality when playing without mods (or with overrides disabled).
  • The Legend of Zelda: Tears of the Kingdom is currently the absolute worst case game, requiring ~48 MB of memory to build a romfs image to play with mods.
    • Right now, the memory is sourced as follows: 32 MB (base ams.mitm heap), 10 MB (stolen from application pool), 8 MB (dynamically stolen from system pool).
    • This is 50 MB, which allows a little overhead in the worst case (prevents crashing due to exhausting the heap for other allocations in ams.mitm).
    • Zelda is remarkably sensitive to memory being stolen from the application pool, tolerating no more than 16 MB on 1.0.0 and 12 MB on 1.1.0. I have chosen to steal 10 MB, to be safe, for now.
      • This may break on a future game update, but I will fix it if and when that happens. There is no perfect solution; the game simply requires too much memory to support mods flawlessly, and I am forced to compromise.

You can grab this update from the official Atmosphere GitHub page, linked below.

:arrow: Source
 

Blakejansen

Well-Known Member
Member
Joined
Aug 17, 2021
Messages
614
Trophies
0
Age
40
XP
1,556
Country
United States
Is there a homebrew application that updates Atmosphere without having to use a computer? Can't remember if AIO updates atmosphere.
 

CameronCataclysm

Well-Known Member
Member
Joined
Sep 17, 2018
Messages
190
Trophies
0
Age
30
Location
North Carolina
XP
1,116
Country
United States
Is there a homebrew application that updates Atmosphere without having to use a computer? Can't remember if AIO updates atmosphere.
They do exist, however it is not recommended. From personal use, something always goes wrong down the line. Plenty of threads out there regarding these matters.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,313
Trophies
3
XP
12,109
Country
Poland
Atmosphere may get a "cease and desist" next, considering how protective Nintendo is about Zelda lately.
You should catch up with last years of Atmosphere development before stating such things. Atmosphere excludes Nintendo from standard license. Nintendo is fully aware of Atmosphere existence, implemented to HOS some solutions from Atmosphere-libs (they were then deleted from Atmosphere-libs). Atmosphere devs and contributors documented and sent many system flaws that were later patched by N.

You don't want to piss people that are so much deep into your operating system. One of them may hide some huge software exploit and will disclose it when time is right (preferably at EOL if Nintendo will be nice).

Nintendo is protective about EMULATING Zelda. DMCAing Atmosphere will do absolutely nothing to stop emulation scene.
The same thing was with Lockpick - DMCAing it did absolutely nothing to stop piracy on real hardware as extracted keys are not needed to install pirated content.
 
Last edited by masagrator,

linuxares

The inadequate, autocratic beast!
Global Moderator
Joined
Aug 5, 2007
Messages
13,386
Trophies
2
XP
18,315
Country
Sweden
You should catch up with last years of Atmosphere development before stating such things. Atmosphere excludes Nintendo from standard license. Nintendo is fully aware of Atmosphere existence, implemented to HOS some solutions from Atmosphere-libs (they were then deleted from Atmosphere-libs). Atmosphere devs and contributors documented and sent many system flaws that were later patched by N.

You don't want to piss people that are so much deep into your operating system. One of them may hide some huge software exploit and will disclose it when time is right.

Nintendo is protective about EMULATING Zelda. DMCAing Atmosphere will do absolutely nothing to stop emulation scene.
And the authenticity about the previous DMCA on Lockpick is still up in the air.
 

bobmcjr

Well-Known Member
Member
Joined
Apr 26, 2013
Messages
1,156
Trophies
1
XP
3,245
Country
United States
Seems like it's reaching a point where it would make more sense for Atmosphere to build and store a romfs as a file on the microSD when launching a game, and memory map that as needed?

I'm assuming there's some limitation or complexity that prevents this at this time.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,313
Trophies
3
XP
12,109
Country
Poland
Seems like it's reaching a point where it would make more sense for Atmosphere to build and store a romfs as a file on the microSD when launching a game, and memory map that as needed?
mmap is not supported by libnx. It could be since FW 3.0.0, but nobody wants to do it it seems.

https://github.com/switchbrew/libnx/issues/503

Can't say about performance issues with this solution.
 

bobmcjr

Well-Known Member
Member
Joined
Apr 26, 2013
Messages
1,156
Trophies
1
XP
3,245
Country
United States
mmap is not supported by libnx. It could be since FW 3.0.0, but nobody wants to do it it seems.

https://github.com/switchbrew/libnx/issues/503

Can't say about performance issues with this solution.
Interesting. Rather big syscall to be missing out on for so long.

I feel like performance shouldn't be that awful? Given games are evidently natively read from "slow" cartridges and microSDs just fine?
 

fvig2001

Well-Known Member
Member
Joined
Aug 21, 2006
Messages
943
Trophies
1
XP
2,969
Country
Philippines
So this is not related to your issue, since this was an issue with Atmosphere, not game itself.
It is.

Experimental new functionality was implemented to prevent crashing when building romfs for certain games with obscene file counts. BG mods can have a shit ton of files when modded like crazy
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • RedColoredStars @ RedColoredStars:
    LTT is a noob
  • RedColoredStars @ RedColoredStars:
    Guy doesnt know wtf hes talking about half the time
  • realtimesave @ realtimesave:
    @SylverReZ that reminds me that my friend sells CRTs he gets cheap or free for hundreds of dollars. people are dumb
    +1
  • RedColoredStars @ RedColoredStars:
    And is incredibly annoying.
  • realtimesave @ realtimesave:
    man I just washed my shoes and they look exactly the same as before I washed them :|
  • realtimesave @ realtimesave:
    luckily they didn't fall apart
  • RedColoredStars @ RedColoredStars:
    Some CRTs are very much worth the price
  • RedColoredStars @ RedColoredStars:
    i used to go out to the recycling center every couple weeks and look at the crts and other electronics people would drop off. Usually screens were broken or severely scratched from being tossed around. Did find a good one here and there, but never anything like a 1080i widescreen crt.
  • RedColoredStars @ RedColoredStars:
    Or a good contition 40" Sony Trini that weighs 300 lbs. lol
  • RedColoredStars @ RedColoredStars:
    Literally 300 lbs. lolol
  • BigOnYa @ BigOnYa:
    I have a few of those boat anchors in my basement I tried giving away but no one wanted them, So anyone close to Columbus, Ohio area that wants them, (26", 2x 19") please come get, for free.
  • RedColoredStars @ RedColoredStars:
    Dont know anyone wants those smaller ones. Most are after larger sizes and the kinda top of the line models
  • RedColoredStars @ RedColoredStars:
    Motion handling and input lag on those things destroy plasmas, led, oled
  • realtimesave @ realtimesave:
    I had some really nice CRTs I should've kept
  • realtimesave @ realtimesave:
    now I have all lcd
  • realtimesave @ realtimesave:
    one in particular I regret getting rid of oh well :|
  • realtimesave @ realtimesave:
    the Sonys and stuff I don't care about
  • realtimesave @ realtimesave:
    and used LCD are hard to sell I can imagine.. not worth much
  • realtimesave @ realtimesave:
    @SylverReZ where do u lurk
  • a_username_that_isnt_cool @ a_username_that_isnt_cool:
    Is it piracy if it was released for free? Not in my opinion, but I also think it's not piracy if buying it isn't owning it, and it's not piracy if you can't buy it from the original creators anymore.
  • K3Nv2 @ K3Nv2:
    Free release can have loopholes where they still make money through ads
    +1
  • Xdqwerty @ Xdqwerty:
    sigh
    Xdqwerty @ Xdqwerty: sigh