+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Replacing music within a ROM - is it possible?
Pages: 1 [2]
Author Topic: Replacing music within a ROM - is it possible?  (Read 1308 times)
Sovereign
Guest
« Reply #15 on: April 24, 2007, 06:48:34 pm »

Well I figured out how to change music for different maps, but I can't figure out how to change it for battle instances.  Any help?

EDIT:  I figured out how to change the battle theme for events...sorta.  Some maps, like Guardia Forest, just have a line at the top that points to the address of the battle theme to be used throughout the whole map.  Other maps, like the Heckran Cave, call the battle theme at multiple points throughout, so I have to search the whole damn event code for all instances of it.  And then there are some maps where I KNOW you fight and hear the battle theme but I can't find it in code.  Is there a more efficient way to do this?
« Last Edit: April 25, 2007, 02:54:32 pm by Sovereign »
Sovereign
Guest
« Reply #16 on: May 02, 2007, 07:04:55 pm »

Bump

I'm still having trouble with not being able to find the line of code that initiates the battle theme in maps that have battles.  And no, they're not maps like the Tyrano lair where the battle music just the background music.
Nightcrawler
Guest
« Reply #17 on: May 03, 2007, 08:10:26 am »

You're probably going to have to learn some assembly and figure it out via the game code unless somebody who knows the information already comes along. I'd bet my lunch, one or two bytes written to one of the APU ports is all that is required to change songs. Most SNES games I've seen have a pretty simple, but effective,  protocol for music selection.
Tauwasser
Guest
« Reply #18 on: May 03, 2007, 11:31:59 am »

I, too, think you're going to need assembly on this one. However, there are some decent debuggers out there, that might help..

cYa,

Tauwasser
Vehek
Guest
« Reply #19 on: May 03, 2007, 06:12:57 pm »

Why don't you do a little hex editing and replace the SPC pointer for Battle with the pointer for Battle 2 and change the instruments accordingly?
Sovereign
Guest
« Reply #20 on: May 03, 2007, 06:26:14 pm »

I already know assembly language (Well, some of it).  Thanks for the suggestions, I'll take a closer look at some of this stuff.
Sovereign
Guest
« Reply #21 on: May 05, 2007, 01:11:25 pm »

Any suggestions on which hex editor to use to change pointers?  I'm not sure how to do it Tongue
Lenophis
Guest
« Reply #22 on: May 05, 2007, 01:41:47 pm »

Ummm, any of them? I don't recall there being a hex editor specifically made to tweak pointers. Tongue I use Visual Studios built-in hex viewer, since it's the only hex editor I've seen with an undo/redo ability that is session long.

Changing a pointer is simple, find it, change it. Done.
JCE3000GT
Guest
« Reply #23 on: May 09, 2007, 04:01:45 am »

Quote from: Vehek on May 03, 2007, 06:12:57 pm
Why don't you do a little hex editing and replace the SPC pointer for Battle with the pointer for Battle 2 and change the instruments accordingly?

CT's got an instrument index data block that should make this easy.  Just swap the Battle -> Battle 2 SPC pointers and swap the instrument index table entries and viola.  Or I guess I could stop being lazy and release this: http://img.photobucket.com/albums/v307/VonBlitzKrieg/spc_editor-main.gif   Wink
Pages: 1 [2]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC