Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Advertise here

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.

Post Reply
 
Thread Tools
  #1    
Old January 22nd, 2010, 04:50 PM
Omega Zero's Avatar
Omega Zero
Is back...
Community Supporter Tier 4
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 16
Gender: Male
Nature: Relaxed
Send a message via Skype™ to Omega Zero

Advertise here


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


Last edited by hashtag; April 15th, 2010 at 07:58 AM.
  #2    
Old January 23rd, 2010, 08:16 PM
Team Fail's Avatar
Team Fail
The fine line between in|sanity
Community Supporter
 
Join Date: May 2009
Age: 19
Gender: Male
Nature: Brave
Oh, to the Lords! The Sappy you linked works on Windows 7!!!! The new version doesn't, and this makes it so easier!!!!!

Pairs:
Kevin, Echidna
Follow me on Twitter! @TeamFail
Alt 1, リザードン
Miiverse
Pokémon Hackers Online
Alt 2: Jack Cayman



[04:20.39] <@GoGo> I WILL INSERT WITH PLEASURE
[04:20.45] <@GoGo> shut it Bela

[05:41.55] <Team_Fail> Blue Spider is interesting, but #MEHMasterRace
[05:42.20] <diegoisawesome> Team_Fail: Sounds like a bunch of unmotivated people that still want to try to take over the world
  #3    
Old January 23rd, 2010, 09:45 PM
Omega Zero's Avatar
Omega Zero
Is back...
Community Supporter Tier 4
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 16
Gender: Male
Nature: Relaxed
Send a message via Skype™ to Omega Zero
thanks thats why i linked it cause there is no link to sappy 2005 anymore :O so i uploaded it :D
  #4    
Old January 24th, 2010, 11:49 AM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
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.
  #5    
Old January 28th, 2010, 03:08 PM
Chaos Rush's Avatar
Chaos Rush
im sexy and i know it
 
Join Date: May 2007
Location: Taylor Swift
Gender: Male
Nature: Adamant
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?

Last edited by Spherical Ice; February 13th, 2010 at 04:01 PM. Reason: Language. ]=<
  #6    
Old January 28th, 2010, 03:38 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
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.
  #7    
Old January 28th, 2010, 05:53 PM
Chaos Rush's Avatar
Chaos Rush
im sexy and i know it
 
Join Date: May 2007
Location: Taylor Swift
Gender: Male
Nature: Adamant
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:

Last edited by Chaos Rush; January 28th, 2010 at 06:20 PM.
  #8    
Old January 28th, 2010, 06:21 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
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.
  #9    
Old January 28th, 2010, 10:43 PM
Omega Zero's Avatar
Omega Zero
Is back...
Community Supporter Tier 4
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 16
Gender: Male
Nature: Relaxed
Send a message via Skype™ to Omega Zero
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
  #10    
Old January 30th, 2010, 01:13 PM
Megiddo-san's Avatar
Megiddo-san
Barium - Summer '12 Return?
 
Join Date: Dec 2007
Location: Where you least expect it
Age: 22
Gender: Male
Nature: Relaxed
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
  #11    
Old January 30th, 2010, 01:15 PM
Chaos Rush's Avatar
Chaos Rush
im sexy and i know it
 
Join Date: May 2007
Location: Taylor Swift
Gender: Male
Nature: Adamant
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.)
  #12    
Old January 30th, 2010, 01:29 PM
Omega Zero's Avatar
Omega Zero
Is back...
Community Supporter Tier 4
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 16
Gender: Male
Nature: Relaxed
Send a message via Skype™ to Omega Zero
Sure you can retype it then send me
  #13    
Old February 13th, 2010, 11:35 AM
Chaos Rush's Avatar
Chaos Rush
im sexy and i know it
 
Join Date: May 2007
Location: Taylor Swift
Gender: Male
Nature: Adamant
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
  #14    
