Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

Reply
 
Thread Tools
  #1    
Old January 22nd, 2010 (4:50 PM). Edited April 15th, 2010 by Logan.
Omega Zero's Avatar
Omega Zero Omega Zero is offline
Is back...
  • Gold Tier
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 19
Gender: Male
Nature: Relaxed
Posts: 445


Hello... ever wondered how hard it was to loop music, or insert it? And how sometimes Sappy won't let you assemble that ugly thing? I am here to make your life easier... Let's get started! The tools you need are:

AnvilStudio - Link
Sappy 2005 http://www.mediafire.com/?lyi1nj2coqt
Mid2agb
Notepad
HackMew's thumb.bat Link
HackMew's Free Space Finder (optional)

Part 1: Separating the tracks
1. Open up your midi file that you would like to insert with AnvilStudio

2. You will see all your tracks. Delete every single one EXCEPT the first one. Then do Save Song, and save it as track1.

3. Repeat step 2, except this time delete every single track except the second one. Keep doing this for every track, until you have all tracks saved as separate files, named track1, track2, track3, etc..

4. Drag thumb.bat into the same folder as Mid2Agb or vice versa.

5. Drag the tracks you saved with AnvilStudio into the same folder that Mid2Agb and thumb.bat are located. Convert them all into .s files by dragging each track on the mid2agb file.


Part 2: Looping
1. Open up Notepad. Make sure you enable "All Files". Then open up your track1.s file. You should see something similar to this.

2. Right under where it says "@ 000 -------------", put this:
"Name of the .s file"_1_loop:

3. Now scroll down, and near the bottom you should see: .byte FINE. Before that, put:
.byte GOTO
.word "Name of the .s file"_1_loop
.byte W06

4. Congratulations, you just looped your first track. Now repeat the whole procedure for EVERY .s file you have.


Part 3: Inserting
1. Now press Start, Run, and then type in cmd. If you're using Vista or Windows 7, just press Start and type in cmd.

2. Now copy the name of your folder where your .s files are located. If you're using Vista or Windows 7, you have to click on the top first, and then the directory will appear.

3.Now back to cmd, type in CD. Press space. Then press paste. Then type in:
thumb.bat "Name of the .s file".s "Name of the .s file".bin

(make sure you have a space between thumb.bat and sfile.bin)

4. Do this for all of your .s files.

5. Now open up Sappy, and select the song you want to replace. Click import, and import all of your .bin files.

6. Congratulations, you just looped and inserted music!

Other notes:
*When you're editing your .s files, the line where you put "Name of the .s file"_1_loop: determines where the song loops. If you want it to loop at a specific spot, put it under a different measure number (001, 002, 003).

*After you import the .bin files, Sappy might crash if you try to play it. If it crashes again after opening it, then use the Free Space Finder to find a new offset to place your first track in.

*If your music sounds crappy, then find a voicegroup from a song that sounds similar. If you can't do that, then export your tracks, and then open them with a hex editor. Right after the BD byte is the instrument that it plays. Edit the byte after BD to change the instrument.
Credits
Magnius for the list
Full metal for teaching me an easier way how to insert music
Clone25 for the looping tutorial
Full metal for the Css again :p
Chaos rush for simplicating this tutorial :)

kawa for making sappy 2005
Linkandzelda for giving megiddo sappy 2005 then he gave me sappy 2005 xD

__________________
Reply With Quote

Relevant Advertising!

  #2    
Old January 23rd, 2010 (8:16 PM).
Incineroar's Avatar
Incineroar Incineroar is offline
the spirit of the fighter
  • Moderator
  • Platinum Tier
  • Developer
 
Join Date: May 2009
Location: Iki Town
Age: 22
Gender: Male
Nature: Brave
Posts: 13,345
Oh, to the Lords! The Sappy you linked works on Windows 7!!!! The new version doesn't, and this makes it so easier!!!!!
__________________
Reply With Quote
  #3    
Old January 23rd, 2010 (9:45 PM).
Omega Zero's Avatar
Omega Zero Omega Zero is offline
Is back...
  • Gold Tier
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 19
Gender: Male
Nature: Relaxed
Posts: 445
thanks thats why i linked it cause there is no link to sappy 2005 anymore :O so i uploaded it :D
__________________
Reply With Quote
  #4    
Old January 24th, 2010 (11:49 AM).
Full Metal's Avatar
Full Metal Full Metal is offline
C(++) Developer.
  • Silver Tier
 
