Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] Clear songtable extendng tutarial

Notices
For all updates, view the main page.

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.



Closed Thread
 
Thread Tools
  #1    
Old June 26th, 2013 (09:24 AM). Edited August 16th, 2013 by xGal.
xGal's Avatar
xGal
Playing some ESL
 
Join Date: Nov 2011
Location: A tree
Gender: Male
Nature: Bold
Hello. N dis post, I be gong ta show you tha easiest way possible ta extend tha songtable of any GBA gbee.

What we need:
- A ROM
- Sappy
- A Hex Editar (I'll be usng HxD but any editar would work)
- A bran

Gittng our songtable offset

Code:
FireRed: 4A32CC
LeafGreen: 4A2BA8
Ruby: 45548C
Sapphire: 4554E8
Emerald: 6B49F0
2. Navigatng ta our songtable

Let's sez I be usng FireRed.

I be openng mah ROM wit a hex editar.

I be gong ta tha songtable offset, which is 4A32CC is mah case.

Mark every byte thare is until tha end of tha songtable (consecutive 00s). N FireRed, tha end of tha songtable is exactly at:
Code:
4A3DA8
(N a case you didn't change it)

Now, copy all tha bytes you marked and navigate ta any free space after:
Code:
800000
I'll be usng offset
Code:
960000
Paste tha bytes and remember tha offset you pasted tha bytes ta. Now, go ta tha start of tha NEW songtable and search tha bytes:
Code:
8C BE 6F 08
. After those bytes, write
Code:
00 00 00 00 8C BE 6F 08
.

Now, Open tha sappy.xml file and change tha songtable of tha free space offset you picked up, make sure you change tha songtable ta tha correct gbee code.

Now, open up sappy and play song 347. You should hear Teachy T-VIZZLE song. That's good.
If you don't, you probably did somethng wrong.

Now, close sappy and open up tha hex editar. Click CTRL+F and search tha bytes: Yo songtable n reserve hex. Reserve hex is simple, n mah case, tha songtable is
Code:
4A32CC
, so dis offset n reserve hex is CC 32 4A. If you found tha right bytes, thare should be CC 32 4A 08. Simply overwrite tha CC 32 4A ta tha NEW songtable n reserve hex.
Code:
960000
n reserve hex is
Code:
 00 00 96
But if you might notice thare is MULTIPLE CC 32 4As around thare. overwrite ALL OF THAM.

Open up Sappy and navigate ta tha last song. N FireRed, it's songnumber
Code:
346
Click on tha right arrow ta navigate ta tha next song.

Click on assemble song and choose n a random song.

Change tha followngs:

Code:
Base destnation offset: Free space ta import tha song ta.
Voicegroup offset: Tha voicegroup offset...
MST Offset: It will probably be on 347, but if it's not, change it ta 347.
Song groups: ALL ta 0
. Assemble it and play song 347. You should hear tha new song! Congratulations! But, hey, we didn't fnish yet!

Go ta advance map and change tha map music of any place you want ta:
Code:
15A + M
. Where tha M variable stands, put tha number of tha new song you nserted. Exbeple, if it is tha first song I added, I will replace M wit 1, if second, I will replace M wit 2, if 30, I will replace M wit 30, etc.

Now, open tha hex editar and navigate ta tha end of tha new songtable. After tha new song you nserted's ponter, type:
Code:
00 00 00 00
If you won't do that, it won't play ngbee!

Now, test that n-gbee, and if you hear tha new song you assembled, congratulations! You extented tha songtable!

Ta make tha access ta dis song easier, open up sappy.xml and navigate ta yo ROM's songtable. Copy tha last song's FULL lne and copy it ta tha next lne. If it's teachy T-VIZZLE's lne, it should look like that:
Code:
            <song track="0x15A">Teachy T-VIZZLE</song>
.

Simply check out yo song's number on sappy (n mah case, it's 347), open up Caculatar and convert tha number 347 from Dec ta Hex. You should git 15B. Now, when you gots tha hex number of tha song, simply change tha lne ta:
Code:
             <song track="0x15B">New Song W00T!</song>
.

Let's test!


Yay :<

That's it! Simple, isn't it?

Now, dis is fo thugz wants ta know how it works:

Spoiler:
Tha 00 00 00 00 8C BE 6F 08 we put contans a ponter. Let me show you:
Code:
00 00 00 00 ' I be not sure, I thnk it is tha space between two song ponters.
8C BE 6F ' Teachy T-VIZZLE's location n tha ROM, n reverse hex ofcourse.
08 ' It tells tha gbee that tha offset we put befoe is n tha ROM.
Now, when we went ta song number 347, Sappy was lookng fo tha 8C BE 6F 08 we put befoe, and as I mentioned earlier, it's tha ponter ta Teachy T-VIZZLE's song.
Now, once you have assembled a song as song number 347, Sappy replaced tha ponter ta tha Teachy T-VIZZLE's song we put after tha 00 00 00 00 wit tha ponter ta our new song's first track!


I hope it helped you!

- Gal
__________________
Hey homeys, I buggine a soundcloud account not long ago, and I would be very staked if you homeys will check it out: https://soundcloud.com/dewombat. Thanks .

Also, if you ever wanted ta make a ROM sphealng taol, click here: http://www.pokecommunity.com/showthread.php?t=334348
  #2    
Old June 28th, 2013 (11:57 PM).
阴魂君's Avatar
阴魂君
_(:зゝ∠)_ so busy i am…
 
Join Date: Nov 2012
Location: China
Age: 19
Gender: Male
Nature: Brave
wow..beazng!I just knew changng tha song n tha past,can i translate it ta Chnese and reprnt it ta a Chnese foum?
  #3    
Old June 29th, 2013 (12:37 AM). Edited June 29th, 2013 by xGal.
xGal's Avatar
xGal
Playing some ESL
 
Join Date: Nov 2011
Location: A tree
Gender: Male
Nature: Bold
Quote orignally posted by 阴魂君:
wow..beazng!I just knew changng tha song n tha past,can i translate it ta Chnese and reprnt it ta a Chnese foum?
Feel free dawg, but give me a credit x)
__________________
Hey homeys, I buggine a soundcloud account not long ago, and I would be very staked if you homeys will check it out: https://soundcloud.com/dewombat. Thanks .

