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

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
276
Trophies
0
Age
25
XP
1,491
Country
United States
After doing a system upgrade to 11.0.1 and Atmosphere 0.18.1 with Mesosphere on my emuMMC, I have initially been disappointed in all of my title installers, them being Goldbricks, Goldleaf, and Tinleaf. The lattermost produced a system crash with an error code of 2168-0002. After switching my patches with the ones at https://github.com/eXhumer/patches, I got Goldleaf to successfully load. However, I wanted to have NSZ support for convenience purposes, but with no easy way for me to downgrade, I have been left with almost no choice but to fork Goldeaf and patch in the NSZ support from Goldbricks (https://gbatemp.net/threads/goldbricks-nsp-nsz-title-installer.550869/, and at https://github.com/blawar/goldbricks). I grew tired of Goldbrick not being updated for more than a year, so I had to take action in order to not lose NSZ support while staying on the latest firmware versions. With my coding skills, I will be idle and powerless no more! :yayswitch:

Git repository of my fork, based on 0.9: :arrow: https://github.com/RQWorldblender/Goldleaf

I set up devkitA64 in order to perform compilations, with the instructions at https://switchbrew.org/wiki/Setting_up_Development_Environment. Though the code will now compile successfully, the patched code still remains untested as of this writing. Once I test out the code changes, I will give updates on the NSZ support.

More importantly, the upstream author (XorTroll) has no plans to include the NSZ support found in this fork upstream, due to the format potentially turning this software into a piracy tool. Do not open issues or pull requests, or ask the upstream author to include this NSZ support. It will certainly be rejected.

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.

Attached is a precompiled zipped build of this fork, for those who can't or don't want to compile stuff.
 

Attachments

  • Goldleaf.nro.zip
    4.9 MB · Views: 294
Last edited by Worldblender,

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
276
Trophies
0
Age
25
XP
1,491
Country
United States
And without it, it isn't? Seriously?
XorToll's reasoning behind including NSP support but not NSZ support is because NSP is an official format used not only by Nintendo but also some homebrew ships in NSP format. NSZ, however, is mainly used with pirated games, and I have yet to hear of any homebrew that uses the NSZ format. Hence why NSZ is viewed as a piracy-enabling format.
I just follow along with the upstream author's reasoning, so that's why I was left with no choice but to make this fork. I will be keeping it in sync whenever I can, but it may not happen on every upstream commit.
 

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
276
Trophies
0
Age
25
XP
1,491
Country
United States
nothing wrong with that (the following part)
You mean the existence of my fork? That was my only choice left if I wanted to guarantee myself a FOSS title installer that also supports USB disk drives, firmware versions 11.0.0 and later, and NSZ files, all in one. Once I get around to a successful compilation, I'll be doing some testing to make sure everything works, without significant errors.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
21,968
Trophies
3
Location
Space
XP
11,168
Country
Norway
XorToll's reasoning behind including NSP support but not NSZ support is because NSP is an official format used not only by Nintendo but also some homebrew ships in NSP format. NSZ, however, is mainly used with pirated games, and I have yet to hear of any homebrew that uses the NSZ format. Hence why NSZ is viewed as a piracy-enabling format.
I just follow along with the upstream author's reasoning, so that's why I was left with no choice but to make this fork. I will be keeping it in sync whenever I can, but it may not happen on every upstream commit.
NSZ is just a tool though. Tools are not inherently good or evil, it's how you use them. And besides. Why shouldn't homebrew devs be using nsz anyway? If it allows the same installable file to be smaller, it's a win win. There's no reason it has to be used only for piracy, anything could benefit from it.
After doing a system upgrade to 11.0.1 and Atmosphere 0.18.1 with Mesosphere on my emuMMC, I have initially been disappointed in all of my title installers, them being Goldbricks, Goldleaf, and Tinleaf. The lattermost produced a system crash with an error code of 2168-0002. After switching my patches with the ones at https://github.com/eXhumer/patches, I got Goldleaf to successfully load. However, I wanted to have NSZ support for convenience purposes, but with no easy way for me to downgrade, I have been left with almost no choice but to fork Goldeaf and patch in the NSZ support from Goldbricks (https://gbatemp.net/threads/goldbricks-nsp-nsz-title-installer.550869/, and at https://github.com/blawar/goldbricks). I grew tired of Goldbrick not being updated for more than a year, so I had to take action in order to not lose NSZ support while staying on the latest firmware versions. With my coding skills, I will be idle and powerless no more! :yayswitch:

Git repository of my fork, based on 0.9: :arrow: https://github.com/RQWorldblender/Goldleaf

Note that I have not yet released binary packages of any kind, as I have just set up devkitA64 in order to perform compilations, with the instructions at https://switchbrew.org/wiki/Setting_up_Development_Environment. Hence the patched code remains untested as of this writing. Once I test out the code changes, I will give updates on the NSZ support.

