would like to hack my nds game and change the music

Discussion in 'NDS - ROM Hacking and Translations' started by loldart, Apr 17, 2008.

  1. loldart
    OP

    loldart Newbie

    Newcomer
    4
    0
    Mar 18, 2008
    Canada
    ok I never done anything like this. I would like to know if I can change it and not mess up my game [​IMG] . The game Yu-gi-oh 2008(US). I would like to change it with some mp3s I have that are like 1 min. So can anyone tell me anything on how to do it also I will need a step by step help guide(not that good with ds homebrew). I don't care if it all the same song or I get the wrong song changed over and over again just like to change one song if not two. Thanks in advance [​IMG]
     
  2. DanTheManMS

    DanTheManMS aka Ricochet Otter

    Member
    4,330
    107
    Jun 2, 2007
    United States
    Georgia
    I'm not entirely sure if that's at all possible. The DS doesn't have built-in functions for playing back mp3 files, and the DS game certainly wouldn't have any code to work with them. Perhaps if the game used some type of recorded audio format, you could try to convert your music to that format, but from my understanding a good portion of the games use tracker-based music, which you cannot easily convert recorded audio to.

    Long story short, I don't think what you want to do is possible.
     
  3. Mlacks

    Mlacks Banned

    Banned
    43
    0
    Sep 23, 2006
    United States
    http://www.csd.uwo.ca/
    Im in line for my masters in another 5 years
    Already at this point you get the general idea of what needs to be done.
    GO TO SCHOOL MIKE
     
  4. Heran Bago

    Heran Bago Where do puyo come from?

    Member
    3,018
    441
    Nov 6, 2005
    United States
    Foggy California
    Hahaha. Technically it could be possible. Have fun reverse engineering yu gi oh on an ASM level. A step by step guide:

    1) Backup your game as a ROM file.

    2) Disassemble

    3) Crack sound format

    4) convert mp3s to a more ds-friendly format

    5) code a new audio player into yu gi oh

    6) build the new rom


    If it can happen for genesis roms it's not at all impossible on the DS. Godspeed new guy.
     
  5. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,842
    9,734
    Nov 21, 2005
    United Kingdom
    At this point I would accuse Heran Bago of overthinking it.

    1) Back up rom. http://www009.upp.so-net.ne.jp/rudolph/nds/NDS_Backup/

    2) Disassemble: http://ezflash.sosuke.com/viewtopic.php?t=457 (this is more pull apart the file system for step 3). There are many other methods but a simple batch file works for me.

    3) Sound format: Assuming it is SDAT format (and disregarding region dupes I can still count the ones that are not on one hand) then it has well understood for quite some time. http://kiwi.ds.googlepages.com/sdat.html

    4) convert mp3s to a more ds-friendly format. The hardest part and most likely where you will come unstuck.
    There are multiple formats used by the DS but in reality they amount to three things
    Wave files: whole songs and audio clips

    Instrument files: normally notes rather than clips.

    Midi type files: play short clips or instrument files.

    Wave files are usually a form of PCM or ADPCM audio (well described in the link above)
    SSEQ: midi and can be made
    http://kiwi.ds.googlepages.com/midi2sseq.exe

    The rest you will have to make by hand. I am not sure how well the rom will take to you changing "midi" to wave files either (I imagine it would be dropped from the rom if not needed which means you would have to go through the steps from Heran Bago).

    Rebuilding the sound file: the hardest part. There are early tools but for a project like this it will be build your own or sit there with a hex editor for some time.
    Early stage rebuilder:
    http://tahaxan.arcnor.com/index.php?option...&topic=68.0

    Putting the DS file back together was covered in the link at 2)
     
  6. loldart
    OP

    loldart Newbie

    Newcomer
    4
    0
    Mar 18, 2008
    Canada
    Thanks [​IMG] that was very helpful also will post later this week if I do it right [​IMG] and not get all of the song backward [​IMG] later [​IMG]
     
  7. Dylan

    Dylan 100 MILES AND RUNNIN'

    Member
    1,639
    4
    Mar 7, 2008
    Sydney, Australia
    is it really that important to change the music? waste of time imo
     
  8. moo422

    moo422 Advanced Member

    Newcomer
    63
    0
    Mar 18, 2008
    Canada
    please update us (me) on what you find - the music in in YGO2K8 is painful to listen to.
     
  9. moo422

    moo422 Advanced Member

    Newcomer
    63
    0
    Mar 18, 2008
    Canada
    Great primer. Thanks!
     
  10. Goroke

    Goroke Newbie

    Newcomer
    4
    0
    Apr 25, 2008
    United States
    This is perfect!! I was gonna change the sound track from "Subarashi Kono Sekai: It's a Wonderful World" to "The World Ends with You"...Since the OST in the EUR/US version totally ruins the game...

    Thank you!