Hacking NDSTokyoTrim - batch trimmer with wifi detection

arctic_flame

GBAtemp ATMEGA8 Fan
Member
Joined
Nov 4, 2006
Messages
2,835
Trophies
0
Age
32
Location
England land
XP
168
Country
Indeed, cant someone request a topic to be stickied?


And i used the Trimmer to trim the new zelda game t'other day, and used arm7 fix button. the game works on both mine and my bro's DS's, so please don't take it away unless its absolutely compulsary!

1. The trimmer is actually nothing to do with the R4; the only place it could be considered sticky-ing is the "Hardware Devices/ Utilities" forum

2. Zelda doesn't need "the arm7 fix"
 

zeppo

change my avatar!
Member
Joined
Jul 30, 2007
Messages
982
Trophies
0
Website
Visit site
XP
6
Country
United States
You might want to use that save you have for the arm7-fixed version with the unfixed version, so that the action replay codes will work.
 

zeppo

change my avatar!
Member
Joined
Jul 30, 2007
Messages
982
Trophies
0
Website
Visit site
XP
6
Country
United States

zeppo

change my avatar!
Member
Joined
Jul 30, 2007
Messages
982
Trophies
0
Website
Visit site
XP
6
Country
United States
And R4 is probably one of the most active forums on GBAtemp

The R4 subforum is also the most active R4 forum on the internetz (in english). This is why I came to gbatemp in the first place.

p.s. I just noticed that this is page 73!! 73 is my lucky number! It has been since I was little (I forget why...
rofl2.gif
). Anyway, hopefully this is the page that the new version will be released on!
 

wiithepeople

^^didn't play it that much, but I love it =D
Member
Joined
Sep 30, 2007
Messages
786
Trophies
0
Age
29
Location
the banned
Website
Visit site
XP
129
Country
United States
Wow really? It's the most active on the web? Sweet go GBAtemp!!!!
biggrin.gif
biggrin.gif
biggrin.gif
biggrin.gif


Oh and also BrianTokyo I just noticed the "scan folders" function on your trimmer... It ownz! U didn't forget anything!

But only one little problem... I accidently left the trim window open when I didnt need it. My mom was about to come into the computer room and I closed the window as fast as I could and she didn't see it. WHEW XD
But I still love the BG even though I have to conceal it
wink.gif
 

BrianTokyo

NDSTokyoTrim Dev.
OP
Member
Joined
Jun 28, 2007
Messages
658
Trophies
1
Website
www.eden.fm
XP
340
Country
I will upload a Beta today, but I will only post it here, not as an official stable build.

Backgrounds stuff isn't finished, but should be very soon, however not today. Since everything else is finished and I need some feedback.. (mostly about GBA trimming), I'm releasing this beta first.


New stuff:

