gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Using DsGraph to Extract Models from Metroid Prime Hunters

#51950 - Hylian Hero - Wed Aug 24, 2005 10:49 pm

Please, how do I do this?

I have DsGraph and the Metroid Prime Hunters rom. What else do I need?

#51952 - Mr Snowflake - Wed Aug 24, 2005 11:17 pm

Use the build in /? or something of the proggie.

#51953 - Hylian Hero - Wed Aug 24, 2005 11:27 pm

Hmm...

I've been looking around, and I learned I need ndstool to extract the files from the rom dump, then I can view the models with dsgraph. But apparently, ndstool is not even available in complete form and I have to "compile" it from the source code! That's encouraging.

So... How do I "Compile" ndstool?

#51967 - The 9th Sage - Thu Aug 25, 2005 4:02 am

Hylian Hero wrote:
Hmm...

I've been looking around, and I learned I need ndstool to extract the files from the rom dump, then I can view the models with dsgraph. But apparently, ndstool is not even available in complete form and I have to "compile" it from the source code! That's encouraging.

So... How do I "Compile" ndstool?


Why not just grab a compiled NDStool directly from Darkfader?
_________________
Now with 20% More Old Man from Zelda 1 than ever before!

#51982 - Hylian Hero - Thu Aug 25, 2005 7:56 am

eh?

I didn't know it was already compiled. I thought I tried that one and it was just an execution that didn't do anything.

#51985 - headspin - Thu Aug 25, 2005 9:19 am

It is a command line program, so you need to open a "dos box" (aka command prompt) and "cd" (change directory) to the directory where ndstool.exe is located or download Open Command Window Here from Microsoft PowerToys, and you can right click a folder and the command prompt will open and automatically be cd'ed to that directory.

If you type "ndstool /?" it will display a list of parameters

Quote:
Nintendo DS rom tool 1.15 - May 17 2005 by Rafael Vuijk (aka DarkFader)
Show header: -i game.nds
Fix header CRC -f game.nds
List files: -l game.nds
Create -c game.nds
Extract -x game.nds
Create/Extract options:
ARM7 executable -7 arm7.bin
ARM9 executable -9 arm9.bin
ARM7 RAM address -r7 address (optional, 0x for hex)
ARM9 RAM address -r9 address (optional, 0x for hex)
ARM7 RAM entry -e7 address (optional, 0x for hex)
ARM9 RAM entry -e9 address (optional, 0x for hex)
files -d directory (optional)
header template -h header.bin (optional)
banner -b icon.bmp "title;lines;here" (optional)
banner binary -t banner.bnr (optional)
logo binary -o logo.bin (optional)
unique ID filename -u game.uid (optional, auto generated)
verbose -v


These are "command line parameters" that you must place after the program name, separated by a space.

Eg. ndstool -d test -o logo.bin -v
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#52026 - Hylian Hero - Thu Aug 25, 2005 4:51 pm

Ok Ok, cool this is working.

Now I need the command to extract stuff from the rom. I think I've seen that somewhere around here.

#52028 - tssf - Thu Aug 25, 2005 5:03 pm

Hylian Hero wrote:
Ok Ok, cool this is working.

Now I need the command to extract stuff from the rom. I think I've seen that somewhere around here.


The command is in the post above your last one. It really wasn't that hard to miss..

#52030 - Hylian Hero - Thu Aug 25, 2005 5:32 pm

Oh, heh heh. I thought it was something like:

ndstool.exe -x rom_name.nds output_directory

#52036 - Hylian Hero - Thu Aug 25, 2005 7:11 pm

Ok, I think I got the hang of these command parameters (by the way I realize this is probably old to some of you guys) so...

I brought up the list of command parameters and then entered:

ndstool -x MPH.nds -d directory

That created a folder for me that has all the data in it. Now what I really want is the models, but they're in an unknown format. Somewhere on here I remember hearing about a converter, but I have to keep looking for that. Anyone know where I can get it?

#52055 - Hylian Hero - Thu Aug 25, 2005 11:56 pm

Ok. I got DsGraph working so now I can look at the models. I still need some way to open them in a 3D editor. Anyone know of a converter or something?