Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old January 6th, 2010 (4:32 PM). Edited April 2nd, 2010 by D4Ni3L.
D4Ni3L's Avatar
D4Ni3L D4Ni3L is offline
     
    Join Date: Jul 2008
    Gender:
    Posts: 27
    Hello, i've been looking for a way to change songs in diamond for a LONG time and recently i found out how to do it. But its not very accurate.


    Programs Needed
    ___________________
    - Nitro Explorer 2
    - Crystal Tile 2
    - DS Roms

    My Research so far
    ___________________
    Well I opened a couple of roms with Nitro Explorer 2 and found out the sound data file which is mostly ".sdat" and they cotain the music files which are in folders based on what type they are. They can be found in Data/Sound/sound_data.sdat in a pokemon diamond rom. for other roms they have a similar name.
    The folders that can be found in "sound_data.sdat" are "Bank" which contains files that are ".sbnk" and there's a "Sequence" folder that has ".sseq" files and there's the "Wave Archive" which has ".swar" files in it. "sbnk" & ".swar" files seem to have the notes and the digital instruments for the songs. i assume that they have to be replaced too if you want the song to work correctly. Because i tried it and the battle song sounded very glitchy. Now that i'm done with the facts lemme show you how to use them:
    With crystal tile 2 i opened a kirby squeek squad rom and then exported a .sseq file (side note: the songs you want to put in your game must be smaller or equall to the original one, NOT bigger) and saved it as "SEQ_BA_POKE.sseq" which is the music for wild pokemon battles. Then i opened pokemon Diamond's "sound_data.sdat" and imported the saved ".sseq" from kirby to pokemon diamond, and then saved it. As i said before it sounded very glitchy but there's still hope as long as the connections between the ".sbnk" & ".swar" files with ".sseq" can be found and the mystery behind which ".sbnk" & ".swar" files to replace can be solved.
    If anyone knows how to continue, please contribute to this thread. Thank you.

    Edit: Thanks to Jhauk for finding this page containing information about music hacking for NSMB which is similar to D/P
    __________________

    Reply With Quote

    Relevant Advertising!

      #2    
    Old January 12th, 2010 (2:17 PM).
    Great Mazinger's Avatar
    Great Mazinger Great Mazinger is offline
    nope.avi
       
      Join Date: Sep 2009
      Age: 25
      Gender: Male
      Posts: 85
      Presumably, the track sounding strange can be partly blamed on the the two games storing instruments in different places in the Sound Bank/Wave Archive files.

      Diamond, Pearl and Platinum generally follow the General MIDI standard (with some exceptions), so that a track in the song set to instrument number 57 would make a trumpet sound. In Kirby Squeak Squad, the trumpet instrument is found at patch number 13 instead.
      __________________
      Reply With Quote
        #3    
      Old January 12th, 2010 (2:31 PM).
      Iacobus's Avatar
      Iacobus Iacobus is offline
      sǝɯɐɾ
         
        Join Date: Dec 2003
        Location: Belgium
        Age: 26
        Gender: Male
        Posts: 62
        You should take a look at this (Documentation by kiwi.ds on the sdat format + a SSEQ2MIDI and MIDI2SSEQ converter).
        __________________
        Reply With Quote
          #4    
        Old January 27th, 2010 (1:41 PM). Edited January 27th, 2010 by Great Mazinger.
        Great Mazinger's Avatar
        Great Mazinger Great Mazinger is offline
        nope.avi
           
          Join Date: Sep 2009
          Age: 25
          Gender: Male
          Posts: 85
          So, I did a quick test. Grabbed a MIDI, changed the instrument patches to match up with the game's instrument bank, converted it to SSEQ and imported it.

          The instruments themselves were fine, but the track was glitchy and jumpy. I don't know if this is the fault of the MIDI -> SSEQ conversion process, the method of SSEQ insertion or what.

          e: Well, I copied a SSEQ file directly from Legacy Of Ys: Books 1 & 2 to Platinum (they both use General MIDI instrument patches) and it sounded fine.
          __________________
          Reply With Quote
            #5    
          Old March 4th, 2010 (7:42 PM).
          Umbreonic Aura Umbreonic Aura is offline
             
            Join Date: Mar 2010
            Gender: Male
            Posts: 42
            Quote:
            Originally Posted by Great Mazinger View Post
            So, I did a quick test. Grabbed a MIDI, changed the instrument patches to match up with the game's instrument bank, converted it to SSEQ and imported it.

            The instruments themselves were fine, but the track was glitchy and jumpy. I don't know if this is the fault of the MIDI -> SSEQ conversion process, the method of SSEQ insertion or what.

            e: Well, I copied a SSEQ file directly from Legacy Of Ys: Books 1 & 2 to Platinum (they both use General MIDI instrument patches) and it sounded fine.
            That means it is most likely the conversion,
            Or the Midi was not patched properly?
            Reply With Quote
              #6    
            Old March 10th, 2010 (12:14 PM).
            Great Mazinger's Avatar
            Great Mazinger Great Mazinger is offline
            nope.avi
               
              Join Date: Sep 2009
              Age: 25
              Gender: Male
              Posts: 85
              I'd bet it being something to do with the MIDI file or the converter.



              This is how it sounded when i swapped SSEQ files, and then the result of trying to convert a MIDI to SSEQ.
              __________________
              Reply With Quote
                #7    
              Old June 29th, 2010 (3:52 AM).
              alice123 alice123 is offline
                 
                Join Date: Jun 2010
                Gender: Male
                Posts: 1
                I like it and enjoy its o much.so good and cool site.
                __________________
                parker
                Reply With Quote
                  #8    
                Old July 18th, 2010 (9:28 AM). Edited January 22nd, 2011 by Incineroar.
                Incineroar's Avatar
                Incineroar Incineroar is online now
                the spirit of the fighter
                • Moderator
                • Platinum Tier
                • Developer
                 
                Join Date: May 2009
                Location: Iki Town
                Age: 22
                Gender: Male
                Nature: Brave
                Posts: 13,552
                I did this using a hex editor;


                and

                Just copied the hex data and overwrote songs that were in the game. Loop data and all. Let me know if the videos don't play.
                __________________
                Reply With Quote
                  #9    
                Old January 22nd, 2011 (4:54 PM).
                Ketwes's Avatar
                Ketwes Ketwes is offline
                Pokémon Master Trevor
                   
                  Join Date: Feb 2009
                  Location: Lexington, KY
                  Gender: Male
                  Posts: 8
                  The videos don't play. How exactly did you overwrite the data? I mean, using HexWorkshop or CristalTyle or what?
                  Reply With Quote
                    #10    
                  Old January 22nd, 2011 (5:42 PM).
                  Incineroar's Avatar
                  Incineroar Incineroar is online now
                  the spirit of the fighter
                  • Moderator
                  • Platinum Tier
                  • Developer
                   
                  Join Date: May 2009
                  Location: Iki Town
                  Age: 22
                  Gender: Male
                  Nature: Brave
                  Posts: 13,552
                  Quote:
                  Originally Posted by Ketwes View Post
                  The videos don't play. How exactly did you overwrite the data? I mean, using HexWorkshop or CristalTyle or what?
                  I did it using VGMTrans and HxD, and Crystal Tile as well. I have repaired the videos.
                  __________________
                  Reply With Quote
                    #11    
                  Old February 1st, 2011 (5:21 PM).
                  Ketwes's Avatar
                  Ketwes Ketwes is offline
                  Pokémon Master Trevor
                     
                    Join Date: Feb 2009
                    Location: Lexington, KY
                    Gender: Male
                    Posts: 8
                    That's pretty cool. The songs I mean, would you mind making/posting a tutorial on how to do this? It seems like something I'd be interested in.
                    Reply With Quote
                      #12    
                    Old February 2nd, 2011 (3:21 PM).
                    Incineroar's Avatar
                    Incineroar Incineroar is online now
                    the spirit of the fighter
                    • Moderator
                    • Platinum Tier
                    • Developer
                     
                    Join Date: May 2009
                    Location: Iki Town
                    Age: 22
                    Gender: Male
                    Nature: Brave
                    Posts: 13,552
                    Quote:
                    Originally Posted by Ketwes View Post
                    That's pretty cool. The songs I mean, would you mind making/posting a tutorial on how to do this? It seems like something I'd be interested in.
                    What? The ones above or ones that are completely custom?
                    __________________
                    Reply With Quote
                      #13    
                    Old February 15th, 2011 (7:47 PM).
                    ChimeraReiax ChimeraReiax is offline
                       
                      Join Date: Feb 2011
                      Gender: Male
                      Posts: 23
                      Heh, hexing in music... I did the same exact thing with Black and White, except I ported over HGSS' battle music to BW. It sounded... very unfavorable. So in FL studio I tried modifying the tracks so they'll use the same instruments as BW's instruments (all I did was change the patch number shifting events). Then I remembered that when I convert a midi to a .sseq it doesn't get any looping, so I thought "Hey, why don't I just copy the song track by track and place them over the original .sseq's tracks?" (the original being the hexed-in HGSS wild battle now in BW). Well, that didn't work. At all. It made a whole other track doing who knows what, and it makes this weird low buzzing sound. On top of that, I compared the .sseq exported (and fixed manually using the methods Team Fail put in his guide) with HGSS' original .SSEQ, and there are stark differences in the tracks. Seriously, there's a bunch of random values thrown in that weren't suppose to be there before :/

                      If it'll help anyone, I can show a little comparison image I took (actually no I can't because I need to make more posts apparently... ; will show if/when I do)
                      Reply With Quote
                      Reply

                      Quick Reply

                      Join the conversation!

                      Create an account to post a reply in this thread, participate in other discussions, and more!

                      Create a PokéCommunity Account

                      Sponsored Links
                      Thread Tools

                      Posting Rules
                      You may not post new threads
                      You may not post replies
                      You may not post attachments
                      You may not edit your posts

                      BB code is On
                      Smilies are On
                      [IMG] code is On
                      HTML code is Off

                      Forum Jump


                      All times are GMT -8. The time now is 8:33 PM.