ROM Hack ARM7 swapping batch file

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
As some of you may be aware the arm7 binary of the DS rom contains the "copy protection" code, is also the same for a large selection of roms meaning that you can swap out a unpatchable arm7.bin for and older patchable version should your cart of choice not have an update to cope with the new protection.
Rather than mess around with DSBuff/DSLazy I figured I would beat my ndstool batch files into something that would do it for you.
I am in a bit of rush so it will be the definition of quick and dirty (the clean up sections were quite literally tacked on in about 10 seconds), it does however work (and it does not need .net either).

To use, first here is the batch file code:

Edit: updated the batch file.

Code:
ndstool -x donate.nds -7 arm7new.bin
ndstool -x swap.nds -9 arm9.bin -7 arm7.bin -y9 y9.bin -y7 y7.bin -d data -y overlay -t banner.bin -h header.bin
copy arm7new.bin arm7.bin /y
ndstool -c finished.nds -9 arm9.bin -7 arm7.bin -y9 y9.bin -y7 y7.bin -d data -y overlay -t banner.bin -h header.bin

rmdir data\ /S/Q
rmdir overlay\ /S/Q
del *.bin

Have the rom you want to donate from called donate.nds and the rom to be swapped called swap.nds (I will sort this later so you can have whatever you want and I might even make a GUI) in the same directory and ndstool and the batch file.
Run it and up will spring a file called finished.nds, use this file as usual.

Some of you may not have used a batch file before, if so:
Copy that into notepad and save with the extension .bat
Take this new .bat file and place it in an empty directory along with the rom that is donating the ARM7.bin (named donate.nds), the one that is getting it (swap.nds) and ndstool.

If you do not have a copy of ndstool here is the one I use:
http://www.4shared.com/file/2170119/a40ec269/ndstool.html
Here is darkfader's mirror:
http://darkfader.net/ds/
Here is devkitpro (the package the tool originally comes from):
http://www.devkitpro.org/downloads/
 

kazumi213

Well-Known Member
Member
Joined
Oct 16, 2006
Messages
293
Trophies
0
XP
75
Country
Thanks FAST6191
wink.gif
 

Rayder

Mostly lurking lately....
Former Staff
Joined
Jan 14, 2007
Messages
6,607
Trophies
2
Location
USA
XP
648
Country
United States
Yeah, I found a file that does this just a little while ago.....I uploaded it to the GBAtemp Downloads under the Tools & Utilities sections....awaiting validation.

I verified that it works with Worms2 and Simple DS series 21 on the R4DS using the SimCity (J) ROM as the "doner". Any noob should be able to use this to fix ROMs that require the ARM7 fix.

It contains a readme (credits to the creators and instructions for use), a bat file, 2 folders (doner & patient) and NDStools.exe. It's 48k zipped.


Until it validates, you can get it here:

arm7_fix.zip (48k)
 

Rayder

Mostly lurking lately....
Former Staff
Joined
Jan 14, 2007
Messages
6,607
Trophies
2
Location
USA
XP
648
Country
United States

jmm0070

Member
Newcomer
Joined
Aug 26, 2007
Messages
14
Trophies
0
XP
33
Country
Cote d'Ivoire
Yeah, I found a file that does this just a little while ago.....I uploaded it to the GBAtemp Downloads under the Tools & Utilities sections....awaiting validation.

I verified that it works with Worms2 and Simple DS series 21 on the R4DS using the SimCity (J) ROM as the "doner". Any noob should be able to use this to fix ROMs that require the ARM7 fix.

It contains a readme (credits to the creators and instructions for use), a bat file, 2 folders (doner & patient) and NDStools.exe. It's 48k zipped.


Until it validates, you can get it here:

arm7_fix.zip (48k)


how do i make it work on ds-x? i can make the nds file but when i try to run it in the ds it just shows me a white screen, what rarely happens...
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
In what must seem almost a traditional response "When it gets done", I have about 15 different projects right now as well as my tendency to watch videos on my computer when I am on it does not help either.

I am also toying with the idea of copying the code across (it is quite simple in theory) rather than "rebuilding" but I will have to brush up on my C as autoit and ASM probably will not cut it (I would like to have a level of portability).