- 7zip support
- GBA trimming (very basic and rudimentary, don't trust it 100%)
- Auto-check for new version
- Basic bricker check
- Speed improvements
- other minor changes and fixes to the backup/other folder options
- many new checks for improperly trimmed roms
- made DLLs (for unrar and 7zip) load straight into ram, it will not extract them to disk anymore, so you won't see unrar.dll in the app folder anymore
- partial new backgrounds stuff
- rom header info: only for untrimmed NDS files

Notes:

* Backgounds: you can't set a fixed one yet, only try the wizards. I am still working on that so any feedback about it might already be in my to-do list.
* GBA trimming: it's super basic and completely theorical, I can't test it, so please give me some feedback about wrong trims if you can
* Brick protection: this is a very basic check; a through check will be available in batch although it will be quite slow. Again, don't trust it 100%


Possible error messages in the NDS trimming proc:
-----------------------------------------------------------

* ERROR: File doesn''t exist: // you could have deleted the file before trimming..
* ERROR: Incorrect File: // file is smaller than it should
* WARNING: POSSIBLE BRICKER: // basic bricker test
* ERROR: File size mismatch or previously overtrimmed: // file is 0 bytes or was trimmed too much with other trimmers
* ERROR: Previous trimming was wrong. Untrimmed source rom needed: // file was trimmed incorrectly with other trimmers.
The source rom is needed since part of the wifi block might have been removed
* SKIP: File already trimmed (wifi status unknown): // file is already trimmed and we don't know if it had wifi or not (most
probably it didn't, or the wifi block was already included in the rom offset header info, or another trimmer could have removed it)
* WARNING: File was previously trimmed incorrectly (or rom is homebrew). Proceeding to fix: // file was trimmed incorrectly
with other trimmers and it will be fixed, no source rom needed
* SKIP: File already trimmed (WIFI data found): // already trimmed and it has wifi data
* WARNING: File was previously trimmed incorrectly. Proceeding to fix: // file was trimmed including a wifi block for safety, but
there is no wifi data at all so it will be fixed, no source rom needed
* INFO: Wifi game: // Normal rom, wifi data detected
* Error: Memcopy failed: // buy a new computer

------------------------------------------------------------------------------------


FAQ:

Q: Backgrounds stuff?
A: Soon, in a few days.

Q: win9x/Linux?
A: Soon


To-do in the future:
- cheats editor
- skinner
- finish arm7 fix
 

philco1

Well-Known Member
Member
Joined
Apr 20, 2007
Messages
163
Trophies
0
XP
34
Country
United States
that comes with next build + a pack of backgrounds ready for it like these: (user Mire made them with the last beta)(nobody else has it)

http://www.j-suki.de/Anime/index.py/bgs

LOL ... This is kind of cool ... lets have ppl submit their bg's and post them on a site
biggrin.gif
I was thinking of this but I'm sure that no one now has the time to actually moderate the images. Meh ne ways thx for the link. ROFL at the possibility of www.ndsTokyoTrimThemes.com

* Error: Memcopy failed: // buy a new computer
 

Wii_DS.

ウォリアー
Banned
Joined
Sep 5, 2007
Messages
681
Trophies
0
Website
fcrc.weebly.com
XP
2
Country
Ok: http://techsuki.net/BetaNDSTokyoTrim.exe

Remember:

BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA

Is this in Beta?
tongue.gif


Thanks BrianTokyo wonderful program.

I kinda need a GBA Rom Trimmer. I guess i trust it 100% since you only need to cut out the 00's and FF's from the Rom, i can do that with a Hex Editer (but it takes a while) I'm sure a powerful program like this can do it also, but quicker
tongue.gif
 

HackNeyed

Active Member
Newcomer
Joined
Jul 8, 2006
Messages
26
Trophies
0
Age
41
Website
Visit site
XP
191
Country
I have a few things, thanks, bug report and request...

1st off I think your app is great, so THANK YOU! I'm really happy about the GBA trimming, since I've got the eWin expiation pak I no longer have to mess with save patching and I always keep my clean roms clean rar/ziped and trim them when I copy them to my SD card. So when I have to delete them for space I can always get them back with a simple trim and copy again.

So 2nd of all the bug, back in .50 when using RARs I'd check the "Use a different output folder" and it mostly worked just fine, only problem was it left the un-trimmed roms in the folder where the app was running as well as the trimmed roms in the destination folder. Now, in this beta that problem seems to be taken care of as they no longer show up in the app folder but instead it gives an error "Error: Output file exists" and leaves the non trimmed roms in the destination folder.

3rd is really the only feature I feel is missing and makes me wish other apps were as nice as yours, and they even have out put file problems... Anyway could you add an option to remove the so called "scene numbers" while trimming? You know the 3 or 4 numbers that precedes the game's name. Maybe also taking out extra info in the file names that are put in (parenthesis) like dump groups or hash values and fixing the spacing while keeping more important info?

So something like this,

1234 – Super Happy Fun Time Game (J)(v1.1)(Group)(123123123).nds

Becomes

Super Happy Fun Time Game (J) (1.1).nds

Or maybe just read the Embedded Title like “The Legend of Zelda:Phantom Hourglass” and just renaming the file as such? Though not the Rom Title as that would make “ZELDA_DS:PH” and some game's aren't as clear as that. I just think either the file name fixing and/or the embedded title renaming is certainly a way to make names more consistent with save files when moving games on and off.

I just wanted to put that out there. Thank you for this awesome app! If GBA trimming works fine I know I'm going to finally be hooked on your app.
smile.gif
 

thomasroberts6

Well-Known Member
Member
Joined
Aug 13, 2007
Messages
496
Trophies
0
XP
94
Country
The beta seems to be wokring great with me!


I just used it to trim The Legend Of Zelda: The Phantom Hourglass and it played with no problems.


And im very glad about the B/G changer!
 

arctic_flame

GBAtemp ATMEGA8 Fan
Member
Joined
Nov 4, 2006
Messages
2,835
Trophies
0
Age
32
Location
England land
XP
168
Country
Ok: http://techsuki.net/BetaNDSTokyoTrim.exe

Remember:

BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA BETA


CODEjake@jake-laptop:~$ wine Downloads/BetaNDSTokyoTrim.exe
wine: Unhandled exception 0x0eedfade at address 0x0000:0x7b842690 (thread 0009), starting debugger...
First chance exception: 0xc0000025 in 32-bit code (0x7bc30d6c).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:7bc30d6c ESP:0033f9f4 EBP:0033fa58 EFLAGS:00000282( - 00 - -IS1)
EAX:0033fa00 EBX:7bc7b550 ECX:00110020 EDX:0033fde4
ESI:0033fde4 EDI:0033fa64
Stack dump:
0x0033f9f4: 0033fa10 b7d61b5d 00000000 c0000025
0x0033fa04: 00000001 0033fde4 7b820000 00000000
0x0033fa14: 7bc3a876 0033fa38 00000001 0033fadc
0x0033fa24: 7bc7b550 00000000 0033fb40 7bc304b0
0x0033fa34: 00000001 7bc7b550 7b820000 00000002
0x0033fa44: 0033fae0 ff39fa18 84c9a876 7bc30d20
Backtrace:
=>1 0x7bc30d6c __regs_RtlRaiseException+0x4c() in ntdll (0x0033fa58)
2 0x7bc68183 in ntdll (+0x58183) (0x0033fdc0)
3 0x7bc30356 RtlRaiseException+0x6() in ntdll (0x0033fe38)
4 0x0041cff3 in betandstokyotrim (+0x1cff3) (0x0033fea8)
5 0x0041ceb1 in betandstokyotrim (+0x1ceb1) (0x0033fed0)
6 0x004d9e6f in betandstokyotrim (+0xd9e6f) (0x0033ff08)
7 0x7b87221e in kernel32 (+0x5221e) (0x0033ffe8)
8 0xb7ea8897 wine_switch_to_stack+0x17() in libwine.so.1 (0x00000000)
0x7bc30d6c __regs_RtlRaiseException+0x4c in ntdll: subl $4,%esp
Modules:
Module Address Debug info Name (75 modules)
PE 400000-5c0000 Export betandstokyotrim
ELF 7b800000-7b926000 Export kernel32
\-PE 7b820000-7b926000 \ kernel32
ELF 7bc00000-7bc97000 Export ntdll
\-PE 7bc10000-7bc97000 \ ntdll
ELF 7bf00000-7bf03000 Deferred
ELF 7d204000-7d255000 Deferred libgcrypt.so.11
ELF 7d255000-7d26a000 Deferred libtasn1.so.3
ELF 7d26a000-7d298000 Deferred libcrypt.so.1
ELF 7d2a8000-7d318000 Deferred libgnutls.so.13
ELF 7d318000-7d349000 Deferred libcups.so.2
ELF 7d5ca000-7d5ce000 Deferred libgpg-error.so.0
ELF 7d5db000-7d60d000 Deferred uxtheme
\-PE 7d5e0000-7d60d000 \ uxtheme
ELF 7d60f000-7d614000 Deferred libxfixes.so.3
ELF 7d614000-7d61d000 Deferred libxcursor.so.1
ELF 7d61d000-7d623000 Deferred libxrandr.so.2
ELF 7d623000-7d62b000 Deferred libxrender.so.1
ELF 7d62b000-7d62e000 Deferred libxinerama.so.1
ELF 7da3f000-7e2c5000 Deferred libglcore.so.1
ELF 7e2c5000-7e351000 Deferred libgl.so.1
ELF 7e351000-7e356000 Deferred libxdmcp.so.6
ELF 7e356000-7e359000 Deferred libxau.so.6
ELF 7e359000-7e44a000 Deferred libx11.so.6
ELF 7e44a000-7e458000 Deferred libxext.so.6
ELF 7e458000-7e45d000 Deferred libxxf86vm.so.1
ELF 7e45d000-7e475000 Deferred libice.so.6
ELF 7e475000-7e47e000 Deferred libsm.so.6
ELF 7e47e000-7e50c000 Deferred winex11
\-PE 7e490000-7e50c000 \ winex11
ELF 7e598000-7e5b8000 Deferred libexpat.so.1
ELF 7e5b8000-7e5e3000 Deferred libfontconfig.so.1
ELF 7e5e3000-7e5f7000 Deferred libz.so.1
ELF 7e5f7000-7e662000 Deferred libfreetype.so.6
ELF 7e662000-7e676000 Deferred lz32
\-PE 7e670000-7e676000 \ lz32
ELF 7e676000-7e68f000 Deferred version
\-PE 7e680000-7e68f000 \ version
ELF 7e68f000-7e72a000 Deferred oleaut32
\-PE 7e6a0000-7e72a000 \ oleaut32
ELF 7e72a000-7e75d000 Deferred winspool
\-PE 7e730000-7e75d000 \ winspool
ELF 7e75d000-7e770000 Deferred libresolv.so.2
ELF 7e770000-7e78e000 Deferred iphlpapi
\-PE 7e780000-7e78e000 \ iphlpapi
ELF 7e78e000-7e7e3000 Deferred rpcrt4
\-PE 7e7a0000-7e7e3000 \ rpcrt4
ELF 7e7e3000-7e87d000 Deferred ole32
\-PE 7e7f0000-7e87d000 \ ole32
ELF 7e87d000-7e8d6000 Deferred shlwapi
\-PE 7e890000-7e8d6000 \ shlwapi
ELF 7e8d6000-7e9cb000 Deferred shell32
\-PE 7e8f0000-7e9cb000 \ shell32
ELF 7e9cb000-7ea6b000 Deferred comdlg32
\-PE 7e9d0000-7ea6b000 \ comdlg32
ELF 7ea6b000-7ea77000 Deferred libgcc_s.so.1
ELF 7ea77000-7ea79000 Deferred libnvidia-tls.so.1
ELF 7eb71000-7ec2e000 Deferred gdi32
\-PE 7eb90000-7ec2e000 \ gdi32
ELF 7ec2e000-7ed6a000 Deferred user32
\-PE 7ec50000-7ed6a000 \ user32
ELF 7ed6a000-7ee26000 Deferred comctl32
\-PE 7ed70000-7ee26000 \ comctl32
ELF 7ee26000-7ee6c000 Deferred advapi32
\-PE 7ee30000-7ee6c000 \ advapi32
ELF 7ef9d000-7efa8000 Deferred libnss_files.so.2
ELF 7efa8000-7efb2000 Deferred libnss_nis.so.2
ELF 7efb2000-7efc9000 Deferred libnsl.so.1
ELF 7efc9000-7eff0000 Deferred libm.so.6
ELF 7eff7000-7f000000 Deferred libnss_compat.so.2
ELF b7d34000-b7d38000 Deferred libdl.so.2
ELF b7d38000-b7e79000 Deferred libc.so.6
ELF b7e7a000-b7e91000 Deferred libpthread.so.0
ELF b7ea1000-b7fb2000 Export libwine.so.1
ELF b7fb4000-b7fcf000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
0000000a
0000000c 0
0000000b 0
00000008 (D) Z:\home\jake\Downloads\BetaNDSTokyoTrim.exe
00000009 0
 

philco1

Well-Known Member
Member
Joined
Apr 20, 2007
Messages
163
Trophies
0
XP
34
Country
United States
So far trimmer works well ... I cant seem to make the trimmer load up my BG on start up. I dont know why, I suppose its an error. Crop wizard seems to work except when you save the file, you need to save it to the picture being modified o/w a save of the file you have edited will not write to the disk.

I look forward to the stable release
biggrin.gif
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=IsG-jJcrlr0