Hacking How to trim roms using ndstool?

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
I don't think it officially has the functionality -- trimming tends to be more of a flash cart thing and of little interest to homebrew.

Unofficially I imagine you could unbuild the ROM and rebuild it and it would lose space added between the files (seen it in a few games, something traditional trimmers would also not touch) and at the end of the ROM. Whether it would be proper "safe"* trimming I don't know.

*3 types of DS ROM trimming out there in the world
1) GBA style. Start at end of ROM, go backwards until you hit something that is not a 00 or FF. Delete from here on in. Tricky as 00 and FF are perfectly valid things to have in a file. Still it will work for most things.
2) Basic file system aware. The ROM itself will have a listing of how big it is, the basic aware trimmer will take this value and delete beyond it.
3) Safe trimming. For whatever reason a ROM trimmed like 2) will sometimes not work with wifi. Adding a few bytes on (think 40 or so) will seemingly prevent this failure from happening and this would be the safe trimming that the ROM management tools (don't know if we are still recommending DSclippers) will do.
 
  • Like
Reactions: Tempylon

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • x65943 @ x65943:
    lmao, how did that guy get elected
  • x65943 @ x65943:
    I realize it's a small town, but a known drug user whose malpractice led to the death of a 3 year old
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's pretty messed up
  • Psionic Roshambo @ Psionic Roshambo:
    Not even a real Dr lol
  • Psionic Roshambo @ Psionic Roshambo:
    And a shoot out with the police is like RoboCop lol
  • K3Nv2 @ K3Nv2:
    Temp is back back again
  • Xdqwerty @ Xdqwerty:
    why were servers down?
  • K3Nv2 @ K3Nv2:
    Because it was telling a friend
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, telling what?
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Maintenance most likely.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, understandable
  • SylverReZ @ SylverReZ:
    Hopefully it wasn't a DDoS attack.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i was already believing that was the reason it was down
  • SylverReZ @ SylverReZ:
    @Xdqwerty, The response from the page said it had too many connections. So perhaps, flooded traffic?
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, it didnt say that for me
  • SylverReZ @ SylverReZ:
    @Xdqwerty, It only shows that if you do 'View Source', right below that it'll tell you the SQL response query. I feel like a nerd lol.
  • SylverReZ @ SylverReZ:
    But for everyone, it said unexpected database error.
    +1
  • BigOnYa @ BigOnYa:
    Just said database error for me
    +2
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, she said it only said "too many connections" when you view the source
    +1
  • Xdqwerty @ Xdqwerty:
    btw gonna try to actually beat touhou 6
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Have fun.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i recall playing some hard undertale fangames way before playing touhou, like the genocide asgore fangame or the mettaton neo 2.0 one
  • Xdqwerty @ Xdqwerty:
    so atleast im already kinda used to bullet hell games
  • Xdqwerty @ Xdqwerty:
    and yea i played both undertale and deltarune too although those are a piece of cake compared to any touhou game
    Xdqwerty @ Xdqwerty: and yea i played both undertale and deltarune too although those are a piece of cake compared...