Nintendo DS bank.bin extractor
This extractor is for those NDS roms that only contain that one bank.bin file. There may be other formats to adjust the extension for and I'll update the script as soon as I find another game with this format.
Needs my func_getTYPE.bms to get file types.
# extract Nintendo DS *.bin files
# this is for NDS roms that only contain one single bin file
# supported games (more to come):
# - 1 vs 100
# - A Prendre ou A Laisser (FR)
# - Affari Tuoi (IT)
# - Dolphin Island: Underwater Adventures
# - Imagine: Teacher: Class Trip
# - Totally Spies! 3 - Sectet Agents
# (c) 2012-03-19 by AlphaTwentyThree of XeNTaX
get ZERO long
get DATASTART long
set FILES DATASTART
math FILES -= 8
math FILES /= 8
for i = 1 <= FILES
get OFFSET long
get SIZE long
get NAME basename
string NAME += "_"
string NAME += i
callfunction getTYPE 1
string NAME += EXT
log NAME OFFSET SIZE
Here's a guide how to get the music from these games:
I suppose you know how to extract *.nds roms, otherwise you wouldn't be here.
1. Extract the bin file and locate the *.xm tracker files
2. Open all xm files with a hex editor
3. Scroll to the end of each xm file to locate the sample list. The samples are named "XMSMP_000.snd" up to a number you need to locate. They _should_ be sequentially named but don't be too sure about this. Look, how many samples occur in the xm files. Note that they start at zero, so if the highest sample is "XMSMP_030.snd", there are 31 samples in total.
4. Make a new folder and copy the above number of files from the end to that folder. These should only have the extensions *.dat or *.ez
5. You may need to decompress the *.ez files (as soon as somebody cracks the compression).
6. To keep track of the samples, rename them to the names needed (XMSMP_####.raw).
7. All the files are normally uncompressed PCM files. The frequency isn't given, so you should try some possibilities. So far I only encountered 11025 Hz mono 16bit, but there may be games which use others. Import the samples to any audio editor with the given specs. Save them as wav.
7. Open each xm file in Modplug Tracker and add as many samples as given in the sample list (check again via hex if you forgot). Import the wav samples from the xm sample list. IMPORTANT: keep the same order as in the list!
8. Save the file with Ctrl+S. Modplug Tracker will create an ImpulseTracker (*.it) file from the xm.
If you like what you see, why not click the little Thank You
It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795