Hacking NDSTokyoTrim - batch trimmer with wifi detection

perkele

Well-Known Member
Member
Joined
Jul 19, 2006
Messages
126
Trophies
0
Website
Visit site
XP
112
Country
Finland
Ok i'll give you a hint. In order to replace the current background you need to create an encripted one, matching the same encription I used, which is based on random seeds, distribute it across the exe in several areas (it's not embedded as a resource), and have the checksum of various parts of it match certain values that affect the final rom size and trimming process. No background = wrong trimming.
Nice, now you admit you took all this effort just to keep your background picture from being altered, instead of putting that time into making a skinning engine or an easy to make option to show or hide the background.
Smart move.
 

ZAFDeltaForce

Specialist
Member
Joined
Sep 9, 2006
Messages
2,794
Trophies
1
XP
583
Country
Singapore
Ok i'll give you a hint. In order to replace the current background you need to create an encripted one, matching the same encription I used, which is based on random seeds, distribute it across the exe in several areas (it's not embedded as a resource), and have the checksum of various parts of it match certain values that affect the final rom size and trimming process. No background = wrong trimming.
Nice, now you admit you took all this effort just to keep your background picture from being altered, instead of putting that time into making a skinning engine or an easy to make option to show or hide the background.
Smart move.
Seeing you as a rather new member, I strongly recommend you read this before this evolves into a flame war.

EDIT: Grammar
 

BrianTokyo

NDSTokyoTrim Dev.
OP
Member
Joined
Jun 28, 2007
Messages
658
Trophies
0
Website
www.eden.fm
XP
303
Country
Ok i'll give you a hint. In order to replace the current background you need to create an encripted one, matching the same encription I used, which is based on random seeds, distribute it across the exe in several areas (it's not embedded as a resource), and have the checksum of various parts of it match certain values that affect the final rom size and trimming process. No background = wrong trimming.
Nice, now you admit you took all this effort just to keep your background picture from being altered, instead of putting that time into making a skinning engine or an easy to make option to show or hide the background.
Smart move.

Yep, although I have no need to explain what I spend my time on or what I put effort into, to anyone.

At first I didn't care much about the background tbh, but seeing how people changed it I got some motivation to try and see if I could make it really hard/impossible to replace; as for people using other backgrounds I don't really care, but achieving this protection was a goal.

Part of this also works for the embedded DLLs, the libraries to extract unrar and 7z archives (not made by me). Other trimmers include them in the zip and stay in the same application folder. That can lead to people downloading fake libraries which are actually virus, so I thought embedding them in the exe and loading them straight into memory would be nice, and also convenient when taking the trimmer around, as you only need the single exe.

This technique for loading the DLLs into memory without previously extracting to disk seems to crash the app in Vista 64 though, so I might need to change that for a 64-bit Vista release. (the linked test doesn't have rar/7z support, only zip, for which I didn't require a DLL).
 

Ducky

QUACKJECTION!
Member
Joined
Oct 13, 2007
Messages
1,084
Trophies
0
Age
28
Location
Duckling Land!
Website
Visit site
XP
351
Country
Iceland
I never thought.. A japanese/chinese guy would be anime fan..
blink.gif
 

Grimalkin

Waaaaaaaah!
Member
Joined
Jun 9, 2006
Messages
1,173
Trophies
0
Website
Visit site
XP
141
Country
Canada
Er... who would stick with 98? Get an new O/S man.

Brian does good work, so no one should be complaining. As I said before, if you don't like it, don't use it. End of discussion.
 

jelbo

Ōkami!
Member
Joined
Sep 12, 2003
Messages
854
Trophies
1
Location
Netherlands
Website
cursors.pocketheaven.com
XP
687
Country
Netherlands
Ok i'll give you a hint. In order to replace the current background you need to create an encripted one, matching the same encription I used, which is based on random seeds, distribute it across the exe in several areas (it's not embedded as a resource), and have the checksum of various parts of it match certain values that affect the final rom size and trimming process. No background = wrong trimming.
Nice, now you admit you took all this effort just to keep your background picture from being altered, instead of putting that time into making a skinning engine or an easy to make option to show or hide the background.
Smart move.

Yep, although I have no need to explain what I spend my time on or what I put effort into, to anyone.

At first I didn't care much about the background tbh, but seeing how people changed it I got some motivation to try and see if I could make it really hard/impossible to replace; as for people using other backgrounds I don't really care, but achieving this protection was a goal.

Part of this also works for the embedded DLLs, the libraries to extract unrar and 7z archives (not made by me). Other trimmers include them in the zip and stay in the same application folder. That can lead to people downloading fake libraries which are actually virus, so I thought embedding them in the exe and loading them straight into memory would be nice, and also convenient when taking the trimmer around, as you only need the single exe.

This technique for loading the DLLs into memory without previously extracting to disk seems to crash the app in Vista 64 though, so I might need to change that for a 64-bit Vista release. (the linked test doesn't have rar/7z support, only zip, for which I didn't require a DLL).
Haha, awesome post. OK, knowing about the niftyness of NDSTokyoTrim's insides makes it quite cool
biggrin.gif
I'll go ahead and give it a try sometime. So far I've been using trim.exe in my SendTo folder.
 

springah

Well-Known Member
Member
Joined
Aug 1, 2006
Messages
118
Trophies
1
Age
40
Location
Sydney, Australia
Website
Visit site
XP
305
Country
eggs!

sorry to offend, im just not "into" anime girls. anime in general is cool though. no reason to delay the bg change option because of me
tongue.gif


but hey, great prog, use it all the time. just simply not a fan of anime girls who look 12 years old with hardly any clothes on.
 

Scalpos

Member
Newcomer
Joined
Nov 27, 2006
Messages
10
Trophies
0
XP
94
Country
France
Thank you soooooo much BrianTokyo for this superb trimmer and your quite interesting site !!!
I can't wait for the option to rename trimmed roms, this would make NDSTokyoTrim THE PERFECT NDS trimmer.

Could you please tell me the name of your signature's anime ?

Regards
 

BrianTokyo

NDSTokyoTrim Dev.
OP
Member
Joined
Jun 28, 2007
Messages
658
Trophies
0
Website
www.eden.fm
XP
303
Country
Thank you soooooo much BrianTokyo for this superb trimmer and your quite interesting site !!!
I can't wait for the option to rename trimmed roms, this would make NDSTokyoTrim THE PERFECT NDS trimmer.

Could you please tell me the name of your signature's anime ?

Regards

Scene numbers thing: most probably in the next version

Anime: it's "The Melancholy of Haruhi Suzumiya" (Suzumiya Haruhi no Yuutsu)

%5Ba.f.k.%5D%20The%20Melancholy%20of%20Haruhi%20Suzumiya%20-%2003.avi%20-%2000001.jpg
 

Harley77

Member
Newcomer
Joined
Jul 18, 2007
Messages
14
Trophies
0
XP
100
Country
United States
The App is great, but even ignoring the Japedophile background, The pic makes the text way too hard to read. Gotta pass until that background becomes optional.
 
General chit-chat
Help Users
    SylverReZ @ SylverReZ: @AncientBoi, 10/10 ratings from every gaming outlet. +1