Guess I could tweak one of the save conversion apps though.
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
There is no download link as I the GUI is little more than a glorified picture at present.
There a few other scripts, explanations and GUI based methods linked in this thread and further links in those threads though.

Edit to acknowledge the edit above.
 

DwayneDays

New Member
Newbie
Joined
Sep 16, 2007
Messages
3
Trophies
0
XP
1
Country
United States
Sorry to sound like a huge noob here but im having a problem

The game thats giving me the problem is tiger woods 08. So I got the tw nds file and the hosigami (j) nds file created the batch file then put them all in the same folders as the ndstool and loaded up the batch. The finished file I keep getting is okb big. A I doing somthing monumentally wrong?

EDIT. And yes iv'e renamed the two files to swap and donate.nds
 

FAST6191

Techromancer
OP
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
I improved the batch file (forgot somehow that a full disassembly was not needed for the donor). Same everything else as before. @DwayneDays try the new version below.

Code:
ndstool -x donate.nds -7 arm7new.bin
ndstool -x swap.nds -9 arm9.bin -7 arm7.bin -y9 y9.bin -y7 y7.bin -d data -y overlay -t banner.bin -h header.bin
copy arm7new.bin arm7.bin /y
ndstool -c finished.nds -9 arm9.bin -7 arm7.bin -y9 y9.bin -y7 y7.bin -d data -y overlay -t banner.bin -h header.bin

rmdir data\ /S/Q
rmdir overlay\ /S/Q
del *.bin

Edit: updated first post and put in some work on the GUI. Hopefully the later will be ready some point in the next day or so.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Psionic Roshambo @ Psionic Roshambo:
    But my 3DS is loaded with emulators and 3DS games and DS games and GBA games probably thousands of games in total lol
  • Xdqwerty @ Xdqwerty:
    Brb going with my dad
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, are most of those games shovelware?
    +1
  • K3Nv2 @ K3Nv2:
    Nah gotta buy 3 1tb SD cards for 3ds the entire libraries need archived in my home
    +1
  • SylverReZ @ SylverReZ:
    >buys x3 1TB SD cards
    >stores the entire 3DS library on them
    >installs CFW
    >realised why I wasted loads of money and resources
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Lol no I clean my sets
  • K3Nv2 @ K3Nv2:
    Cause it's in my home ready to go
  • K3Nv2 @ K3Nv2:
    Like uremum
  • Psionic Roshambo @ Psionic Roshambo:
    But 100 games on SNES and Genesis and GBA then TG16 and NES and GB and GBC then all the other random systems and arcade games it all adds up lol
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Virtual Boy alone has probably 5 games!!! Lol
    +1
  • K3Nv2 @ K3Nv2:
    I won't mention any names in chat but some of us wastes $300 on preloaded hdds :tpi:
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, The PS5 had none.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Lol I spent more than that on a stuffed 4TB drive lol
  • K3Nv2 @ K3Nv2:
    Honestly I've yet to fill the 1tb internal drive on my ps5
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, 1) except final fantasy 16. 2) why would I have a console's whole catalogue if most of the games are either shovelware or terrible games?
  • Psionic Roshambo @ Psionic Roshambo:
    Kind of a waste, but the allure of all those games over 100,000
  • Psionic Roshambo @ Psionic Roshambo:
    Some shovel ware with low ratings you might enjoy more than the ratings would sugest
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Cruisn on the Wii is one of my personal examples of that, it's considered one of the worst games of all time, I loved it and completed it several times.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    The trick for me was to go into the settings and crank up the Wiimote sensitivity to the max and it gets twitchy but you can win that way lol
  • Psionic Roshambo @ Psionic Roshambo:
    Lots of other games I enjoyed that reviews would say otherwise lol
  • btei @ btei:
    lethal company servers are down rn
  • btei @ btei:
    my pocket pikachu is going crazy rn
  • Psionic Roshambo @ Psionic Roshambo:
    Pocket Pikachu sounds dirty lol
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Penischu, I choose you.
    SylverReZ @ SylverReZ: Lol