1. EpicLPer

    OP EpicLPer Nice unless you give me a reason to hate you ;)
    Member

    Joined:
    Mar 13, 2015
    Messages:
    1,056
    Country:
    Austria
    How To Extract Music (and other stuff) from 3DS Games

    This is an "easy" way for getting your favorite game music (and sometimes even sound effects) out of an already installed game on your 3DS.
    Due to the various occurrences of de- and encrypted CIA, 3DS and so on files we're going to use Braindump to dump the already installed game from your 3DS into a CXI file which we can then extract without any problem via ctrtool (aka. a "GUI" version included in PackHack).
    Of course this is probably not the "fastest way" but it certainly is an easy to understand one which works almost all times. I only had troubles trying to extract CIA and 3DS files due to missing encryption keys, this method will completely avoid that.

    ------------------------------------------------------------

    What You'll Need:
    • A modified 3DS capable of running homebrew in any way (Ninjhax, Ironhax, Menuhax, ...)
    • Big enough (Micro)SD card, dumps take 400MB to 1GB in size
    • Homebrew Launcher
    • Braindump (Github)
    • PackHack (I'm not sure if it's allowed to link this here, just search "PackHack 3DS" on Google if link gets removed)
      • Optionally you can just use "ctrtool" but I'm not going to describe this further here (for now).
    • Foobar2000 with the vgmstream plugin (to play/convert files afterwards)
    ------------------------------------------------------------

    Step 1 - Start Homebrew Launcher:
    • Be sure that your 3DS is able to run homebrew (duh, obvious...)
    • Put the Braindump files into the right folder on your SD card. The current right path for this should be something like /3ds/braindump/braindump.3dsx
    • Start your 3DS and open the Homebrew Launcher with your favorite exploit entry point (Ninjhax, Ironhax, Menuhax, and so on ...). See the above linked "Homebrew Launcher" link to see how to set those up.
      • Additional (only if you're an EmuNAND user, if this doesn't tell you anything ignore this): Make sure that you run the homebrew launcher exploit where your games are installed, as example if your games are located in EmuNAND make sure you start Homebrew Launcher via an additional exploit IN EmuNAND and not via Menuhax from a cold boot as example, else you won't be able to select the games installed on EmuNAND, it'll only display those present in SysNAND.

    Step 2 - Run Braindump:
    [​IMG] [​IMG]
    • If you've placed the Braindump files correctly you'll now see a new entry in Homebrew Launcher.
    • Select and start "Braindump" and choose the game you want to dump with right and left.
    • Once you've selected the right game press "A" and it'll immediately start dumping the game.
    • BE PATIENT. I can't stress this enough, JUST BE PATIENT NOW. The dumping process STILL CONTINUES in the background even tho it seems to be doing nothing anymore. It can take up to one or two hours depending on the game size and your (Micro)SD Card speed. Especially the first step (Dumping ExeFS) takes around 5 minutes even tho it's only like 6 MB big. The only time you can start worrying is when it's not moving or doing anything anymore for more than 30 minutes, just try again then.
    • When the dump is done the app will tell you, simply press "Start" and you're done on your 3DS. You can now either turn it off or do whatever else you'd like to do with it.

    Step 3 - Copy CXI on your PC:
    [​IMG]
    • Extract the downloaded "PackHack" ZIP to a safe place wherever you like.
    • Put the (Micro)SD Card into your PC now.
    • Open the card and you'll see one large file in the root of your card now. If you've enabled file extensions in your explorer you should see a ".cxi" file and a bunch of numbers in front of it.
    • Copy this files (optimal) into the PackHack-Directory (there should be a file called "HackingToolkit.exe", just put it there to make things easier).

    Step 4 - Start the Tool and enter "CXI":
    [​IMG] [​IMG] [​IMG] [​IMG]
    • Run "HackingToolkit.exe" and once asked enter "CXI" into the console. Press Enter.
    • On the next step insert the filename of the CXI file you just copied into the directory WITHOUT the .cxi at the end (you can use the Tab-Key on your keyboard to auto-fill this but don't forget to delete the .cxi at the end).
    • Press Enter once again and see how the files just fly right by!
    • Wait a few seconds/minutes until it'll ask you if you want to decompress code.bin, you can either answer Y or N, doesn't matter.
    • Once done close the tool.

    Step 5 - Play/Convert the files with Foobar2000:
    Cave Story (originally shown above) came with WAV files as music. Here shown is "The Legend of Zelda - A Link Between Worlds".
    [​IMG] [​IMG] [​IMG]
    • Once the extraction is done and the tool is closed you'll notice that inside the "HackingToolkit.exe" folder you'll find a new folder called "romfs". This is the extracted, decrypted and ready to use stuff from your game.
    • Simply open the folder and search for the music files. Since every game is a bit different built up there's no exact place where the music files are. For Nintendo games they are usually in a folder called "sound" tho.
    • If not already done install Foobar2000 and the vgmstream plugin mentioned in the "What You'll Need" list above.
      • A little help for installing those 2 things: Simply download and install Foobar2000 like you'd normally do with any other application on Windows. After that download the plugin and double-click on it, Foobar2000 will automatically open and ask you to install the plugin, additionally it'll ask you for Admin permissions to update and link the new file formats on Windows to Foobar2000.
    • Once you've installed and set up Foobar2000 correctly you'll now be able to play the music files by either double-clicking on them or rightclick -> "Open with..." and Foobar2000 from there on.
    • If you want to convert these files into MP3/OGG/WAV or any other format you like you simply have to play the file and right-click it in Foobar2000, there'll be a "Convert" option which is pretty self explanatory when you use it.

    ------------------------------------------------------------

    That's basically it!
    Have fun playing around with this and I hope I've covered everything in here. If you're missing something just tell me and I'll try my best to add it here.
     
    Last edited by EpicLPer, Feb 7, 2016
  2. EpicLPer

    OP EpicLPer Nice unless you give me a reason to hate you ;)
    Member

    Joined:
    Mar 13, 2015
    Messages:
    1,056
    Country:
    Austria
    *** Guide Changelogs ***

    14.01.2016 - 12:10:
    INITIAL GUIDE VERSION
    14.01.2016 - 12:57: Added Screenshots
    14.01.2016 - 13:07: Added SD Card in "What You'll Need" section
    07.02.2016 - 16:15: Added Braindump Github link
     
    Last edited by EpicLPer, Feb 7, 2016
  3. Ruby Gloom

    Ruby Gloom GBAtemp Maniac
    Member

    Joined:
    Sep 25, 2015
    Messages:
    1,557
    Country:
    New Zealand
    Pretty neat... I'll give it a go. Thanks.
     
  4. daniel26150

    daniel26150 GBAtemp Regular
    Member

    Joined:
    Jan 31, 2008
    Messages:
    222
    Country:
    Mexico
    I have a doubt... With this I can make an undub version of smash bros 3DS?
     
  5. Angely

    Angely GBAtemp Regular
    Member

    Joined:
    Mar 30, 2015
    Messages:
    198
    Country:
    Netherlands
    Did you mean a question? & yes I think you can make undubs if you can get the audiofiles. This guide is kind of similiar of @Asia81's guide.
     
    Last edited by Angely, Jan 18, 2016
  6. Zeriel

    Zeriel Squid Kid
    Member

    Joined:
    Jul 10, 2015
    Messages:
    563
    Country:
    Can you use this to translate a game? Is there a way to make the game back into a CIA file so someone else can install it?
     
  7. JunTheBobOmbAce

    JunTheBobOmbAce Double Trouble
    Member

    Joined:
    Sep 9, 2015
    Messages:
    152
    Country:
    United States
    Can you use this to extract music from DLC too? I can't really seem to extract the music that plays while you're playing minigames in Rusty's Real Deal Baseball. Just system sounds.
     
  8. Aria_Kirishima

    Newcomer

    Joined:
    Jan 6, 2017
    Messages:
    6
    Country:
    Sincerelly thanks. Now I hope I could make my first UNDUB on Nintendo 3DS :)
     
  9. Natural

    Natural GBAtemp Regular
    Member

    Joined:
    Jul 25, 2014
    Messages:
    297
    Country:
    United States
    I got an error after I left it on to dump overnight. "Failure during dumping. Output data is incomplete!"

    I finally dumped correctly but got only two bcstm files in the sound folder after using PackHack.
     
    Last edited by Natural, Dec 1, 2017
  10. amitsuja130

    amitsuja130 Newbie
    Newcomer

    Joined:
    May 6, 2018
    Messages:
    3
    Country:
    Bangladesh
    Can you extract voice from Mario and Luigi Dream Team and Mario and Luigi Paper Jam
     
  11. gcunit

    gcunit Advanced Member
    Newcomer

    Joined:
    Nov 11, 2008
    Messages:
    69
    Country:
    United States
    This looks like a nice tutorial, thanks for posting it. However, I've been having braindump problems. I couldn't launch it at first, so I deleted the xml file. Now it runs, but it keeps throwing up an error when it comes to dumping the RomFS.

    I appreciate you may not have dabbled in this for a while now, but any help on this, or directing to a more recent method for extracting music, would be great.
     
  12. Krakening

    Krakening Member
    Newcomer

    Joined:
    Jan 6, 2019
    Messages:
    18
    Country:
    United States
    I might have done this correctly, but when I dump the music for Mario and Donkey Kong, it just dumps thousands of sound effects and instruments that makes up the game music. They're usually not even a second long.
     
  13. j0rv4r

    j0rv4r Member
    Newcomer

    Joined:
    Dec 26, 2018
    Messages:
    27
    Country:
    Uruguay
    I only get null files after extraction
     
  14. SynthwaveFox

    SynthwaveFox Newbie
    Newcomer

    Joined:
    Jun 21, 2020
    Messages:
    4
    Country:
    United States
    I know this is a pretty old guide, but for some reason, when I go to launch Braindump in homebrew, it doesn't give me a choice to select a title. It just starts dumping the homebrew launcher's files. I can't choose a game to dump.
     
  15. PabloMK7

    PabloMK7 Red Yoshi! ^ω^
    Developer

    Joined:
    Feb 21, 2014
    Messages:
    2,364
    Country:
    Spain
    As you have said, this is a very old guide. Braindump doesn't work with the new homebrew launcher.
     
  16. SynthwaveFox

    SynthwaveFox Newbie
    Newcomer

    Joined:
    Jun 21, 2020
    Messages:
    4
    Country:
    United States
    So what am I supposed to do? I'm trying to make my game cartridge into a .cxi file. It has to be a CXI because .3ds and .cia don't decrypt with PackHack. They just turn into .bin files. The only format I am successfully able to get files out of is a .cxi, which turns into folders when put through PackHack.

    Unless you know a way to get sounds and stuff from .bin files, because that's all PackHack generates after decrypting a .cia or .3ds.

    Edit: Or at least be able to get sounds from .cia or .3ds. Just some way to get files from games.
     
    Last edited by SynthwaveFox, Jun 21, 2020
  17. SynthwaveFox

    SynthwaveFox Newbie
    Newcomer

    Joined:
    Jun 21, 2020
    Messages:
    4
    Country:
    United States
    I guess my real question is how do you extract files from .cia or .3ds? I can extract files from .cxi just fine.
     
  18. lone_wolf323

    lone_wolf323 GBAtemp Psycho!
    Member

    Joined:
    May 27, 2011
    Messages:
    3,202
    Country:
    Canada
  19. Souperman9

    Souperman9 Advanced Member
    Newcomer

    Joined:
    Dec 1, 2017
    Messages:
    95
    Country:
    Australia
    If you have the game installed, you can mount it in GodMode9 and extract the romfs folder.
     
  20. SynthwaveFox

    SynthwaveFox Newbie
    Newcomer

    Joined:
    Jun 21, 2020
    Messages:
    4
    Country:
    United States
    Yeah I've gone through that guide. The problem is that I can't turn CARTRIDGE games as CXI, only .3ds or .cia. Doesn't give me the option like it does with other titles.

    If I use that tool to extract .3ds or .cia, it won't let me view the files. They all just turn into .bin files unlike with .cxi where they turn into folders.

    What am I supposed to do to get this to work like with installed titles? I don't have the cartridge installed to the SD at all, so I'm unsure.

    P.S.: I'm very sure there's a detail I'm missing that could be right in front of me. Not trying to be rude at all.
     
    Last edited by SynthwaveFox, Jun 22, 2020
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - [Tutorial], extract, music