
I've searched but couldn't find anything regarding this, does someone know if there is a "XCI Scrubber" (like the good old WiiScrubber) available or in the works?



Literally impossible unless the nca contents are decrypted, then repacked into the xci.
You cannot compress encrypted contents.

This is how you get the used space of a XCI:
Read value at 0x118, multiply this value by 0x200, and add 0x200.
You get the used space, then beyond this value you have unused data filled with FFFFFFF...
Here you go, now someone with a simple programming knowledge can make a simple XCI trimmer![]()
that's the padding, remove it and you'll have your XCI trimmed, now idea if it'll work with Xecuter XCI loaderWhat if they use some kind of padding?
The free space might be somewhere inbetween.

that's the padding, remove it and you'll have your XCI trimmed, now idea if it'll work with Xecuter XCI loader
no, it's just full of FFFFFFF, nothing else.But that way you'll remove free space at the end of the image.
By padding single files, there might be unused sectors somewhere between the files / or at the beginning.

no, it's just full of FFFFFFF, nothing else.
Read switchbrew if you want more info.

I wrote a small tool to cut off the unused sectors at the end of xci files. Thanks to the idea of @Arck
Download:
https://drive.google.com/open?id=1e32CGB3pzFXvua7b-oeiau0syW18lgJn
Before cutting, the tool checks if the sectors are really unused (filled with FF).
It refuses to cut, if it finds any data after the gamefiles.
I don't know if those xci-files would run in a backuploader.
But the process is reversable. The tool can be used to restore those sectors.
Hadn't much time to put this together.
It might crash now and then![]()

Danke! You might want to create a new thread for this.
edit:
I did a quick test with Cartoon Network Battle Crashers (because it's a small game when it's rarred).
Rarred: 411MB
Cut-XCI: 526MB
I'm still able to unpack the Cut-XCI with hactool just fine.
It seems there's still some progress to be made since it "missed out" on 115MB of unused space, but great first attempt![]()
Thanks!
Yes, compression would still be better.
This app just cuts space at the end of the xci files. There might still be free sectors somewhere inbetween.
But there's a chance that these cut files would run in a backuploader.
Man, you are incredible! Thank you!I wrote a small tool to cut off the unused sectors at the end of xci files. Thanks to the idea of @Arck
Download:
https://drive.google.com/open?id=1O6lbkio-I2PNPgJWQdc5_od7UiV14GlM
Before cutting, the tool checks if the sectors are really unused (filled with FF).
It refuses to cut, if it finds any data after the gamefiles.
I don't know if those xci-files would run in a backuploader.
But the process is reversable. The tool can be used to restore those sectors.
Hadn't much time to put this together.
It might crash now and then
EDIT / Small update:
Don't write to source-file in uncut-mode.
Copy to a destination-file instead (as it does in cut-mode
It might work right out of the box.Man, you are incredible! Thank you!
Now it's up to TX to make their backup loader working with trimmed files.

