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,

daniyo

Member
Newcomer
Joined
Jun 19, 2018
Messages
12
Trophies
0
XP
96
Country
United States
I'm having some trouble with some trimmed+split 4GB files. SX OS recognizes the split games but return a "Game card could not be read". Trimmed files work on single file roms (smaller than 4GB). Any ideas?
 

ravensfan8448

Active Member
Newcomer
Joined
Mar 17, 2011
Messages
36
Trophies
0
XP
87
Country
United States
I'm having some trouble with some trimmed+split 4GB files. SX OS recognizes the split games but return a "Game card could not be read". Trimmed files work on single file roms (smaller than 4GB). Any ideas?
I'm having the same issue as you. I thought I was running an outdated version of XCI cutter, because the properties on the exe shows it as version 2.4.0.0 which evidently has broken cutting. I just downloaded the exe for 2.4.1 from the github again though and its the same exe I had before, still showing as 2.4.0.0.
 

MHDestination

Well-Known Member
OP
Member
Joined
Sep 12, 2009
Messages
392
Trophies
0
Location
Under your bed
XP
888
Country
Germany
I'm having the same issue as you. I thought I was running an outdated version of XCI cutter, because the properties on the exe shows it as version 2.4.0.0 which evidently has broken cutting. I just downloaded the exe for 2.4.1 from the github again though and its the same exe I had before, still showing as 2.4.0.0.

Okay, i've sent a mail to Team Xecuter.

Maybe their backuploader needs a specific part size.


For now you'll have to use exFAT for games >4GB.

Splitting will be fixed as soon as i'll receive a response by TX.
 
Last edited by MHDestination,

Cha0tic

Well-Known Member
Member
Joined
Mar 14, 2013
Messages
733
Trophies
1
Age
30
XP
1,888
Country
United States
How do I choose between cutting/splitting? Would like to just try to trim some games.

oops never mind just saw it says split to 4gb.
 
Last edited by Cha0tic,

dsafra

Active Member
Member
Joined
Nov 7, 2002
Messages
30
Trophies
2
Age
42
XP
812
Country
Italy
ummmm u asking about if they can addd the sx can read the extension of splitted file? because splitting again all games nooooo
 

MHDestination

Well-Known Member
OP
Member
Joined
Sep 12, 2009
Messages
392
Trophies
0
Location
Under your bed
XP
888
Country
Germany
I've figured out why SX OS won't play split dumps.

SX OS is a bit picky regarding filesize.
The parts have to be aligned to sdcard clustersize.

I've changed the partsize to a multiple of 32k. Now everything is working as it should.

New bugfix release is up:
https://github.com/Destiny1984/XCI-Cutter/releases/tag/v2.4.2


Unfortunately everyone who has split their dumps with an earlier version,
has to merge the files ("Uncut" option) and split again with the fixed version.
 

KTroopA

Well-Known Member
Member
Joined
Mar 15, 2007
Messages
591
Trophies
0
XP
940
Country
I've figured out why SX OS won't play split dumps.

SX OS is a bit picky regarding filesize.
The parts have to be aligned to sdcard clustersize.

I've changed the partsize to a multiple of 32k. Now everything is working as it should.

New bugfix release is up:
https://github.com/Destiny1984/XCI-Cutter/releases/tag/v2.4.2


Unfortunately everyone who has split their dumps with an earlier version,
has to merge the files ("Uncut" option) and split again with the fixed version.

great work mate, thank you loads for this :)
 

tuntun

Active Member
Newcomer
Joined
May 18, 2010
Messages
29
Trophies
1
XP
254
Country
Antigua and Barbuda
hmmm tried the new version of the splitter and got the same error,

BOTW

and the error is "game cart could not be read" tried two different files.

on 4.1 and sd card is 128 gb fat32
 
Last edited by tuntun,

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
It's due to fragmentation. If it's not split to cluster size then the Switch thinks there's gaps in the code when it reaches the end of the cluster. While 32K is the default cluster for FAT32, it's not the only cluster size. For larger cards some formatters may default to 64K which would leave a gap at the end of some segments due to this code here:
Code:
Friend ReadOnly ChunkSize As UInt32 = 2 ^ 32 - 32 * 1024
which would leave one 64K cluster half empty.

Either make it 2^32 flat or make them 2GB instead of 4GB if you're having issues with the split files fitting on the cards (2^31)
 
Last edited by DocKlokMan,

MHDestination

Well-Known Member
OP
Member
Joined
Sep 12, 2009
Messages
392
Trophies
0
Location
Under your bed
XP
888
Country
Germany
hmmm tried the new version of the splitter and got the same error,

BOTW

and the error is "game cart could not be read" tried two different files.

on 4.1 and sd card is 128 gb fat32

Please format your sd card with 32k clustersize.
You can use GUI Format for that.

Either make it 2^32 flat or make them 2GB instead of 4GB if you're having issues with the split files fitting on the cards (2^31)

2^32 would be exactly 1 byte to big for FAT32.

2GB parts might give to many parts for bigger gamecarts (>32GB).
I'm not sure if SX OS would handle parts with two digits (.xc10 .xc11 .xc12 ...)


To make sure that the files are usable with 64k clusters I could just subtract 64k from 4GB:
Code:
Friend ReadOnly ChunkSize As UInt32 = 2 ^ 32 - 64 * 1024

(But i think a maximum of 32k clusters is the better choice for sdcards.
64k wastes to much space when you have many small files)
 
Last edited by MHDestination,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    The Real Jdbye @ The Real Jdbye: you can fap to your favorite character without it being gay