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,

GerbilSoft

Well-Known Member
Member
Joined
Mar 8, 2012
Messages
2,395
Trophies
2
Age
34
XP
4,255
Country
United States
oh I didnt know that... that sounds reasonable. but then it means on the cart itself theres a pretty complex processor to handle all that..?
File access is handled by the OS. It's sort of like how user programs on Windows can't access the raw HDD directly; you have to request files.

(Not counting accessing \\.\PhysicalDriveN, and that requires administrator permission.)
 

Maximilious

Whistles a familiar tune
Member
Joined
Nov 21, 2014
Messages
2,571
Trophies
1
XP
1,855
Country
United States
I don't get the blank data part!?
Why require 10 GB if the actual game data is 5 GB?
Anyway great tool! I just hope trimming and getting rid of the original won't be an issue later.

Cart dumps will dump the entire contents of the card (16GB, 2GB, ect.) even when the game itself could be 10GB, 1GB, ect. So we end up with a lot of blank space which is where the trimmer tools come in.

I imagine trimmed .xci's will work. I don't have my Switch right now but we could easily determine by looking at installed games from eShop. If they don't take up the full cart space but just the space designated after being trimmed then we may be good to go.
 
  • Like
Reactions: Zumoly

xy-maps

Well-Known Member
Newcomer
Joined
May 14, 2018
Messages
52
Trophies
0
Age
33
XP
523
Country
Germany
Can it be that the current releases of bbb are already trimmed? Because they all have different sizes and are not 16Gb in size (except of course the games that need an additional download)​
 

jfosheezy

Active Member
Newcomer
Joined
Feb 7, 2017
Messages
33
Trophies
0
Age
29
XP
273
Country
United States
Can it be that the current releases of bbb are already trimmed? Because they all have different sizes and are not 16Gb in size (except of course the games that need an additional download)​

The Hyrule Warriors file I downloaded today is the exact same size as the Lego City Undercover file that is marked Dec' 2017

I see only 4 different file sizes for the 30 games I downloaded.

Nintendo Switch carts do come in varied sizes depending on the game size

But those 4 varied sizes have been the same in all releases so far
 

shabbypenguin

Well-Known Member
Newcomer
Joined
Apr 29, 2015
Messages
84
Trophies
0
Age
36
XP
403
Country
United States
Can it be that the current releases of bbb are already trimmed? Because they all have different sizes and are not 16Gb in size (except of course the games that need an additional download)​
compressing the xci file has a similar effect as this trimmer, however you cant load up tx sx with a compressed rom, so by scrubbing/trimming it you get the real size of the game.
 
D

Deleted User

Guest
File access is handled by the OS. It's sort of like how user programs on Windows can't access the raw HDD directly; you have to request files.

(Not counting accessing \\.\PhysicalDriveN, and that requires administrator permission.)
oh ok gotch, so all read/ writes go through os? that means it will not be hard to make it support trimmed roms once we have cfw because yoi can tell os to return ff for requested reads beyond the given rom
edit:... oh wait I completely missed the point. then it should be ok as is
 
Last edited by ,

detonyle

Active Member
Newcomer
Joined
Sep 5, 2017
Messages
39
Trophies
0
Age
38
XP
679
Country
France
Thanks for this tools really.

Did you try to contact Xecuter? maybe they can test a cut xci with XS product?

- Do you think you can do a group/batch cutter? for example just put a folder and he took all xci files in subfolder?
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
Wait, is this a cutter or a trimmer? Like, does it cut rom files into smaller parts? So you could fit an 8GB or 16GB game onto a FAT32 card or does it just trim blank space off the end of the rom? The name is a bit confusing.
 

ChronoX_

Well-Known Member
Member
Joined
Oct 11, 2008
Messages
192
Trophies
1
XP
751
Country
Netherlands
Wait, is this a cutter or a trimmer? Like, does it cut rom files into smaller parts? So you could fit an 8GB or 16GB game onto a FAT32 card or does it just trim blank space off the end of the rom? The name is a bit confusing.

Maybe read the first line?

I wrote a small tool to cut off the unused sectors at the end of xci files.
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
Maybe read the first line?
Should rename it to XCI-Trimmer then. I read the post, thought 'Hey, it's a trimmer!', then read the name and thought, 'Did I miss something? It says it's a cutter'. These tools and terms have been around for a long time, it's just odd to see them mixed up like that is all.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    13,600 MB/s though
  • DinohScene @ DinohScene:
    I got a 980 pro iirc
  • K3Nv2 @ K3Nv2:
    Soldigms been pretty solid
  • DinohScene @ DinohScene:
    yeh 980 pro
  • DinohScene @ DinohScene:
    good enough tbf
  • K3Nv2 @ K3Nv2:
    https://a.co/d/gMNhZNI never heard about them but reviews are good
  • SylverReZ @ SylverReZ:
    @DinohScene, Crucial SSDs work fine. I have one installed in my Xbox.
  • SylverReZ @ SylverReZ:
    Reviews seem positive.
  • DinohScene @ DinohScene:
    I believe I had some Patriot RAM running in a computer somewhere
  • K3Nv2 @ K3Nv2:
    $250 is pretty solid considering
  • K3Nv2 @ K3Nv2:
    With the refund it'll be about $150
  • K3Nv2 @ K3Nv2:
    6tb nvme pc ftw
  • DinohScene @ DinohScene:
    500 GB NVMe, 750 GB
    SATA SSD 1 TB HDD
  • DinohScene @ DinohScene:
    honestly I don't play pc games
  • K3Nv2 @ K3Nv2:
    I don't game
  • K3Nv2 @ K3Nv2:
    Once I buy this I'll be around 20tb worth of storage tho if we're talking all my drives
  • K3Nv2 @ K3Nv2:
    All this crap I got and all I do is pick up the GabeDick to fiddle with his happy stick
  • DinohScene @ DinohScene:
    idk the total storage cap I have
  • DinohScene @ DinohScene:
    50 TB orso
  • SylverReZ @ SylverReZ:
    @DinohScene, I don't play PC games often. Mostly its all 90s-00s games.
  • K3Nv2 @ K3Nv2:
    Hm doing research quite possible my issue with this drive is bios related not detecting it fully
  • DinohScene @ DinohScene:
    run crystaldisk?
  • K3Nv2 @ K3Nv2:
    Don't think it would do much if gnome live even sees it as 2mb
  • K3Nv2 @ K3Nv2:
    Vmd issue possibly
    K3Nv2 @ K3Nv2: Vmd issue possibly