More importantly, the upstream author (XorTroll) has no plans to include the NSZ support found in this fork upstream, due to the format potentially turning this software into a piracy tool. Do not open issues or pull requests, or ask the upstream author to include this NSZ support. It will certainly be rejected.
You probably could have just used Awoo, but thanks for the effort anyways.
 

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
276
Trophies
0
Age
25
XP
1,491
Country
United States
NSZ is just a tool though. Tools are not inherently good or evil, it's how you use them. And besides. Why shouldn't homebrew devs be using nsz anyway? If it allows the same installable file to be smaller, it's a win win. There's no reason it has to be used only for piracy, anything could benefit from it.

You probably could have just used Awoo, but thanks for the effort anyways.

That's what I think; the file format is not inherently bad or evil, but it's that the upstream author doesn't want to be seen as supporting piracy (and possibly result in Nintendo taking legal action). That part I do understand well.

Thank you for suggesting me Awoo Installer, but as I looked on https://github.com/Huntereb/Awoo-Installer, I have been greeted by pervasive imagery of anime females, just from the screenshots alone. They're not the things I'm really interested in (but my avatar implies that I am strongly interested in anime males instead, one sign of my homosexuality), and most (professional) software, including FOSS ones, never feature them prominemtly.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
21,968
Trophies
3
Location
Space
XP
11,168
Country
Norway
That's what I think; the file format is not inherently bad or evil, but it's that the upstream author doesn't want to be seen as supporting piracy (and possibly result in Nintendo taking legal action). That part I do understand well.

Thank you for suggesting me Awoo Installer, but as I looked on https://github.com/Huntereb/Awoo-Installer, I have been greeted by pervasive imagery of anime females, just from the screenshots alone. They're not the things I'm really interested in (but my avatar implies that I am strongly interested in anime males instead, one sign of my homosexuality), and most (professional) software, including FOSS ones, never feature them prominemtly.
You can turn that off.
 
  • Like
Reactions: Wolfy

toxic9

Well-Known Member
Member
Joined
Dec 13, 2016
Messages
812
Trophies
0
Age
42
XP
1,205
Country
Great work.
I've been pulling one feature request to the original authors, but they just don't care:

Goldleaf 0.9 are able to view/mount save files.

Could you work on a way to backup/restore those save files to the sd card please?

This is the feature I've been looking for a long time on Goldleaf.

Thanks
 

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
276
Trophies
0
Age
25
XP
1,491
Country
United States
You can turn that off.
Where can I find that setting?
If Awoo offends you,try TinWoo (main icon is a zombie,might like it if you are zombisexual or necrophilia man :)
Thanks, but zombies are also things I'm not interested in. I can handle plain and generic if I can't get what I want.
Great work.
I've been pulling one feature request to the original authors, but they just don't care:

Goldleaf 0.9 are able to view/mount save files.

Could you work on a way to backup/restore those save files to the sd card please?

This is the feature I've been looking for a long time on Goldleaf.

Thanks
Send me a link to your code, issue, or pull request, and I'll look at it. If it's good, I'll merge it into my fork. Your code if it exists could be seen by some people as supporting piracy, and the upstream author is trying to reduce the likelihood that Nintendo takes legal action. However, I'm not experienced on Nintendo Switch coding, despite having experience from elsewhere, be warned.
There does exist other tools that can backup save files, like Checkpoint or Edizon.
 
Last edited by Worldblender,

toxic9

Well-Known Member
Member
Joined
Dec 13, 2016
Messages
812
Trophies
0
Age
42
XP
1,205
Country
I'm trying to get rid of those tools.
goldleaf is what it is, with or without save backup ability.
If I had the code done, I would not need anyone else to merge it on goldleaf's!
like you borrow code for nsz, you can borrow code for saves from checkpoint?
 
Last edited by toxic9,

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
21,968
Trophies
3
Location
Space
XP
11,168
Country
Norway
Where can I find that setting?

Thanks, but zombies are also things I'm not interested in. I can handle plain and generic if I can't get what I want.

Send me a link to your code, issue, or pull request, and I'll look at it. If it's good, I'll merge it into my fork. Your code if it exists could be seen by some people as supporting piracy, and the upstream author is trying to reduce the likelihood that Nintendo takes legal action. However, I'm not experienced on Nintendo Switch coding, despite having experience from elsewhere, be warned.
There does exist other tools that can backup save files, like Checkpoint or Edizon.
20210227_103307.jpg

;)
 
  • Like
Reactions: Worldblender

iriez

