1. Worldblender

    OP Worldblender GBAtemp Regular
    Member

    Joined:
    May 27, 2019
    Messages:
    250
    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.
     

    Attached Files:

    Last edited by Worldblender, Mar 13, 2021
    lordelan, nWo, Ghost92 and 4 others like this.
  2. mrgone

    mrgone old man
    Member

    Joined:
    Nov 6, 2002
    Messages:
    906
    Country:
    Germany
    And without it, it isn't? Seriously?
     
    ChaoticCinnabon and OuahOuah like this.
  3. Worldblender

    OP Worldblender GBAtemp Regular
    Member

    Joined:
    May 27, 2019
    Messages:
    250
    Country:
    United States
    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.
     
  4. mrgone

    mrgone old man
    Member

    Joined:
    Nov 6, 2002
    Messages:
    906
    Country:
    Germany
    nothing wrong with that (the following part)
     
  5. Worldblender

    OP Worldblender GBAtemp Regular
    Member

    Joined:
    May 27, 2019
    Messages:
    250
    Country:
    United States
    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.
     
  6. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08
    Member

    Joined:
    Mar 17, 2010
    Messages:
    20,669
    Country:
    Norway
    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.
     
    ChaoticCinnabon and OuahOuah like this.
  7. Worldblender

    OP Worldblender GBAtemp Regular
    Member

    Joined:
    May 27, 2019
    Messages:
    250
    Country:
    United States
    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.
     
  8. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08
    Member

    Joined:
    Mar 17, 2010
    Messages:
    20,669
    Country:
    Norway
    You can turn that off.
     
    Wolfy likes this.
  9. toxic9

    toxic9 GBAtemp Advanced Fan
    Member

    Joined:
    Dec 13, 2016
    Messages:
    699
    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
     
  10. OuahOuah

    OuahOuah GBAtemp Maniac
    Member

    Joined:
    Oct 2, 2006
    Messages:
    1,060
    Country:
    France
    If Awoo offends you,try TinWoo (main icon is a zombie,might like it if you are zombisexual or necrophilia man :)
     
  11. Worldblender

    OP Worldblender GBAtemp Regular
    Member

    Joined:
    May 27, 2019
    Messages:
    250
    Country:
    United States
    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.
     
    Last edited by Worldblender, Feb 27, 2021
  12. toxic9

    toxic9 GBAtemp Advanced Fan
    Member

    Joined:
    Dec 13, 2016
    Messages:
    699
    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, Feb 27, 2021
  13. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08
    Member

    Joined:
    Mar 17, 2010
    Messages:
    20,669
    Country:
    Norway
    20210227_103307.jpg
    ;)
     
    Worldblender likes this.
  14. iriez

    iriez GBAtemp Advanced Fan
    Member

    Joined:
    Oct 27, 2016
    Messages:
    545
    Country:
    United States
    I do not see compiled source on your release page. Can you please correct?

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

    duckbill007 GBAtemp Regular
    Member

    Joined:
    May 5, 2011
    Messages:
    299
    Country:
    Russia
    NSZ author is blawar. All other reasons are bullshit.
     
    Ghost92 likes this.
  16. averne

    averne Advanced Member
    Newcomer

    Joined:
    Jan 21, 2020
    Messages:
    98
    Country:
    France
  17. duckbill007

    duckbill007 GBAtemp Regular
    Member

    Joined:
    May 5, 2011
    Messages:
    299
    Country:
    Russia
    Just checked your code. NSZ support added totally wrong - it will produce corrupted installs and will works awfully slow.
     
  18. Worldblender

    OP Worldblender GBAtemp Regular
    Member

    Joined:
    May 27, 2019
    Messages:
    250
    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.
     
    iriez likes this.
  19. LyuboA

    LyuboA Unknown Entity
    Member

    Joined:
    Jun 1, 2018
    Messages:
    483
    Country:
    Bulgaria
    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, Feb 27, 2021
  20. iriez

    iriez GBAtemp Advanced Fan
    Member

    Joined:
    Oct 27, 2016
    Messages:
    545
    Country:
    United States
    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
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Goldleaf, support, based