Old February 13th, 2010, 03:47 PM
chrunch's Avatar
chrunch
 
 
Join Date: Oct 2009
Gender: Male
Send a message via Windows Live Messenger to chrunch
This could be very useful to me when I get around to inserting music in Legend of Lucario.
Thanks.
  #15    
Old February 15th, 2010, 05:10 AM
AmineX's Avatar
AmineX
Music Expert
 
Join Date: Feb 2008
Location: Algeria
Age: 25
Nature: Gentle
Send a message via ICQ to AmineX Send a message via Windows Live Messenger to AmineX Send a message via Skype™ 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
  #16    
Old June 14th, 2010, 06:11 AM
SmashKing
Beginning Trainer
 
Join Date: Jun 2008
Gender:
can you give us a download link for HackMew's thumb.bat?
i'll find it in the link not =(
  #17    
Old October 22nd, 2010, 04:55 AM
ipatix's Avatar
ipatix
Music Hacking Freak
 
Join Date: May 2008
Location: Germany
Gender: Male
Nature: Relaxed
@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
  #18    
Old October 25th, 2010, 08:21 AM
plipie
Plipie The Pokemon (P.T.P)
 
Join Date: Oct 2008
Location: UK
Gender:
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_jum...&creative_id=3
  #19    
Old December 19th, 2010, 08:41 AM
ipatix's Avatar
ipatix
Music Hacking Freak
 
Join Date: May 2008
Location: Germany
Gender: Male
Nature: Relaxed
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?
I'm sorry for my bad English. I'm German...
Visit my YouTube channel (music hacking and other stuff): http://www.youtube.com/user/theipatix
  #20    
Old December 21st, 2010, 11:49 AM
Team Fail's Avatar
Team Fail
The fine line between in|sanity
Community Supporter
 
Join Date: May 2009
Age: 19
Gender: Male
Nature: Brave
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.

Pairs:
Kevin, Echidna
Follow me on Twitter! @TeamFail
Alt 1, リザードン
Miiverse
Pokémon Hackers Online
Alt 2: Jack Cayman



[04:20.39] <@GoGo> I WILL INSERT WITH PLEASURE
[04:20.45] <@GoGo> shut it Bela

[05:41.55] <Team_Fail> Blue Spider is interesting, but #MEHMasterRace
[05:42.20] <diegoisawesome> Team_Fail: Sounds like a bunch of unmotivated people that still want to try to take over the world
  #21    
Old December 21st, 2010, 01:32 PM
timson733333's Avatar
timson733333
Me gusta.
 
Join Date: Mar 2007
Location: Stealth!
Gender: Male
Nature: Quiet
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?
  #22    
Old December 22nd, 2010, 11:53 AM
ipatix's Avatar
ipatix
Music Hacking Freak
 
Join Date: May 2008
Location: Germany
Gender: Male
Nature: Relaxed
@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...
I'm sorry for my bad English. I'm German...
Visit my YouTube channel (music hacking and other stuff): http://www.youtube.com/user/theipatix

Last edited by ipatix; December 28th, 2010 at 02:03 AM.
  #23    
Old January 15th, 2011, 12:44 AM
Washibon's Avatar
Washibon
---
 
Join Date: Dec 2010
Gender: Female
Er.. I keep getting this error..

  #24    
Old January 15th, 2011, 04:28 PM
daigonite's Avatar
daigonite
[insert artsy user title here]
Community Supporter
 
Join Date: Feb 2009
Location: With the Birds
Age: 21
Gender:
Nature: Impish
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
  #25    
Old January 16th, 2011, 04:35 AM
Washibon's Avatar
Washibon
---
 
Join Date: Dec 2010
Gender: Female
Well.. I'm clearly doing something wrong with the code. Can someone please show me how to put in this code?
Post Reply
Quick Reply

Sponsored Links


Advertise here
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 07:05 PM.

About Us
© 2002 - 2014 The PokéCommunity™, pokecommunity.com. Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.

Copyright
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com. PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.