Homebrew RELEASE TinWoo Installer

Adventurer

Well-Known Member
Newcomer
Joined
Jan 25, 2016
Messages
71
Trophies
0
Age
35
XP
156
Country
United States

HalfScoper

Well-Known Member
Member
Joined
Apr 16, 2021
Messages
481
Trophies
0
Age
83
XP
1,102
Country
Germany
Sparse content and block compression are different things.
Good thing we have duckbill to correct our mistakes lol (no offense meant I was being honest).

I just know of the sparse content titles, I never called them block compressed titles, I assumed it was a term that passed me by, I didn't want to add to the confusion, sorry. :)
That being said, TinWoo, aswell as DBI/Tinfoil/Tinleaf can install sparse content without problems, I don't know about block compression if the person who asked really meant that.

Care to ellaborate what this block compression feature is? Because I use DBI.
I don't want to hijack the thread though :P
 

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
2,472
Trophies
1
Age
55
XP
6,565
The new AtmoXL-Titel-Installer is released and correct the problem installing NSZ compressed with zstd 1.5.0 and newer, by now only DBI and AtmoXL-Titel-Installer works fine.
Thanks for the heads-up, I'll add those fixes into Tinwwo when I get around to it. I'm a bit busy with other stuff at the moment, but there's not much needing done in the code so I'll do it this week at some point.
Post automatically merged:

Here you go, changes added installing NSZ compressed with zstd 1.5.0 and newer - but I didn't test as I've not got time for now.
 

Attachments

  • tinwoo.zip
    5.7 MB · Views: 27
Last edited by mrdude,

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
3,517
Trophies
3
Age
45
Location
At my chair.
XP
9,007
Country
Colombia
Thanks for the heads-up, I'll add those fixes into Tinwwo when I get around to it. I'm a bit busy with other stuff at the moment, but there's not much needing done in the code so I'll do it this week at some point.
Post automatically merged:

Here you go, changes added installing NSZ compressed with zstd 1.5.0 and newer - but I didn't test as I've not got time for now.
 

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
2,472
Trophies
1
Age
55
XP
6,565
@impeeza, I used nsz_v4.1.0_win64_portable to compress an NSP to NSZ using these settings:

AtTaSXA.png


Now using DBI to install the compressed nsz it installs fine and plays. I then tried installing with tinwoo/atmoxl/tinfoil and all of these failed. I could install OK, so I dumped the installed nsp with nxdumptool and then extracted the nsp on my computer. What I found is that the main nca file is corrupt, so that's why it doesn't work - the header is fine but the sections are all corrupt. Also when you install with dbi it takes far longer to install, probably because this works (extracts the NCA) properly.
I think it's down to the nca_writer.cpp file, processChunk function or maybe the write function, so that code will need modded to be compatible. I then tried using Tinfoil to install some nsp's from a shop - I think these must have also been nsz files that were downloaded as these also failed to play even though they installed - down to corruption in the when extracting.

So the bottom line is to use DBI installer as that works great, maybe this will get fixed at some point in tinwwo/atmosxl but you'll need to wait for now.
 
Last edited by mrdude,

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
3,517
Trophies
3
Age
45
Location
At my chair.
XP
9,007
Country
Colombia
@impeeza, I used nsz_v4.1.0_win64_portable to compress an NSP to NSZ using these settings:

AtTaSXA.png


Now using DBI to install the compressed nsz it installs fine and plays. I then tried installing with tinwoo/atmoxl/tinfoil and all of these failed. I could install OK, so I dumped the installed nsp with nxdumptool and then extracted the nsp on my computer. What I found is that the main nca file is corrupt, so that's why it doesn't work - the header is fine but the sections are all corrupt. Also when you install with dbi it takes far longer to install, probably because this works (extracts the NCA) properly.
I think it's down to the nca_writer.cpp file, processChunk function or maybe the write function, so that code will need modded to be compatible. I then tried using Tinfoil to install some nsp's from a shop - I think these must have also been nsz files that were downloaded as these also failed to play even though they installed - down to corruption in the when extracting.

So the bottom line is to use DBI installer as that works great, maybe this will get fixed at some point in tinwwo/atmosxl but you'll need to wait for now.
bad thing, thanks a lot for the troubleshooting, will let forward it to the issue on GitHub. again thanks.
 
  • Like
Reactions: peteruk

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
2,472
Trophies
1
Age
55
XP
6,565
bad thing, thanks a lot for the troubleshooting, will let forward it to the issue on GitHub. again thanks.
No worries, apparently it's something to do with libzstd needing updating to a newer version, I can't get that to compile for devkitpro just now. Also see here for more info: https://github.com/dezem/AtmoXL-Titel-Installer/pull/36