Join Date: Jan 2008
Location: In my mind.
Age: 21
Gender: Male
Nature: Timid
Posts: 806
Send a message via Windows Live Messenger to Full Metal
:D Very Nice
Glad to see it was approved
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #5    
Old January 28th, 2010 (3:08 PM). Edited February 13th, 2010 by Spherical Ice.
Chaos Rush's Avatar
Chaos Rush Chaos Rush is offline
im sexy and i know it
     
    Join Date: May 2007
    Location: Taylor Swift
    Gender: Male
    Nature: Adamant
    Posts: 1,296
    OH MY GOSH, THIS ACTUALLY WORKS.

    Thank you. So. Much. And I'm using Windows 7, too.

    Anyways, I noticed that it loops straight from the beginning. How do you choose where it loops from?
    __________________

    My projects:
    Untitled Pokémon fangame (pictured above) | Final Fantasy II NES retranslation | Mother 1/EarthBound Beginnings Color Restoration for GBA
    Non-Pokémon hacks I support:
    Sonic Classic Heroes
    Sonic 3 Complete
    Reply With Quote
      #6    
    Old January 28th, 2010 (3:38 PM).
    Full Metal's Avatar
    Full Metal Full Metal is offline
    C(++) Developer.
    • Silver Tier
     
    Join Date: Jan 2008
    Location: In my mind.
    Age: 21
    Gender: Male
    Nature: Timid
    Posts: 806
    Send a message via Windows Live Messenger to Full Metal
    simple; loop to a different spot (if you don't know how to do this read clonex's tut on music looping [which is completely compatible with this]) and apply that to each .s file before you assemble it with thumb.bat
    __________________

    ★ full metal.

    I like to push it,
    and push it,
    until my luck is over.
    Reply With Quote
      #7    
    Old January 28th, 2010 (5:53 PM). Edited January 28th, 2010 by Chaos Rush.
    Chaos Rush's Avatar
    Chaos Rush Chaos Rush is offline
    im sexy and i know it
       
      Join Date: May 2007
      Location: Taylor Swift
      Gender: Male
      Nature: Adamant
      Posts: 1,296
      Quote:
      Originally Posted by Full Metal View Post
      simple; loop to a different spot (if you don't know how to do this read clonex's tut on music looping [which is completely compatible with this]) and apply that to each .s file before you assemble it with thumb.bat
      And what if it loops in the middle of a measure, rather than the start? (Such as Oak's Lab's theme)

      EDIT: Nevermind, I figured out that it all depends on where you put trackname_1_loop:
      __________________

      My projects:
      Untitled Pokémon fangame (pictured above) | Final Fantasy II NES retranslation | Mother 1/EarthBound Beginnings Color Restoration for GBA
      Non-Pokémon hacks I support:
      Sonic Classic Heroes
      Sonic 3 Complete
      Reply With Quote
        #8    
      Old January 28th, 2010 (6:21 PM).
      Full Metal's Avatar
      Full Metal Full Metal is offline
      C(++) Developer.
      • Silver Tier
       
      Join Date: Jan 2008
      Location: In my mind.
      Age: 21
      Gender: Male
      Nature: Timid
      Posts: 806
      Send a message via Windows Live Messenger to Full Metal
      like i said, read his tut and you *should* be able to figure it out (hint hint use different labels)
      __________________

      ★ full metal.

      I like to push it,
      and push it,
      until my luck is over.
      Reply With Quote
        #9    
      Old January 28th, 2010 (10:43 PM).
      Omega Zero's Avatar
      Omega Zero Omega Zero is offline
      Is back...
      • Gold Tier
       
      Join Date: Dec 2009
      Location: I'm always living aren't I?
      Age: 19
      Gender: Male
      Nature: Relaxed
      Posts: 445
      Quote:
      Originally Posted by Chaos Rush View Post
      OH MY F**KING GOSH THIS ACTUALLY WORKS.

      Thank you. So. F**king. Much. And I'm using Windows 7, too.

      Anyways, I noticed that it loops straight from the beginning. How do you choose where it loops from?
      YAAAAAAAAAAY! glad to see someone likes this tutorial
      __________________
      Reply With Quote
        #10    
      Old January 30th, 2010 (1:13 PM).
      Megiddo-san's Avatar
      Megiddo-san Megiddo-san is offline
      Barium - Summer '12 Return?
         
        Join Date: Dec 2007
        Location: Where you least expect it
        Age: 25
        Gender: Male
        Nature: Relaxed
        Posts: 1,329
        Send a message via Windows Live Messenger to Megiddo-san
        You forgot to credit linkandzelda and Kawa
        __________________

        Hashire! Asu e tsudzuku shinka no micha wa
        Reply With Quote
          #11    
        Old January 30th, 2010 (1:15 PM).
        Chaos Rush's Avatar
        Chaos Rush Chaos Rush is offline
        im sexy and i know it
           
          Join Date: May 2007
          Location: Taylor Swift
          Gender: Male
          Nature: Adamant
          Posts: 1,296
          Quote:
          Originally Posted by tainui View Post

          YAAAAAAAAAAY! glad to see someone likes this tutorial
          However, your grammar and punctuation was horrible that your directions are really unclear, and it took me FOREVER to finally get it right. May I re-type your tutorial?

          (Also the voicegroup list you posted is only for Pokemon Ruby.)
          __________________

          My projects:
          Untitled Pokémon fangame (pictured above) | Final Fantasy II NES retranslation | Mother 1/EarthBound Beginnings Color Restoration for GBA
          Non-Pokémon hacks I support:
          Sonic Classic Heroes
          Sonic 3 Complete
          Reply With Quote
            #12    
          Old January 30th, 2010 (1:29 PM).
          Omega Zero's Avatar
          Omega Zero Omega Zero is offline
          Is back...
          • Gold Tier
           
          Join Date: Dec 2009
          Location: I'm always living aren't I?
          Age: 19
          Gender: Male
          Nature: Relaxed
          Posts: 445
          Sure you can retype it then send me
          __________________
          Reply With Quote
            #13    
          Old February 13th, 2010 (11:35 AM).
          Chaos Rush's Avatar
          Chaos Rush Chaos Rush is offline
          im sexy and i know it
             
            Join Date: May 2007
            Location: Taylor Swift
            Gender: Male
            Nature: Adamant
            Posts: 1,296
            I made a typo in part 3, step 3. Change this:
            Quote:
            3. Now back to cmd, type in CD. Press space. Then press paste. Then type in:
            thumb.bat "Name of the .s file".bin
            Into this:
            Quote:
            3. Now back to cmd, type in CD. Press space. Then press paste. Then type in:
            thumb.bat "Name of the .s file".s "Name of the .s file".bin
            __________________

            My projects:
            Untitled Pokémon fangame (pictured above) | Final Fantasy II NES retranslation | Mother 1/EarthBound Beginnings Color Restoration for GBA
            Non-Pokémon hacks I support:
            Sonic Classic Heroes
            Sonic 3 Complete
            Reply With Quote
              #14    
            Old February 13th, 2010 (3:47 PM).
            chrunch chrunch is offline
            • Gold Tier
             
            Join Date: Oct 2009
            Gender: Male
            Posts: 1,348
            This could be very useful to me when I get around to inserting music in Legend of Lucario.
            Thanks.
            __________________
            Reply With Quote
              #15    
            Old February 15th, 2010 (5:10 AM).
            AmineX's Avatar
            AmineX AmineX is offline
            Music Expert
               
              Join Date: Feb 2008
              Location: Algeria
              Age: 28
              Nature: Gentle
              Posts: 151
              Send a message via ICQ to AmineX Send a message via Windows Live Messenger to AmineX
              OMG I'll finish with this Music inserting & loop problem very soon
              __________________
              AmineX


              All my pokemon music related videos here:
              http://www.youtube.com/user/LHV1?feature=mhee
              Reply With Quote
                #16    
              Old June 14th, 2010 (6:11 AM).
              SmashKing SmashKing is offline
                 
                Join Date: Jun 2008
                Gender:
                Posts: 5
                can you give us a download link for HackMew's thumb.bat?
                i'll find it in the link not =(
                Reply With Quote
                  #17    
                Old October 22nd, 2010 (4:55 AM).
                ipatix's Avatar
                ipatix ipatix is offline
                Sound Expert
                   
                  Join Date: May 2008
                  Location: Germany
                  Gender: Male
                  Nature: Relaxed
                  Posts: 145
                  @smashking
                  I uploadede it for you:
                  hxxp://rapidshare.com/files/426538303/thumb.bat
                  Replace the xx with tt

                  I have one question:
                  Everything works fine until importing the .bin files into the rom using sappy.
                  When I try to import the tracks sappy crashes and the rom hasn't changed.
                  What am I doing wrong?

                  I'm sorry for my bad English
                  Reply With Quote
                    #18    
                  Old October 25th, 2010 (8:21 AM).
                  plipie plipie is offline
                  Plipie The Pokemon (P.T.P)
                     
                    Join Date: Oct 2008
                    Location: UK
                    Gender:
                    Posts: 3
                    Send a message via Windows Live Messenger to plipie Send a message via Yahoo to plipie
                    How do i get the .midi file in the first place?
                    __________________
                    http://www.swapitshop.com/friend_jump?user_id=1315855&creative_id=3
                    Reply With Quote
                      #19    
                    Old December 19th, 2010 (8:41 AM).
                    ipatix's Avatar
                    ipatix ipatix is offline
                    Sound Expert
                       
                      Join Date: May 2008
                      Location: Germany
                      Gender: Male
                      Nature: Relaxed
                      Posts: 145
                      I've a problem...
                      Usually this method works fine for me, but I tried to insert a song but when I import the assembled tracks I can listen to the song in sappy but in the game there is silence.

                      What happend?
                      __________________
                      Visit my YouTube channel (music hacking and other stuff): http://www.youtube.com/user/theipatix
                      Reply With Quote
                        #20    
                      Old December 21st, 2010 (11:49 AM).
                      Incineroar's Avatar
                      Incineroar Incineroar is offline
                      the spirit of the fighter
                      • Moderator
                      • Platinum Tier
                      • Developer
                       
                      Join Date: May 2009
                      Location: Iki Town
                      Age: 22
                      Gender: Male
                      Nature: Brave
                      Posts: 13,345
                      Quote:
                      Originally Posted by ipatix View Post
                      I've a problem...
                      Usually this method works fine for me, but I tried to insert a song but when I import the assembled tracks I can listen to the song in sappy but in the game there is silence.

                      What happend?
                      Have you checked your voicegroups? They may not be matching properly.
                      __________________
                      Reply With Quote
                        #21    
                      Old December 21st, 2010 (1:32 PM).
                      timson733333's Avatar
                      timson733333 timson733333 is offline
                      Me gusta.
                         
                        Join Date: Mar 2007
                        Location: Stealth!
                        Gender: Male
                        Nature: Quiet
                        Posts: 130
                        Ok, the tutorial worked up until Step 3...

                        When I typed in CD [location of the .s files] thumb.bat track1.s track1.bin, it says "The system cannot find the path specified." Also, when I open up Sappy, it says that it can't find the song table and it only displays one song called "Main" which plays a strange melody for about one second. When I try to insert music, it crashes. What is causing all this?
                        Reply With Quote
                          #22    
                        Old December 22nd, 2010 (11:53 AM). Edited December 28th, 2010 by ipatix.
                        ipatix's Avatar
                        ipatix ipatix is offline
                        Sound Expert
                           
                          Join Date: May 2008
                          Location: Germany
                          Gender: Male
                          Nature: Relaxed
                          Posts: 145
                          @team fail
                          well, I made a custom voicegroup, but it didn't work with any existing voicegroup either.

                          edit: problem fixed...

                          My offset of my voicegroup didn't begin with a 0, 4, 8 or C...
                          __________________
                          Visit my YouTube channel (music hacking and other stuff): http://www.youtube.com/user/theipatix
                          Reply With Quote
                            #23    
                          Old January 15th, 2011 (12:44 AM).
                          Washibon's Avatar
                          Washibon Washibon is offline
                          ---
                             
                            Join Date: Dec 2010
                            Gender: Female
                            Posts: 34
                            Er.. I keep getting this error..

                            Reply With Quote
                              #24    
                            Old January 15th, 2011 (4:28 PM).
                            Corvus of the Black Night's Avatar
                            Corvus of the Black Night Corvus of the Black Night is offline
                            Wild Duck Pokémon
                            • Gold Tier
                            • Gold Tier
                             
                            Join Date: Feb 2009
                            Location: With the Birds
                            Age: 24
                            Gender: Other
                            Nature: Impish
                            Posts: 3,429
                            erp, that's a syntax error x_x you should look up how to use the command prompt if that error's coming up.

                            Lol, a Sappy that actually works? Lol... although I still like being able to do it manually. There's that level of control... at least someone finally got it to work though. xD
                            Reply With Quote
                              #25    
                            Old January 16th, 2011 (4:35 AM).
                            Washibon's Avatar
                            Washibon Washibon is offline
                            ---
                               
                              Join Date: Dec 2010
                              Gender: Female
                              Posts: 34
                              Well.. I'm clearly doing something wrong with the code. Can someone please show me how to put in this code?
                              Reply With Quote
                              Reply
                              Quick Reply

                              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 3:45 PM.