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,
Thanks for the tip! It is working now that I uncut and untrim with your OLDER tool first then trim and split with 2.4.2. I also followed your step to copy in the right order and now I am running MK8!

Thanks for all your help and your sacrifice for time for this community!!

Damn! You are absolutely right!
Thank you very much for mentioning that.

Actually i did it that way. I joined my previously split dumps with the old version. And re-split with the new.

That is important because the uncut option expects the same partsize as the cut/split function.

Old parts had a size of 4,294,967,295 bytes.
But version v2.4.2 expects them to be 4,294,934,528 bytes long.

The new version will always start reading the next file when it reaches the expected filesize.
That results in broken dumps, since it just ignores 32k of the old parts.


So after all, v2.4.2 is working properly.
The problems only occured with dumps that had been split before.
 
Last edited by MHDestination,
Ok, reformat worked perfectly for me I have everything up and running perfectly now. I cut and pasted the existing trimmed and cut xcis from my microsd card and put them on my desktop, reformatted micro sd, and cut and pasted them back one by one and everything is working fine. The files that were moved from the sd to my desktop and back to the reformatted SD were all trimmed/cut on 2.4.2, and were cut/trimmed from the original xci's I had saved on my desktop. I didn't do any joining of cut XCIs. I'm on switch firmware 1.0.0 btw.

Thanks so much MHDestination for all the work getting this working for us, and thanks to other users for posting your troubleshooting. Time to play some Mario Kart.
 
currently, the tool creates a copy of the image which it then cuts down. Any chances for "in-place" trimming (with a warning, obviously)? would speed the process up.

EDIT: obviously, this would only be used for trimming, not splitting.
 
Last edited by Localhorst86,
currently, the tool creates a copy of the image which it then cuts down. Any chances for "in-place" trimming (with a warning, obviously)? would speed the process up.

EDIT: obviously, this would only be used for trimming, not splitting.

That option ist already there. Just click "Fast Mode" in the batch processing window
 
Last edited by MHDestination,
That option ist already there. Just click "Fast Mode"
hm. The description for fast mode says it skips the checks wheter or not the data is filled with FFs. At least from reading that's not entirely what I meant (but it'll obviously speed up the process as well)
 
hm. The description for fast mode says it skips the checks wheter or not the data is filled with FFs. At least from reading that's not entirely what I meant (but it'll obviously speed up the process as well)


When you click the "Fast Mode" checkbox it displays following message:
The fastmode disables all safetychecks and
processes the inputfiles directly.

You might irreversible break your inputfiles
if something goes wrong!


NOTE: Fastmode can't handle split-files.
 
Last edited by MHDestination,
  • Like
Reactions: comput3rus3r
is it expected for some games to freeze the switch at some point in the game.? same games uncut work just fine.
 
What games do you mean?

Split with any version <2.4.2, and joined with 2.4.2?

didn't split them only used xci-cutter to reduce file size. Doom freezes at the cutscene just before you start the game and zelda at one of the cutscenes as well
splatoon 2 freezes at loading screen before game start.
 
didn't split them only used xci-cutter to reduce file size. Doom freezes at the cutscene just before you start the game and zelda at one of the cutscenes as well
splatoon 2 freezes at loading screen before game start.

Trimming alone shouldn't break anything. It's most likely an issue with your sd card.

SX OS doesn't like fragmentation.
You should backup your data, format the card and copy the files back.
 
  • Like
Reactions: z10m
didn't split them only used xci-cutter to reduce file size. Doom freezes at the cutscene just before you start the game and zelda at one of the cutscenes as well
splatoon 2 freezes at loading screen before game start.
I can tell you that doom works fine. used this tool to trim it and it works.
 
  • Like
Reactions: z10m
I'm afraid I tried re-splitting the original roms just now (Mario Odyssey and Nba2k18) using the latest 2.4.2 splitter into 2Gb sections.

Reformatted the 128Gb sdcard, fat32, 32k cluster with guiformat, loaded on each file one by one, firmware 3.0.0

I'm afraid it still didn't work :( . Saw the roms, opened them and then got the usual "this game could not be read" error. :(
 
I'm afraid I tried re-splitting the original roms just now (Mario Odyssey and Nba2k18) using the latest 2.4.2 splitter into 2Gb sections.

Reformatted the 128Gb sdcard, fat32, 32k cluster with guiformat, loaded on each file one by one, firmware 3.0.0

I'm afraid it still didn't work :( . Saw the roms, opened them and then got the usual "this game could not be read" error. :(

Did you try fresh copies of these games?

I think your dumps were already broken by using an older and the recent version of xci-cutter.

I'm sorry, but you'll have to dump them again (or redownload).
The 4GB parts are working. No need to split to 2GB.
 
Last edited by MHDestination,
  • Like
Reactions: comput3rus3r
But I only ever processed them from the original files to new destinations, or are you saying using the xci-cutter alters the original source rom as well as exporting -cut versions?
 
But I only ever processed them from the original files to new destinations, or are you saying using the xci-cutter alters the original source rom as well as exporting -cut versions?

No, the original files won't ever get altered (as long as you're not using Fast Mode).

A mixture of different xci-cutter versions could break the output files.

When you're sure that your sourcefiles are untouched,
then there only remain possible issues with your sd card,
since multiple users now confirmed that split dumps are working.
 
Well, went back and used the 2.4.2 everything as advised this time on a different sd card and nothing. Tried 3 roms. None worked on 3.0.0 :(
 
I loaded two games on my sd card and they aren't showing up in the SXOS game menu. Any ideas? I'm using exfat. The games are trimmed but I tried untrimming and nada. Now I'm going to try to split a game in to 4 gb files to see if it will detect it.
 
Does this work fine with SXOS in the same quality as before trim? I tried reading and may have overlooked but couldn't find an answer.
 

Site & Scene News

Popular threads in this forum