I reported here, let's see if there's any replies:
https://github.com/nicoboss/nsz/issues/120

Update, it seems block compression doesn't work in AtmoXL or Tinwoo - so turn that off when compressing to nsz and it works. Also if using Tinfoil and a store, there seems to be issues with that as well for now so hopefully that will get fixed soon. Tinfoil keeps telling me it's updating but never does, even though I download the newest version from it's webpage....go figure.

It would seem this code in python: https://github.com/nicoboss/nsz/blob/master/nsz/BlockDecompressorReader.py needs to be converted into c++ then added into nca_writer.cpp, so that it can read the compressed blocks and then decompress them before writing. At least that's what I imagine needs to be done for block decompressing. Probably I've have a look on the pc and first and try writing a small app to do that so I can understand how this block compression works - however I don't really have time to do that just now.
 
Last edited by mrdude,

UnderDev

Well-Known Member
Newcomer
Joined
Apr 11, 2020
Messages
47
Trophies
0
XP
236
Country
Canada
Also if using Tinfoil and a store, there seems to be issues with that as well for now so hopefully that will get fixed soon.
I've installed several new updates this week and had no issues, i also don't see any issues reported with any of the stores in their respective channels.
Post automatically merged:

The new AtmoXL-Titel-Installer is released and correct the problem installing NSZ compressed with zstd 1.5.0 and newer, by now only DBI and AtmoXL-Titel-Installer works fine.
It looks like tinfoil has also supported it for at least a week, make sure to let it auto update or install latest version manually (auto update won't work if you use the applet nro).
 
Last edited by UnderDev,

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
2,472
Trophies
1
Age
55
XP
6,565
I've installed several new updates this week and had no issues, i also don't see any issues reported with any of the stores in their respective channels.
Post automatically merged:


It looks like tinfoil has also supported it for at least a week, make sure to let it auto update or install latest version manually (auto update won't work if you use the applet nro).
Block compression installations only got fixed last night in tinfoil 15.0 R9. It was reported yesterday that it was broken. Anyhow you should update tinfoil to the latest now if you use block compression. DBI also has this feature. Tinwoo and AtmoXL don't support block compression for now.
 
  • Like
Reactions: peteruk and impeeza

UnderDev

Well-Known Member
Newcomer
Joined
Apr 11, 2020
Messages
47
Trophies
0
XP
236
Country
Canada
Block compression installations only got fixed last night in tinfoil 15.0 R9. It was reported yesterday that it was broken. Anyhow you should update tinfoil to the latest now if you use block compression. DBI also has this feature. Tinwoo and AtmoXL don't support block compression for now.
I was responding to impeeza regarding latest zstandard. I don't use and I'm not aware of anyone publicly using block compressed NSZs, so i wasn't impacted by that issue. I don't use the .nro version of Tinfoil so it automatically updated for me to the latest version anyway, though.
 
  • Like
Reactions: impeeza

testing123

Well-Known Member
Member
Joined
May 7, 2009
Messages
234
Trophies
1
XP
467
Country
United States
I was advised to check for drivers to get Tinwoo to connect to NSUSBLOADER.

Here's the issue:

I'm using the official Nintendo usb to switch cord.

There seems to be zero communication between NSUSBLOADER and Tinwoo.

Tinwoo just says NO USB CONNECTION DETECTED.

I may not be using NSUploader right, but I click Awoo, usb, filename, upload, then "upload to NS"

And then nothing happens until it says "failed" under status.

NS error log:

[ INFO ] Start
[ FAIL ] Can't open NS USB device: ERROR_NOT_SUPPORTED
[ INFO ] End



Thanks in advance.
 

SylverReZ

(She/They) GBATemp's™ Sylveon Supreme
Member
Joined
Sep 13, 2022
Messages
3,147
Trophies
2
Location
Everywhere
Website
m4x1mumrez87.neocities.org
XP
11,491
Country
United Kingdom
I was advised to check for drivers to get Tinwoo to connect to NSUSBLOADER.

Here's the issue:

I'm using the official Nintendo usb to switch cord.

There seems to be zero communication between NSUSBLOADER and Tinwoo.

Tinwoo just says NO USB CONNECTION DETECTED.

I may not be using NSUploader right, but I click Awoo, usb, filename, upload, then "upload to NS"

And then nothing happens until it says "failed" under status.

NS error log:

[ INFO ] Start
[ FAIL ] Can't open NS USB device: ERROR_NOT_SUPPORTED
[ INFO ] End



Thanks in advance.
You've got your answer here: https://gbatemp.net/threads/switch-noob-paradise-ask-questions-here.488277/post-10017113
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    K3N1 @ K3N1: https://youtube.com/shorts/PArWUK0WyDQ?feature=share