Homebrew Question Rom Trimming - XCI-Explorer vs XCI-Cutter

roden

Well-Known Member
OP
Member
Joined
Oct 14, 2007
Messages
169
Trophies
0
XP
534
Country
Hi all,

Just been experimenting with these 2 tools.

I just trimmed minecraft and they both trim a whopping 1gb+ of the rom 1.9gb to 900mb or so.

XCI Cutter seams to write the entire file again witch is quite slow, but trimmed, as XCI Explorer just instantly cuts of the unneeded data. But no Batch Option :(.

Now my question is as i dont quite understand, why the hell is there 1gb of extra padding that does not need to be there?. and is it safe to do this to all my roms?

Confused...
 

yusuo

Well-Known Member
Member
Joined
Oct 19, 2006
Messages
3,504
Trophies
2
Age
38
XP
6,177
Country
United Kingdom
It's safe, I've been trimming all my roms. It's more than likely it's just on a 2gb card. Alot of 0's to fill up that card. All you're doing is deleting those 0's
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
Hi all,

Just been experimenting with these 2 tools.

I just trimmed minecraft and they both trim a whopping 1gb+ of the rom 1.9gb to 900mb or so.

XCI Cutter seams to write the entire file again witch is quite slow, but trimmed, as XCI Explorer just instantly cuts of the unneeded data. But no Batch Option :(.

Now my question is as i dont quite understand, why the hell is there 1gb of extra padding that does not need to be there?. and is it safe to do this to all my roms?

Confused...
When they write games to the storage chips they fill ALL the space available so it can't be written to with additional data later. When dumped this extra space shows up in the file as padding. It's been a thing with ROMs since dumping ROMs from storage chips was a thing.

Also, it's not the file copying that takes XCI-Cutter so long (though it does add a little bit of time) it's the fact it checks the padding for any unexpected data before trimming it while XCI-Explorer does not. However, there's trimmers that also check for unexpected data but don't take as long. The reason why XCI-Cutter takes so long is that it checks this padded data a single byte at a time rather than in groups of bytes.
 

Insane

Well-Known Member
Member
Joined
May 8, 2018
Messages
144
Trophies
0
XP
2,402
Country
Germany
When they write games to the storage chips they fill ALL the space available so it can't be written to with additional data later. When dumped this extra space shows up in the file as padding. It's been a thing with ROMs since dumping ROMs from storage chips was a thing.

Also, it's not the file copying that takes XCI-Cutter so long (though it does add a little bit of time) it's the fact it checks the padding for any unexpected data before trimming it while XCI-Explorer does not. However, there's trimmers that also check for unexpected data but don't take as long. The reason why XCI-Cutter takes so long is that it checks this padded data a single byte at a time rather than in groups of bytes.

Another issue with speed could also be that the gui progess bar is updated too often. By reducing the number of updates I was able to speed up a tool.
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
Cool, what we need now is an auto renamer and trimmer in one :D
This is a bit more complicated. There's only three ways to gather the title of the game. Either do an online lookup to a database like nswdb for the CRC32 hash (takes time to hash and internet connectivity to look up, doesn't work for releases not yet listed or for files that were already pre-trimmed), use an offline downloaded database such as an XML that still suffers from slow CRC32 calculating and missing entries and failing on pre-trimmed files or using hactool and non-distributable keys to decrypt and extract the info directly from the XCI file which makes the program far less user friendly since they need to supply their own keys.

No matter which approach you take you introduce more complexity.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
    rqkaiju2 @ rqkaiju2: i like physical media because it actually feels like you own it. thats why i plan on burning...