Well-Known Member
Member
Joined
Oct 27, 2016
Messages
549
Trophies
0
Age
47
Website
www.xbins.org
XP
1,830
Country
United States
After doing a system upgrade to 11.0.1 and Atmosphere 0.18.1 with Mesosphere on my emuMMC, I have initially been disappointed in all of my title installers, them being Goldbricks, Goldleaf, and Tinleaf. The lattermost produced a system crash with an error code of 2168-0002. After switching my patches with the ones at https://github.com/eXhumer/patches, I got Goldleaf to successfully load. However, I wanted to have NSZ support for convenience purposes, but with no easy way for me to downgrade, I have been left with almost no choice but to fork Goldeaf and patch in the NSZ support from Goldbricks (https://gbatemp.net/threads/goldbricks-nsp-nsz-title-installer.550869/, and at https://github.com/blawar/goldbricks). I grew tired of Goldbrick not being updated for more than a year, so I had to take action in order to not lose NSZ support while staying on the latest firmware versions. With my coding skills, I will be idle and powerless no more! :yayswitch:

Git repository of my fork, based on 0.9: :arrow: https://github.com/RQWorldblender/Goldleaf

Note that I have not yet released binary packages of any kind, as I have just set up devkitA64 in order to perform compilations, with the instructions at https://switchbrew.org/wiki/Setting_up_Development_Environment. Hence the patched code remains untested as of this writing. Once I test out the code changes, I will give updates on the NSZ support.

More importantly, the upstream author (XorTroll) has no plans to include the NSZ support found in this fork upstream, due to the format potentially turning this software into a piracy tool. Do not open issues or pull requests, or ask the upstream author to include this NSZ support. It will certainly be rejected.

I do not see compiled source on your release page. Can you please correct?

https://github.com/RQWorldblender/Goldleaf/releases/tag/0.9
 

Worldblender

Well-Known Member
OP
Member
Joined
May 27, 2019
Messages
276
Trophies
0
Age
25
XP
1,491
Country
United States
Just checked your code. NSZ support added totally wrong - it will produce corrupted installs and will works awfully slow.
Thank you for telling me ahead of time, it was my best guess. I'm not really experienced on this stuff. However, I made comments at https://github.com/blawar/goldbricks/issues/7, and the upstream author has mentioned about going to release a new version of Goldbricks soon.
I do not see compiled source on your release page. Can you please correct?

https://github.com/RQWorldblender/Goldleaf/releases/tag/0.9

Because I haven't reached the compilation part, and now learned that my result is not done right.
 
  • Like
Reactions: iriez

LyuboA

Unknown Entity
Member
Joined
Jun 1, 2018
Messages
534
Trophies
0
XP
907
Country
Bulgaria
After doing a system upgrade to 11.0.1 and Atmosphere 0.18.1 with Mesosphere on my emuMMC, I have initially been disappointed in all of my title installers, them being Goldbricks, Goldleaf, and Tinleaf. The lattermost produced a system crash with an error code of 2168-0002. After switching my patches with the ones at https://github.com/eXhumer/patches, I got Goldleaf to successfully load. However, I wanted to have NSZ support for convenience purposes, but with no easy way for me to downgrade, I have been left with almost no choice but to fork Goldeaf and patch in the NSZ support from Goldbricks (https://gbatemp.net/threads/goldbricks-nsp-nsz-title-installer.550869/, and at https://github.com/blawar/goldbricks). I grew tired of Goldbrick not being updated for more than a year, so I had to take action in order to not lose NSZ support while staying on the latest firmware versions. With my coding skills, I will be idle and powerless no more! :yayswitch:

Git repository of my fork, based on 0.9: :arrow: https://github.com/RQWorldblender/Goldleaf

Note that I have not yet released binary packages of any kind, as I have just set up devkitA64 in order to perform compilations, with the instructions at https://switchbrew.org/wiki/Setting_up_Development_Environment. Hence the patched code remains untested as of this writing. Once I test out the code changes, I will give updates on the NSZ support.

More importantly, the upstream author (XorTroll) has no plans to include the NSZ support found in this fork upstream, due to the format potentially turning this software into a piracy tool. Do not open issues or pull requests, or ask the upstream author to include this NSZ support. It will certainly be rejected.

i get this error

make[3]: *** [/opt/devkitpro/devkitA64/base_rules:14: ui_Application.o] Error 1
make[2]: *** [Makefile:99: build] Error 2
make[2]: Leaving directory '/c/projects/Goldleaf/Plutonium/Plutonium'
make[1]: *** [Makefile:9: all] Error 2
make[1]: Leaving directory '/c/projects/Goldleaf/Plutonium'
make: *** [Makefile:5: all] Error 2

can you please just post compiled nro
 
Last edited by LyuboA,

iriez

Well-Known Member
Member
Joined
Oct 27, 2016
Messages
549
Trophies
0
Age
47
Website
www.xbins.org
XP
1,830
Country
United States
Thank you for telling me ahead of time, it was my best guess. I'm not really experienced on this stuff. However, I made comments at https://github.com/blawar/goldbricks/issues/7, and the upstream author has mentioned about going to release a new version of Goldbricks soon.


Because I haven't reached the compilation part, and now learned that my result is not done right.

If you could please make a release thread when this is function (instead of replying here) so that others can be notified I can get this added to xbins repo monitoring.

Thanks
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    KenniesNewName @ KenniesNewName: Sweet blue man group is performing in my city this weekend