[Help] Mario 64 DS - Using minigame music in the main game?

Discussion in 'NDS - ROM Hacking and Translations' started by Kourin, Jun 20, 2016.

  1. Kourin
    OP

    Kourin Touhou Maniac

    Member
    903
    596
    Jan 24, 2016
    Australia
    Ripple Star
    I'm new to the musical side of hacking SM64DS and not sure how to do a lot of it.
    I had a good idea for a custom level using the music from the "Psyche Out!" minigame which is basically a slowed down version of the Jolly Roger Bay and Dire Dire Docks themes. But again, I'm not exactly sure both whether or not it's usable or how to do it.

    Can anyone help me out here? Thanks.
     
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,868
    9,780
    Nov 21, 2005
    United Kingdom
    I don't have the game in front of me or I might be able to show things.

    Generally though if you have a DS game it will use the SDAT format. If you have a song in one part of the game and want it to play instead of another song then it is pretty easy. Two main approaches -- if the songs use the same sound bank (sound bank = instrument list) you just have to change the pointers for the song in the header of the SDAT file to play the other song.
    If it uses a different bank then most would just change the bank the sequence thinks it wants, also in the header.
    I cover the latter in the PDF version of http://gbatemp.net/threads/gbatemp-rom-hacking-documentation-project-new-2016-edition-out.73394/ I think. The former will be as well but there are other ones like http://gbatemp.net/threads/audio-swapping-question.122534/#post-1634138

    The main problem with this is the song that originally plays will always play the changed one, most of the time this is not a problem as that is what people want (I started out doing this for Tetris to make it play the classic Tetris theme in vs and the main game and that sort of thing is what most people want). You might be able to go one step further and call the song itself with the level editor but I have not used the SM64DS editors in a while now and never really checked to see what music alterations you could do, I imagine it is not going to be terribly difficult to figure it out though even if it is not in the editor.