WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: toonlink444 on March 26, 2012, 07:32:00 PM

Title: Music Swapping For Twilight Princess
Post by: toonlink444 on March 26, 2012, 07:32:00 PM
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?
Title: Re: Music Swapping For Twilight Princess
Post by: Deathwolf on March 26, 2012, 08:02:31 PM
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.
Title: Re: Music Swapping For Twilight Princess
Post by: toonlink444 on March 26, 2012, 08:59:44 PM
How do you use FST? That's a tab in gecko dotnet right?
Title: Re: Music Swapping For Twilight Princess
Post by: toonlink444 on March 26, 2012, 09:48:43 PM
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
Title: Re: Music Swapping For Twilight Princess
Post by: toonlink444 on March 27, 2012, 05:58:11 PM
I tried swapping the files for SMG, MKWii, and TP and each one nothing happened. Is there a fix or something?
Title: Re: Music Swapping For Twilight Princess
Post by: 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?^^
Title: Re: Music Swapping For Twilight Princess
Post by: toonlink444 on March 27, 2012, 06:16:48 PM
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. :)
Title: Re: Music Swapping For Twilight Princess
Post by: Deathwolf on March 27, 2012, 06:38:03 PM
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
Title: Re: Music Swapping For Twilight Princess
Post by: toonlink444 on March 27, 2012, 06:44:37 PM
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.
Title: Re: Music Swapping For Twilight Princess
Post by: Deathwolf on March 27, 2012, 06:46:07 PM
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!
Title: Re: Music Swapping For Twilight Princess
Post by: toonlink444 on March 27, 2012, 07:26:02 PM
It worked ;D Thank you. I guess it was the swap button. Alright now for the codes. :D