Hacking NDSTokyoTrim - batch trimmer with wifi detection

  • Thread starter Thread starter BrianTokyo
  • Start date Start date
  • Views Views 312,169
  • Replies Replies 1,798
  • Likes Likes 29
I doubt I even have to link you one. Within nds-bootstrap, the one major game with this issue was Mario Party DS, as its multiplayer mode is solely cloneboot.

Interestingly enough, some testing on my own end seems to show that it works. (It also detected Mario Party DS as a Wi-Fi game, but it isn't... perhaps that's why it works?)

Well, the rom does have a Wi-fi section though, 136 bytes after the game data, my app detects and keeps that:

1694 Mario Party DS (US)
Rom Size: 23.287.968

1633240906395.png


1633241061827.png
 
Last edited by BrianTokyo,
Hi, does NDSTokyoTrim retain the 0x88 bytes at the end of the trim data for NTR cartridges? This is specifically required for usage of cloneboot-based Download Play playback on real hardware, as those 0x88 bytes are the RSA keys.

TWL cartridges do not have this issue as the 0x88 bytes are within the "data size" header of the ROM image, but NTR carts don't retain this.

In this case as the per rom data in the file, yes, it does keep those 136 bytes. The app checks for this block on its own, it doesn't follow some rom database to determine whether or not to check for it.
 
  • Like
Reactions: Psionic Roshambo
I see. That's good to know (GodMode9 and GodMode9i did not do this prior to this discovery.)

Thanks! Still the best PC app for this purpose.
 
I definitely wasn't expecting this to be updated. Thank you so much for making such a useful program! I wanted to ask though, is the difference between stock and trimmed 3ds games big?
 
I definitely wasn't expecting this to be updated. Thank you so much for making such a useful program! I wanted to ask though, is the difference between stock and trimmed 3ds games big?
It honestly depends on the game. I'm sure you know that when a cartridge dumper dumps, it dumps the entire chip bit by bit, so there is the zerofilled data.

Some cartridges can have 512MB chips, but the game data could be only 260MB, or 400MB. Because each game is different you'll never really know how much storage you're saving.

I say trim them anyway. If you don't really care about proper archival and just want to play games, that's free space, however big or small.
 
version 3.11 has this error in wine32 or 64 w/gecko
carter@Carter-laptop:~$ wine ~/Downloads/NDSTokyoTrim311.exe
0009:err:listview:LISTVIEW_WindowProc unknown msg 109d wp=ffffffff lp=00000000
0009:err:listview:LISTVIEW_WindowProc unknown msg 1096 wp=00000000 lp=00000000
0009:err:listview:LISTVIEW_WindowProc unknown msg 1091 wp=00000000 lp=0032fa94
0009:err:listview:LISTVIEW_WindowProc unknown msg 1096 wp=00000001 lp=00000000
0009:err:listview:LISTVIEW_WindowProc unknown msg 1091 wp=00000001 lp=0032fa94
wine: Unhandled exception 0x0eedfade in thread 9 at address 7B032F82 (thread 0009), starting debugger...
0009:err:seh:setup_exception_record stack overflow 816 bytes in thread 0009 eip f7bb9842 esp 00231000 stack 0x230000-0x231000-0x330000
 
What exactly is "WARNING: Card1/2 rom detected"? I downloaded Animal Crossing New Leaf game+update, decrypted, extracted+merged, rebuilded and trimmed. Up to title screen it looks to be running just fine.

EDIT: read more about it, I think card2 doesn't matter if you're gonna run it on an emulator.
 
Last edited by Hyoretsu,
Awesome utility, thank you for sharing! However, I am having trouble getting it to work with larger .3ds files. Games that are 2.0Gb or larger do not seem to work. I receive an 'Out of memory' error when trying to process these items. Any idea how to fix this?
 
Can this tool trim DSi Enhanced games or not? I keep getting a warning when I try to trim one, but it gets trimmed in the end, Did the ROM get corrupted or is it safe to use? I will be running it in an emulator.
 
In this case as the per rom data in the file, yes, it does keep those 136 bytes. The app checks for this block on its own, it doesn't follow some rom database to determine whether or not to check for it.
Not sure if this application is still in development, but trimming Blood of Bahamut after applying its latest English translation (https://www.romhacking.net/translations/2560/) results in the ROM losing all sounds for the main menu and in the middle of gameplay. This may be related to an edge case that affect other ROMs.
 
Last edited by SotoJJ,
Hi. I just want to say that I'm glad you're still alive!
hahah, me too!
Awesome utility, thank you for sharing! However, I am having trouble getting it to work with larger .3ds files. Games that are 2.0Gb or larger do not seem to work. I receive an 'Out of memory' error when trying to process these items. Any idea how to fix this?
I'll have to check, probably need to build a 64-bit version of the tool
Can this tool trim DSi Enhanced games or not? I keep getting a warning when I try to trim one, but it gets trimmed in the end, Did the ROM get corrupted or is it safe to use? I will be running it in an emulator.
Tbh I can't remember what was the status on that, I recall some issues but it's been so long, need to check when I have some free time
Not sure if this application is still in development, but trimming Blood of Bahamut after applying its latest English translation (https://www.romhacking.net/translations/2560/) results in the ROM losing all sounds for the main menu and in the middle of gameplay. This may be related to an edge case that affect other ROMs.
Gonna have to check that.

Sorry for the late replies, for some reason I don't get email notifications to this thread. The best way to keep in touch and post about issues/changes is in my discord: https://discord.gg/6Azve9Rq

I'm in the middle of building a new website (https://eden.fm) from scratch to more easily keep my little apps together and post updates, I'll take the chance to rebuild some of them and have a look at the trimmer as well.

When I think about it, kinda crazy it's been already 18 years since I started this little project.
 
Awesome utility, thank you for sharing! However, I am having trouble getting it to work with larger .3ds files. Games that are 2.0Gb or larger do not seem to work. I receive an 'Out of memory' error when trying to process these items. Any idea how to fix this?
New build is out, maybe it works with this one

https://eden.fm/changelog.php
 
The latest 3.12 build doesn't run in wine/linux (logs "bad EXE format").
I reverted back to 3.11 which does work fine.
Thank you anyways.
 
Not sure if this has been reported anywhere, but trimming Jump Ultimate Stars with the English patch applied turns it into an 885kb file which doesn't play.
 

Site & Scene News

Popular threads in this forum