Homebrew RELEASE TinWoo Installer

Status
Not open for further replies.

HalfScoper

Well-Known Member
Member
Joined
Apr 16, 2021
Messages
548
Trophies
0
Age
84
XP
1,465
Country
Germany
I don't see it addressed anywhere, but does TinWoo yet support decompressing the new block-based compression method that eShop NSPs now frequently employ?
What are you even talking about? If you mean sparse content then yes, TinWoo can install them.
 

HalfScoper

Well-Known Member
Member
Joined
Apr 16, 2021
Messages
548
Trophies
0
Age
84
XP
1,465
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
3,076
Trophies
1
Age
56
XP
8,226
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: 71
Last edited by mrdude,

impeeza

¡Kabito!
Member
Joined
Apr 5, 2011
Messages
6,297
Trophies
3
Age
46
Location
At my chair.
XP
18,500
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
3,076
Trophies
1
Age
56
XP
8,226
@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
6,297
Trophies
3
Age
46
Location
At my chair.
XP
18,500
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
3,076
Trophies
1
Age
56
XP
8,226
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,

Deleted member 523475

Well-Known Member
Newcomer
Joined
Apr 11, 2020
Messages
70
Trophies
0
XP
368
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 Deleted member 523475,

mrdude

Developer
OP
Developer
Joined
Dec 11, 2015
Messages
3,076
Trophies
1
Age
56
XP
8,226
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

Deleted member 523475

Well-Known Member
Newcomer
Joined
Apr 11, 2020
Messages
70
Trophies
0
XP
368
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
284
Trophies
1
XP
576
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

Dat one with the Rez
Member
GBAtemp Patron
Joined
Sep 13, 2022
Messages
7,068
Trophies
3
Location
The Wired
Website
m4x1mumrez87.neocities.org
XP
21,651
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
 

ShadowbannedAllstar

Well-Known Member
Newcomer
Joined
Dec 5, 2020
Messages
55
Trophies
0
Age
44
XP
269
Country
United States
Sooo.... I love this app/plugin/whatever you want to call it; it's my default installer.

However, right after I installed the latest update, all the text is in Chinese. And I have English as the selected language.

WTF happened?
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    fluff663 @ fluff663: hello everyone