ROM Hack how to extract files from nds file

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,311
Country
United Kingdom
I cover most tools in the guide
https://gbatemp.net/threads/gbatemp-rom-hacking-documentation-project-new-2016-edition-out.73394/

For my personal use I still use ndstool and batch files.

Still main weapons of choice

ndstool, it has a GUI frontend in the form of DSBuff and DSLazy if you want

Crystaltile2 has such abilities, including those to handle compression.

I keep a copy of ndsts around ( http://www.no-intro.org/tools.htm ). It is mainly good for single files but it is quick and easy, not to mention parses info about the game which can useful elsewhere.

tinke is a nice tool as well, it is sort of like a file focused version of crystaltile2 which I find makes it a touch less flexible for what I normally do but for others it does really really well.

Sound in most games is handled by the SDAT sound format. There are DS side players and things that try to convert them to midi which are hit and miss (or wave if it is that). For most purposes then VGMtoolbox is used to make 2sf files which when plied with the right plugins (vio2sf) you get the usual suspects in game based audio format playback to handle.
The overwhelming majority of DS games exclusively use the SDAT format, however there are others https://gbatemp.net/threads/the-various-audio-formats-of-the-ds.305167/ and some games will use SDAT and one of the others.

3d models (by the way the DS still has extensive 2d capabilities which it uses all the time) tend to be in the format NSBMD (which does models and some textures, though not all models use textures and are commonly just raw colours or have some vertex colours to spice things up). Standalone textures come in the format NSBMT and animations in NSBCA. Afraid there are not many nice and broadly compatible 3d model viewers like we have seen on the 3ds and other things and they all have their little quirks. I cover a few in the guide linked at the start, though MKDS course modifier will also want to be thrown in here. Emulators like no$gba can also be helpful here.
 

jonko_

Active Member
Newcomer
Joined
May 22, 2021
Messages
28
Trophies
0
Age
29
XP
741
Country
United States
As has already been said in this three year old thread, there are a variety of options -- ndstool/DSLazy, crystaltile2, Tinke, etc.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,311
Country
United Kingdom
personally, I want to be able to extract it like a zip file. Anyone know how to do that?
That means many things to many people.

If you mean I want to be able to right click and have it happen... I know of no existing tools (best we have there is some things will parse the ROM icons and display them in Windows) but you could probably get something like ndstool and stick it in the path and make something use a command line command on a file with a wildcard and have that in a context menu. Personally I would rather keep my copy of ndstool and associated batch files in a folder that is bookmarked/easy to get to and copy-paste before double clicking on that (indeed it is what I did for many years, today I take ROMs to my ndstool folder though as I am not doing so many as when new games were dropping).
https://docs.microsoft.com/en-gb/wi...ers?redirectedfrom=MSDN#customize_verb_static


If you mean open in a program and be able to select one or more files to be able to punt to a folder of your choice then most things there will have some kind of option.

Crystaltile2 (open ROM, click the little DS icon on the right, it will open up a new menu that should be very familiar to any GUI archive/compression program you might have used) and have all manner of nice options on right click as well. Full ROM extraction (and rebuild but I am less a fan of that) is an option on another dropdown menu of the main program as well.

Tinke and similar programs will tend to have a subtly different approach (crystaltile2 is a hex editor/tile editor/assembly editor that happens to be DS file system aware, where most of the others are archive parsers that happen to have tile editors and hex editors and... built in).

Even the lesser choices in something like ndsts ( https://no-intro.org/tools.htm ) and ndshv will only be that by virtue of doing one file at a time and only importing matching file size items.

You also just mentioned extract.
 

LeafDoesStuff

Member
Newcomer
Joined
Aug 4, 2022
Messages
6
Trophies
0
Age
17
Location
No
XP
43
Country
United States
Hi, so I wanted some sounds from a game to use in some fan projects, but I found no already available rips anywhere, and I have no modding experience. Anyone got an easy way to do it that is simple enough that an idiot can do it?
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,450
Country
Canada
Hi, so I wanted some sounds from a game to use in some fan projects, but I found no already available rips anywhere, and I have no modding experience. Anyone got an easy way to do it that is simple enough that an idiot can do it?
Did you even bother reading the rest of the thread..? The posts are old, but not much has changed. If you want more help, you're going to have to start by naming the game you're looking at.

You would probably be much better off just re-recording the sounds rather than trying to rip them.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,311
Country
United Kingdom
Simple things and ROM hacking are not always going to dovetail together ( https://gbatemp.net/threads/the-various-audio-formats-of-the-ds.305167/ ), however for sounds then the vast majority of DS games use the SDAT audio format which has provisions for midi like sequenced audio, simple sound effects of wave type things and long form streamed wave audio.
If you only want to rip them for your own uses on a PC or something you do also have the option of using an emulator and loop back audio, a line in cable and more besides. Combine it with a light bit of hacking (mute background tracks or other noises as befits your whims, repoint things so if there is a secret theme that only a 20 hour sidequest can unlock and no test menu instead just plays it on the title screen or something) and can be even easier as there is a SDAT player using DS homebrew.

There are a variety of tools people will use.

Best of the bunch.

VGMtrans.
https://github.com/vgmtrans/vgmtrans
About as close as you might get to drag and drop.
VGMtoolbox
https://sourceforge.net/projects/vgmtoolbox/
Will need some hard to come by extras to make it work properly (some adapted part of a ROM) but this is what was probably used make all those nice 2sf files you can download to have clear playback on a suitably plugin laden version of winamp or foobar 2000.

ndssndext.
https://gbatemp.net/download/nds-sound-extractor.28818/
Will attempt to convert the SSEQ to midi, did better than the earlier sseq2midi but not as nice as the above. Most audio stings though will be swav at some level which is wave and easy enough.
Apparently there is a more modern rewrite/redo in https://github.com/Oreo639/sdatxtract as well but never tried it.

crystaltile2 has some limited abilities here (click the little DS icon on the right hand side of the toolbar, find the sdat file in the new window, right click that and one of the options should bring up a new window again with things to look at and export/play.

vgmusic studio seems to be rising up the ranks.
https://github.com/Kermalis/VGMusicStudio

Probably a bunch of others I am missing but should be a start.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    so AMD seem to finally be starting to take AI seriously
  • Psionic Roshambo @ Psionic Roshambo:
    Oh yeah those new 8000 CPUs have AI cores built in that's interesting
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe they plan on offloading to the CPU?
  • Psionic Roshambo @ Psionic Roshambo:
    Would be kinda cool to have the CPU and GPU working in random more
  • Psionic Roshambo @ Psionic Roshambo:
    Tandem even
  • The Real Jdbye @ The Real Jdbye:
    i think i heard of that, it's a good idea, shouldn't need a dedicated GPU just to run a LLM or video upscaling
  • The Real Jdbye @ The Real Jdbye:
    even the nvidia shield tv has AI video upscaling
  • The Real Jdbye @ The Real Jdbye:
    LLMs can be run on cpu anyway but it's quite slow
  • BakerMan @ BakerMan:
    Have you ever been beaten by a wet spaghetti noodle by your girlfriend because she has a twin sister, and you got confused and fucked her dad?
  • Psionic Roshambo @ Psionic Roshambo:
    I had a girlfriend who had a twin sister and they would mess with me constantly.... Until one chipped a tooth then finally I could tell them apart.... Lol
  • Psionic Roshambo @ Psionic Roshambo:
    They would have the same hair style the same clothes everything... Really messed with my head lol
  • Psionic Roshambo @ Psionic Roshambo:
    @The Real Jdbye, I could see AMD trying to pull off the CPU GPU tandem thing, would be a way to maybe close the gap a bit with Nvidia. Plus it would kinda put Nvidia at a future disadvantage since Nvidia can't make X86/64 CPUs? Intel and AMD licensing issues... I wonder how much that has held back innovation.
  • The Real Jdbye @ The Real Jdbye:
    i don't think nvidia wants to get in the x64 cpu market anyways
  • The Real Jdbye @ The Real Jdbye:
    you've seen how much intel is struggling getting into the gpu market
  • The Real Jdbye @ The Real Jdbye:
    and nvidia is already doing ARM
  • The Real Jdbye @ The Real Jdbye:
    i don't think they want to take more focus away from their gpus
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I think Nvidia s future lays in AI GPU acceleration stuff if they can get that going it's going to be super interesting in the long term
  • Psionic Roshambo @ Psionic Roshambo:
    AI assisted game creation might become a thing
  • Psionic Roshambo @ Psionic Roshambo:
    At least that's something I think would be pretty cool.
  • Psionic Roshambo @ Psionic Roshambo:
    Don some VR glasses and gloves and talk to the computer and paint entire worlds
  • Psionic Roshambo @ Psionic Roshambo:
    "OK Cortana I want that mountain a little taller and more snow on top, and I would like some random ancient pine forest around the bottom"
  • Psionic Roshambo @ Psionic Roshambo:
    "Now we need a spring fed river flowing down the north side and add some wild life appropriate for the biome"
  • Psionic Roshambo @ Psionic Roshambo:
    Many TBs of assets and the programming of something like that is going to be tough but I think it's something we might see in 20 years maybe sooner
  • The Real Jdbye @ The Real Jdbye:
    @Psionic Roshambo AI assisted game creation is kinda already here, there was recently that AI that can turn any 2D image into a fully modeled 3D scene, it's not perfect, but it's a starting point, beats starting from zero
    The Real Jdbye @ The Real Jdbye: @Psionic Roshambo AI assisted game creation is kinda already here, there was recently that AI...