Homebrew WIP My Goldleaf fork, based on 0.9, with NSZ support

Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
I'm not using software made by an insane person that has enough low-level access to brick my system, simple as that
Ok, but this fork isn't made by Blawar? It just uses a standard which he helped develop. Use whatever software you want, I like vanilla Goldleaf, but I think the NSZ is bad because Blawar argument is dumb.
 

grey72

Well-Known Member
Member
Joined
Jul 5, 2018
Messages
272
Trophies
1
XP
1,628
Country
Antarctica
Ok, but this fork isn't made by Blawar? It just uses a standard which he helped develop. Use whatever software you want, I like vanilla Goldleaf, but I think the NSZ is bad because Blawar argument is dumb.
Oh I was talking about blawar's installers and stuff. open source stuff like this I'm fine with, even xortroll's said dumb shit like he'd brick SXOS users
 
Last edited by grey72,
  • Like
Reactions: CompSciOrBust

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,240
Country
United States
With commit https://github.com/RQWorldblender/Goldleaf/commit/fe61586eaa026e1b3ac4ba63e9f8912726748d88, I have made some progress in getting NSZ files to progress a little beyond the confirm install dialog (no more invalid PFS0 errors), but installs will eventually result in a force close, with no way for me to tell what went wrong. I don't know how I can debug homebrew programs when they run on a real Switch, unfortunately. This will result in NSZ files getting their own icons on the home screens, but with a perpetual loading icon, and only deleting such titles will get rid of the icon. I wish someone would look at whatever I have done so far... :(
 

duckbill007

Well-Known Member
Member
Joined
May 5, 2011
Messages
688
Trophies
1
XP
2,470
Country
Russia
Goldleaf as well as awoo and other installers all are using bad installation algorithm from adubbz's tinfoil:
create app record, then one by one copy contents to place holder and register it. In case of any problem during installation tis algorithm leaves tons of garbage in system including rotating icon oh home screen.

correct algorithm should be following: first copy all contents to placeholders (btw thier ID can be randomly generated and not copied from contentid) only after that register placeholders (this step on non corrupted FS can not produce errors) and only after that create app record - algo used by eshop. pros of this: in case of any errors during content copy one simple call to ncmContentStorageCleanupAllPlaceHolder and system is clean without any garbage from failed install.
 
  • Like
Reactions: Worldblender

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,240
Country
United States
@Worldblender, just copy NSZ install code from goldbricks
That's what I did, but copying alone didn't work. That's why I might need to rewrite something about the NSZ installation part, but I don't know where, that's my main issue.

Goldleaf as well as awoo and other installers all are using bad installation algorithm from adubbz's tinfoil:

create app record, then one by one copy contents to place holder and register it. In case of any problem during installation tis algorithm leaves tons of garbage in system including rotating icon oh home screen.

correct algorithm should be following: first copy all contents to placeholders (btw thier ID can be randomly generated and not copied from contentid) only after that register placeholders (this step on non corrupted FS can not produce errors) and only after that create app record - algo used by eshop. pros of this: in case of any errors during content copy one simple call to ncmContentStorageCleanupAllPlaceHolder and system is clean without any garbage from failed install.

Implementing this part may be too much out of my scope, as it would require that I spend time learning how it works. Since it's likely that the official method used is unlikely to be open-source, it may make me less motivated, which means that I will likely become frustrated and potentially give up at some point, assuming that nobody else steps in to help with the code.
 
Last edited by Worldblender,

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,240
Country
United States
Update 2: My code is currently not working right, as installation will eventually cause the hosting title to crash. What a bummer to find out so late! I'll try my best to fix it, but no guarantee that I will be able to complete the fix successfully.

Update 3: It looks like it would take so long for me to fix the issues I'm having, and the stigma that the NSZ format is used mainly for piracy, makes it hard especially if I'm the only person working on this to bring NSZ support to my Goldleaf fork. Unless someone wants to step to help me solve the crashing problem, I'm very close to just giving up. The repository has now been archived/been made read-only, but I can undo this change if anyone requests it.
In the meantime, I will likely return to upstream Goldleaf, but I will use https://github.com/nicoboss/nsz to convert my NSZ files into NSP beforehand, since Goldleaf will keep NSP support.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Badcatalex @ Badcatalex:
    sony should #stopkillinggames
  • Badcatalex @ Badcatalex:
    they killed LittleBigPlanet online, which was the main core of every LBP game
  • BakerMan @ BakerMan:
    for real
  • BakerMan @ BakerMan:
    at least with them, it was because of the DDOS attacks, ubisoft was just scummy
  • BakerMan @ BakerMan:
    fuck ubisoft, and fuck activision
    +1
  • realtimesave @ realtimesave:
    Nintendo needs to release a new console, switch is getting such shitty little games lately lol it's pathetic
  • Purple_Heart @ Purple_Heart:
    Lmao a new flashcart... The Unlock Switch... I knew it's not fake xD
    +1
  • NinStar @ NinStar:
    A new consoles won't solve that problem
  • NinStar @ NinStar:
    It will actually make it worse
  • The Real Jdbye @ The Real Jdbye:
    well actually
    a new console won't do anything right now, because the games are still in development, that's why there are few games being released
  • The Real Jdbye @ The Real Jdbye:
    it won't make the games finish any faster
  • Veho @ Veho:
    2/3rds of launch titles for the Switch 2 will just be lazy ports of Switch games anyway.
  • The Real Jdbye @ The Real Jdbye:
    probably
  • The Real Jdbye @ The Real Jdbye:
    maybe mario kart 9 will be a launch title
  • The Real Jdbye @ The Real Jdbye:
    i really want a new mario kart
  • Veho @ Veho:
    What, you mean the endless stream of DLCs doesn't count?
  • Veho @ Veho:
    Why develop a new game when you can just sell season passes forever?
  • Veho @ Veho:
    I'm still on MKDS so I'm not bothered :tpi:
  • The Real Jdbye @ The Real Jdbye:
    i like the dlc tbh, i'd like a new game more
  • ZeroT21 @ ZeroT21:
    but the current version is still selling fine at full price
  • SylverReZ @ SylverReZ:
    Hello
  • ZeroT21 @ ZeroT21:
    sup
    +1
  • SylverReZ @ SylverReZ:
    @realtimesave, You seen the Unlock Switch flashcart yet?
  • K3Nv2 @ K3Nv2:
    I'll see the 19.0 update that blocks use ability to it
    +1
  • K3Nv2 @ K3Nv2:
    Lol newegg+
    Screenshot-20240423-053504-Gmail.jpg
    K3Nv2 @ K3Nv2: Lol newegg+