Music Swapping For Twilight Princess

Started by toonlink444, March 26, 2012, 07:32:00 PM

Previous topic - Next topic

toonlink444

I had the idea to swap in game music with other in game music. So far I found what appears to be the address where the individual songs are held. I found it by looking in the iso and finding the file path to the music file. Then I found the same path in a game dump. So I went to the game address for the menu screen (where the file is selected) music and changed the path to a different music file. So it looked like this.
[spoiler]audiores\stream\menu_select.ast = menu select screen music
audiores\stream\HorseBattle_d01.ast = The level where link fights king bublin on horse
61756469 6F726573 5C737472 65616D5C 486F7273 65426174 746C655F 6430312E 61737400 = the hex path for the horse fight music
61756469 6F726573 5C737472 65616D5C 6D656E75 5F73656C 6563742E 61737400 = the hex path for menu select music[/spoiler]
So I changed the 6D656E75 5F73656C 65637400 to 486F7273 65426174 746C655F 64303100 to change the file name and when I went to the file select screen it froze. I didn't make it a code I just poked it before I went to the menu screen. I've made a name change code before so I figured the same thing applied. Just change the code to match the word or words. The only thing that I can guess is that the length difference of the hex overwrote a different file. So what should I do, make a gecko register code at the file name that leads to the file path in a empty section of code or some how push everything over to fit the path, or is this not a good method of changing music?
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

Deathwolf

Better use FST file swapping! It uses 07 string codes which patches 2x 32 bit datas in the 81 range. Just disassemble the game with the FST tool and search for a folder called "Music" of something like this.
lolz

toonlink444

How do you use FST? That's a tab in gecko dotnet right?
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

toonlink444

#3
Alright I used it and all it did was crash the wii.
Edit: Actually I tried an older version of gecko dotnet and it worked so I guess it was the version I was using.
Edit2: Swapped and nothing happened.  :p
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

toonlink444

I tried swapping the files for SMG, MKWii, and TP and each one nothing happened. Is there a fix or something?
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

Deathwolf

I'm sure you did something wrong. I'll post here a example code on mkw which swapps 2 music files, a little bit later ok?^^
lolz

toonlink444

Quote from: Deathwolf on March 27, 2012, 06:06:46 PM
I'm sure you did something wrong. I'll post here a example code on mkw which swapps 2 music files, a little bit later ok?^^
Alright that will be great. :)
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

Deathwolf

#7
Swapp:

1-Luigi Circuit -> n_circuit32_n (_f the last round)

With:

16-Rainbow Road -> n_rainbow32_n (_f the last round)



1-Luigi Circuit -> n_circuit32_n (_f the last round):
077F60A4 00000008
1F890448 0023EAC0
077F6098 00000008
1F81E5C8 001C7A00


16-Rainbow Road -> n_rainbow32_n (_f the last round):
077F611C 00000008
1FED8160 0033B720
077F6110 00000008
1FE455D0 0024AE40

Now just swapp the values


077F60A4 00000008 = 1-Luigi Circuit -> n_circuit32_n (_f the last round) address
1FED8160 0033B720 = 16-Rainbow Road -> n_rainbow32_n (_f the last round) value
077F6098 00000008 = 1-Luigi Circuit -> n_circuit32_n (_f the last round) address
1FE455D0 0024AE40 = 16-Rainbow Road -> n_rainbow32_n (_f the last round) value

So that's your code... I've tested it and it works perfect. However, since you are NTSC, I've made a regionfree version for you which you can test.

F6000001 817F8180
00231F20 00008DC4
14000004 1FE455D0
14000008 0024AE40
14000010 1FED8160
14000014 0033B720
E0000000 80008000

I'm not sure if this code works for you because of the 8180 range which actually doesn't exist I think. However if it doesn't work, here you have a list of the music files: http://mariokartcustom.niceboards.org/t450-all-mkwii-file-names-list
lolz

toonlink444

So the swap button doesn't work? Because that's what I've been hitting then going to the area I swapped the files with.
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/

Deathwolf

swap button? better write a code and try it out. Just be careful with the values. Wrong values cause a freez for sure.
Just try it out on mkw!
lolz

toonlink444

It worked ;D Thank you. I guess it was the swap button. Alright now for the codes. :D
In the begining there was nothing. Then it exploded
New blog!! Check it out for hacking Smash Bros Brawl!! http://letshackblank.blogspot.com/