XCI-Cutter tool (Windows)

main.png


XCI-Cutter


Features:

- cuts off (trims) unused sectors
- optionally cuts in pieces (splits)
- batch processing


This tool reads the XCI-Header to determine the full cartridge-size and the actually used space.

By default, the tool checks if the sectors after the used space/gamedata are really unused (filled with FF).
It refuses to cut, if it finds any data in that area (this check can be bypassed by using "Fast Mode").

The tool can be used to restore these FF-sectors and expand XCI-files back to the full cartridge size.


@ChronoX_ compiled a list with actual datasizes over at:
https://wiki.gbatemp.net/wiki/XCI-Cutter


UPDATE 20.06.2018:
Trimmed and split games are now fully compatible with SX OS!

!!! Important Note: !!!
Dumps that were split with a version before v2.4.2,
have to be joined/uncut using that OLDER version.
And afterwards split again using the NEW version.
!!!


Download:
https://github.com/Destiny1984/XCI-Cutter/releases


Changelog:

v2.4.2:
- changed partsize to make split-dumps compatible with SX OS

v2.4.1:
- Bugfix release
fixed splitting which was broken in v2.4

v2.4:
- added "fast mode" to batch processing
(Direct trim of inputfiles / no safety checks)

v2.2:
Changes to batchprocessing:
- added recursive folder scanning (thanks to @RapidRaid aka getraid)
- add files and folders by Drag&Drop

v2.0:
- added batch processing with optional inputfile deletion

v1.5:
- fixed some exceptions
- implemented optional splitting

v1.0:
Initial Release
 
Last edited by MHDestination,

nmkd

Well-Known Member
Member
Joined
Oct 25, 2016
Messages
554
Trophies
0
Age
26
XP
775
Country
Germany
I just checked the sizes of installed games and they're all close to trimmed xci sizes posted above. Most are above probably because of patches but they are well below the original dump sizes. So I'm guessing Nintendo already trims the digital copies.

You don't seem to understand how this works...

Nintendo does not trim the games, because "untrimmed" is their original state.

The reason cart dumps are that big is because the carts are dumped, not the games are copied.

So if a game is is 11 GB, it still dumps the whole card, filling the other 5 GB of the 16 GB cart with 1111111111... (FFFFFF... in hex).
 

MHDestination

Well-Known Member
OP
Member
Joined
Sep 12, 2009
Messages
392
Trophies
0
Location
Under your bed
XP
888
Country
Germany
Once it's possible I'll gladly share a game dump for science to you. Preferably BotW or Mario Odyssey since they are likely the most common games to have a cart for at this point.

That would be great!

Actually i won't need the full dumps. The first 28,5Kb (29184 bytes, including header + cert) should be enough.
 
Last edited by MHDestination,
  • Like
Reactions: Maximilious

Jaimy

Well-Known Member
Member
Joined
Dec 2, 2016
Messages
135
Trophies
0
Age
43
XP
417
Country
United States
You don't seem to understand how this works...

Nintendo does not trim the games, because "untrimmed" is their original state.

The reason cart dumps are that big is because the carts are dumped, not the games are copied.

So if a game is is 11 GB, it still dumps the whole card, filling the other 5 GB of the 16 GB cart with 1111111111... (FFFFFF... in hex).

I mean...you know what I mean. Digital versions are real sizes with no fat while physical copies have padding, so dumps of physical copies also have padding. If you trim that you should ideally get the digital eShop equivalent. Yeah the process is other way round than what I said earlier but the concept is same.
 

Reploid

Well-Known Member
Member
Joined
Jan 20, 2010
Messages
2,830
Trophies
2
XP
6,279
Country
Serbia, Republic of
Would be cool if this tool would also get splitter for fat32, but I guess that won't be possible until xcuter OS is out. I mean, who knows how this OS reads the splitted fies
 

Maximilious

Whistles a familiar tune
Member
Joined
Nov 21, 2014
Messages
2,571
Trophies
1
XP
1,855
Country
United States
Would be cool if this tool would also get splitter for fat32, but I guess that won't be possible until xcuter OS is out. I mean, who knows how this OS reads the splitted fies

Xecuter said how to name the files if they are split. I've read a few members here state we can use the numerous file splitting programs available on the web. Obviously no way to test right now though until the SX is available to us.
 

Reploid

Well-Known Member
Member
Joined
Jan 20, 2010
Messages
2,830
Trophies
2
XP
6,279
Country
Serbia, Republic of
Xecuter said how to name the files if they are split. I've read a few members here state we can use the numerous file splitting programs available on the web. Obviously no way to test right now though until the SX is available to us.
Yes, if xcuter gonna go most user friendly way
 

vickdu31

Well-Known Member
Member
Joined
Nov 14, 2016
Messages
228
Trophies
0
Age
27
XP
353
Country
Doesn't Wii Scrubber work a little different?
XCI-Cutter doesn't replace garbage data with compressable data, XCI-Cutter trims blank data.
It's more like 3DS ROM trimmers.

In my opinion developer has full right to name created solution however he wants.
It was just a suggestion, of course he can name it the way he wants, it was my nostalgia moment ..
 

MHDestination

Well-Known Member
OP
Member
Joined
Sep 12, 2009
Messages
392
Trophies
0
Location
Under your bed
XP
888
Country
Germany
Would be cool if this tool would also get splitter for fat32, but I guess that won't be possible until xcuter OS is out. I mean, who knows how this OS reads the splitted fies

I've implemented splitting. Will upload the new version tomorrow.
I am currently at work (yeah and posting on GBAtemp... i know ^^)

Splitting has to be considered experimental for now.
I don't know if SX OS expects a specific part-size.
I've hardcoded it to 4GB (To be precise: 4.294.967.296 -1 bytes).
 
Last edited by MHDestination,

Reploid

Well-Known Member
Member
Joined
Jan 20, 2010
Messages
2,830
Trophies
2
XP
6,279
Country
Serbia, Republic of
I've implemented splitting. Will upload the new version tomorrow.
I am currently at work (yeah and posting on GBAtemp... i know ^^)

Splitting has to be considered experimental for now.
I don't know if SX OS expects a specific part-size.
I've hardcoded it to 4GB (To be precise: 4.294.967.296 -1 bytes).
Well, figures this tool is super experimental, since we don't have a way to test it~
 

xxxacexxx

Well-Known Member
Newcomer
Joined
Mar 14, 2009
Messages
50
Trophies
0
XP
441
Country
United States
I wrote a small tool to cut off the unused sectors at the end of xci files. Thanks to the idea of @Arck

View attachment 124299


This tool reads the XCI-Header to determine the full cartridge-size and the actually used space.

Before cutting, it checks if the sectors after the used space/gamedata are really unused (filled with FF).
It refuses to cut, if it finds any data in that area.


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
and expand the XCI-files back to the full cartridge size.


Download:
https://github.com/Destiny1984/XCI-Cutter/releases


Hadn't much time to put this together.
It might crash now and then ;-)
do you have the time to create a xci tool which splits the xci files into a smaller size .....i.e. less than 4 gb each file....
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
I've implemented splitting. Will upload the new version tomorrow.
I am currently at work (yeah and posting on GBAtemp... i know ^^)

Splitting has to be considered experimental for now.
I don't know if SX OS expects a specific part-size.
I've hardcoded it to 4GB (To be precise: 4.294.967.296 -1 bytes).
Official games downloaded from eShop to FAT32 cards are split into 2GB files. Maybe that's what they'll go with.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: Large creep