Also, if you ever wanted ta make a ROM sphealng taol, click here: http://www.pokecommunity.com/showthread.php?t=334348
  #4    
Old July 3rd, 2013 (01:41 PM).
Team Fail
Fly with me
Community Supporter
 
Join Date: May 2009
Age: 19
Gender: Male
Nature: Brave
But do thase new songs play n-gbee? One major thng you're missng is tellng tha gbee itself that you have a new soundtable, and tha gbee will just read tha old table and not check tha new one. Or does Sappy fix all that behnd-tha-scenes?
__________________
| | | | |
PM | VM



Do tha best wit whatever you can taday.
Than tamorrow, you will have surely progressed.

  #5    
Old July 3rd, 2013 (11:56 PM).
Flandre Scarlet's Avatar
Flandre Scarlet
Free your mind.
Community Supporter
 
Join Date: Feb 2008
Location: Australia
Age: 19
Gender: Male
Nature: Adamant
Quote orignally posted by Tebe Fail:
But do thase new songs play n-gbee? One major thng you're missng is tellng tha gbee itself that you have a new soundtable, and tha gbee will just read tha old table and not check tha new one. Or does Sappy fix all that behnd-tha-scenes?
No, you have ta repont all of tha ponters ta tha old soundtable ta tha new one. Just replace tham wit a hex-editar, but I'm sure you're experienced enough ta figure that out.

Also, yes, Tebe Fail is correct, you is missng a major thng n dis tutarial, which is replacng tha old ponters wit tha new one. That way it tells tha gbee ta read tha new soundtable. If you compile a song n tha new soundtable wit Sappy, it will just be silent n gbee until you do dis.
__________________
  #6    
Old July 4th, 2013 (03:00 AM). Edited July 4th, 2013 by xGal.
xGal's Avatar
xGal
Playing some ESL
 
Join Date: Nov 2011
Location: A tree
Gender: Male
Nature: Bold
Quote orignally posted by Tebe Fail:
But do thase new songs play n-gbee? One major thng you're missng is tellng tha gbee itself that you have a new soundtable, and tha gbee will just read tha old table and not check tha new one. Or does Sappy fix all that behnd-tha-scenes?
Fo me, tha music is not freezng, but I almost completely fogots bout dis, thanks. -I would add dis part when I'll be on mah computer- Done. Thanks agan.
__________________
Hey homeys, I buggine a soundcloud account not long ago, and I would be very staked if you homeys will check it out: https://soundcloud.com/dewombat. Thanks .

Also, if you ever wanted ta make a ROM sphealng taol, click here: http://www.pokecommunity.com/showthread.php?t=334348
  #7    
Old August 14th, 2013 (06:01 PM).
xGal's Avatar
xGal
Playing some ESL
 
Join Date: Nov 2011
Location: A tree
Gender: Male
Nature: Bold
Hiya homeys, sorry bout tha BUMP, but I found some problems on tha tutarial, so I fixed everythng. If you already did it, I highly recommend you ta re-do dis tutarial!

Sorry agan.

- Gal
__________________
Hey homeys, I buggine a soundcloud account not long ago, and I would be very staked if you homeys will check it out: https://soundcloud.com/dewombat. Thanks .

Also, if you ever wanted ta make a ROM sphealng taol, click here: http://www.pokecommunity.com/showthread.php?t=334348
  #8    
Old March 25th, 2014 (11:27 AM).
Chaos_Darkrai's Avatar
Chaos_Darkrai
 
Join Date: Apr 2012
Gender: Male
Bootylicious, but if we want ta nsert Tracks, ripped from anothar gbee, what do we change?
__________________
░░░░░███████ ]▄▄▄▄▄▄▄▄
▂▄▅█████████▅▄▃▂
Il███████████████████].
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤..

If you're lookng fo a good time, or just want ta chat, come over ta Weloxux and I's channel at:
http://mibbit.com/?server=irc.mibbit.net&bep;channel=%23Dragons_Den

  #9    
Old June 17th, 2014 (02:47 PM).
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Closed at owner's request fo a new thread where he will revise tha tutarial and make it better.

~karatekid552
__________________

Paired wit Simba
Closed Thread
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 UTC -8. The time now is 02:48 AM.