Posted on 07-31-17, 06:42 pm
Normal user


Posts: 4/5
Since: 07-31-17

Last post: 297 days
Last view: 291 days
Introduction

Hello fellow Nintendo modder! Welcome to the Super Mario Galaxy Modding Manual #3! Last time, we've learned how to use the Whitehole level editor and how to test your creations. Today, we're going to learn how to add or swap music in the game, modify the game's text and modify textures in the game! Remember. You must homebrew your Wii and get both the Homebrew Channel and Riivolution before starting at all. But without further delay, Here's how to give Super Mario Galaxy a little makeover.

Modifying Audio

Audio modification for Super Mario Galaxy is possibly the easiest thing to do. It's easier than the level editor! Wanna see what I mean? Well if you want the Buoy Base Galaxy theme to play in Good Egg Galaxy and the Good Egg Galaxy theme to play in Buoy Base galaxy, all you have to do is...rename the .ast files. THAT'S IT. Let's try swapping some music tracks! Go into your "SMG Mod Folder", open the "Assets (SMG1)" folder, open SMGFiles, open AudioRes and open Stream. You should see a ton of .ast files. This is all the game's music! Copy "SMG_galaxy02_strm" and "SMG_galaxy04_strm", Go to your SD card's root files, click "smg1", click AudioRes and click Stream. Paste the two .ast files in the empty Stream folder. Rename "SMG_galaxy02_strm" to "SMG_galaxy04_strm" and rename "SMG_galaxy04_strm" to "SMG_galaxy02_strm". Eject the SD Card and put it in your Wii. Launch your mod using Riivolution and enter either Buoy Base Galaxy or Melty Molten Galaxy. You will notice that their music tracks have swapped! By simply renaming a music file, we were able to switch the music in two galaxies! Adding custom audio is a whole different process. First download an .wav or .mp3 file of the music you want to add and place it in your "SMG Mod Folder" directly. Next, open up SMGTools, open the audio folder, open the "ast converter" folder, open the "AST Converter-v2.0" folder and launch the "astConverter Metro" application. Within the application, click the box that says..well...click the box. It should open up a browser window. in there, go into your "SMG Mod Folder", click the .wav or .mp3 file of the music you want to make a .ast file and click Open. Next click "Enable Custom Loop". Even if it says it's optional, it's not. if you don't have a custom loop, it will either remain converting forever or just crash. Set the loop points then click Convert. DO NOT SET AN OUTPUT FILENAME IN THE CONVERTER. Wait for it to finish converting. When it's done converting, it should ask if you want to keep the original .wav or .mp3 file and that's completely up to you. The newly made .ast file should appear in the "SMG Mod Folder" Cut the custom .ast file, go to your SD card's root files, click "smg1", click AudioRes and click Stream. Paste the .ast file in the Stream folder. Now all you have to do is simply rename it to one of the following codenames.

SMG_astroout01_strm = Comet Obs. Ver. 1
SMG_astroout02_strm = Comet Obs. Ver. 2
SMG_astroout03_strm = Comet Obs. Ver. 3
SMG_astrodome_multi = Dome
SMG_astrodome02_strm = Dome (Bowser Galaxy unlocked)
SMG_astrodome03_strm = Library
SMG_astrodome04_strm = Dome (Garden)
SMG_boss01a_strm = Topmaniac/Bugaboom/King Kaliente
SMG_boss01b_strm = Topmaniac/Bugaboom/King Kaliente Fast
SMG_boss02a_strm = Megaleg
SMG_boss02b_strm = Megaleg Fast
SMG_boss03a_strm = Dino Piranha/Tarantox/Fire Dino Piranha
SMG_boss03b_strm = Dino Piranha/Tarantox/Fire Dino Piranha Fast
SMG_boss04_strm = Kamella
SMG_boss05a_strm = Major Burrows
SMG_boss05b_strm = Major Burrows Fast
SMG_boss06a_strm = Bowser Airship
SMG_boss06b_strm = Bowser Airship Fast
SMG_boss07_multi = Bowser
SMG_boss08_strm = Mecha Bowser
SMG_boss09a_multi = Bouldergeist/Kingfin
SMG_boss09b_multi = Bouldergeist/Kingfin Fast
SMG_boss10_strm = Bowser (Final)
SMG_galaxy_inter_strm = Mysterious Galaxy
SMG_galaxy01_strm = Good Egg Galaxy
SMG_galaxy01_tomb_strm = Tension/Bowser Jr. Galaxy
SMG_galaxy02_hurry_strm = Red Comet
SMG_galaxy02_strm = Melty Molten Galaxy
SMG_galaxy03_multi = Beach Bowl Galaxy/Sea Slide Galaxy
SMG_galaxy04_multi = Buoy Base Galaxy
SMG_galaxy05_strm = Deep Dark Galaxy
SMG_galaxy06_strm = Ghostly Galaxy
SMG_galaxy08_strm = Space Junk Galaxy
SMG_galaxy09_strm = SMB3 Airship Theme
SMG_galaxy10_hurry_strm = Honeyhive Stinkbug Invasion
SMG_galaxy10_strm = Honeyhive Galaxy/Gold Leaf Galaxy
SMG_galaxy11_multi = Battlerock Galaxy/Dreadnought Galaxy
SMG_galaxy12_strm = Mysterious Galaxy 2
SMG_galaxy13_strm = SMB Chika Theme
SMG_galaxy14_strm = Gusty Garden Galaxy
SMG_galaxy15_hurry_strm = Bowser Staircase
SMG_galaxy15_strm = Bowser Galaxy
SMG_galaxy16_multi = Freezeflame Galaxy
SMG_galaxy17_strm = SMB3 Nohara Theme
SMG_galaxy18_strm = Bonus Room
SMG_galaxy19_strm = Dusty Dune Galaxy
SMG_galaxy20_strm = Fast Foe/Cosmic Comet
SMG_galaxy21_strm = Timed Purple Comet
SMG_galaxy22_strm = Toy Time Galaxy
SMG_galaxy23_strm = Tear Drop Galaxy/Bonefin Galaxy
SMG_galaxy24_multi = Gateway Start
SMG_galaxy25_strm = Gateway
SMG_galaxy26_strm = Gateway Core
SMG_galaxy27_strm = Snow Capsule Galaxy
SMG_galaxy28_strm = Bowser Galaxy 2
SMG_ev_epilogue_b_strm = Epilogue
SMG_ev_kinotan_strm = Captain Toad
SMG_ev_kuppabt01_strm = Before Bowser Battle
SMG_ev_prolo01_b_strm = Picture Book (sad)
SMG_ev_prolo01_strm = Picture Book
SMG_ev_prolo02_strm = Grand Finale Galaxy
SMG_ev_prolo03_strm = Early SMB3 Airship Theme
SMG_ev_prolo04_strm = Bowser Theme (flute)
SMG_ev_prolo05_strm = After Bowser's attack
SMG_ev_rabbit_strm = Rabbit Chase
SMG_ev_race_strm = Surfing Ray
SMG_ev_race02_multi = Vs. Spooky Speedster
SMG_ev_starchance_strm = Near Star
SMG_ev_starchance02_strm = Near Star 2
SMG_fileselect_strm = File Select
SMG_first_astro_strm = Grand Star
SMG_second_astro_strm = Grand Star
SMG_staffroll_strm = Credits
SMG_title_strm = Title Screen

Eject the SD Card and put it in your Wii. Launch your mod using Riivolution and enter the galaxy you set the music to play in. It should work perfectly with no problems whatsoever! These steps apply to both Super Mario Galaxy 1 and 2! speaking of Super Mario Galaxy 2, let's experiment a little bit. Go into your "SMG Mod Folder", open the "Assets (SMG2)" folder, open SMGFiles, open AudioRes, open Stream and look for "SMG2_galaxy04_strm.ast". Copy that .ast file, go to your SD card's root files, click "smg1", click AudioRes and click Stream. Paste the .ast file in the Stream folder. Rename the .ast file from "SMG2_galaxy04_strm.ast" to "SMG_galaxy08_strm". Eject the SD Card and put it in your Wii. Launch your mod using Riivolution and enter Space Junk Galaxy. Do you hear that? It's the Flip Swap Galaxy theme from SMG2 playing in Space Junk Galaxy in SMG1! Congratulations! You've successfully learned how to modify audio in Super Mario Galaxy! It's an extremely simple process and even the most blindsided modder can master this! Now, let's spice things up and learn how to edit the text for Super Mario Galaxy!

Modifying Text

Editing text is a little more complicated that audio editing. Unfortunately, there is no .bmg text editor. There WAS one, but it didn't have the ability to save, thus making it useless. The only way we can edit SMG1's test is with a hex editor known as HxD. You can download it using the following link. http://download.cnet.com/HxD-Hex-Editor/3000-2352_4-10891068.html Once downloaded, go into your "SMG Mod Folder", open the "Assets (SMG1)" folder, Open SMGFiles, open whatever language file your Wii is set to (EuEnglish, EuDutch, EuGerman, EuSpanish and EuFrench for PAL Reigons and UsEnglish, UsSpanish and UsFrench in NTSC Reigons), Open MessageData and copy "Message.arc". Next, go to SMGTools, click the "arc editing" folder, click the "SZS Tools" folder and click the "SZS Tools-v1.1" folder. In there, create a file called "Message". You'll find out why later. Now, paste "Message.arc" and drag and drop it on the "ArcExtract" software. When it's done extracting Message.arc, move "message.bmg", "messageid.tbl" and "struct.tbl" into the Message folder we created earlier. Next, open up the HxD hex editor. Click "File" then click "Open". It should open up a browser window. in there, locate the "message.bmg" file you extracted. All the game's text should appear. The top is a bunch of symbols, while lower in the file, you can see the game's text. When text editing on your own, don't EVER delete or add characters (letters, numbers, symbols, etc.). If you do, it will change the file size of the "message.bmg" file and it will become incompatible. You can only replace characters...and yes, spaces count as characters. Also, don't EVER get rid of the dots in between the letters. Anyways, let's start easy and simply rename Good Egg Galaxy to Starland Galaxy. Click "Search" then click "Find". Set the search direction to forward, make your search Unicode strings only by checking the "Unicode string" box, type "Good Egg" in the search box and click OK. Replace the text that says "Good Egg" to "Starland" like shown below.

Example

Before = G.o.o.d. .E.g.g.
After = S.t.a.r.l.a.n.d.

Press the "F3" button on your keyboard to show other areas where it says "Good Egg". Replace each piece of text that says "Good Egg" with "Starland" until there are no more results for "Good Egg" in the text file. When you're done, press "Save" and close the HxD Hex Editor. Now go back into your "SMG Mod Folder", open SMGTools, click the "arc editing" folder, click the "SZS Tools" folder, click the "SZS Tools-v1.1" folder and click the "Message" folder. Delete the "message.bmg.bak" file. Now get the "Message" folder we made and drag and drop it on the "Arc Repacker" software. Now we've created a new "Message.arc" file with custom text. Now you know why we named the folder Message. Now cut the newly made "Message.arc" file, go to your SD card's root files, click "smg1", click the language file your Wii is set to, create a folder called "MessageData" and paste our custom "Message.arc" in the newly made MessageData file. Eject the SD Card and put it in your Wii. Launch your mod using Riivolution and you should see that Good Egg Galaxy's name has changed! This is not the only thing you can do though. Since all the text is in one file, you can change star names, dialogue and more. But remember. Don't EVER delete or add characters (letters, numbers, symbols, etc.). You can only replace characters...and yes, one again, spaces count as characters. Especially remember to never remove the dots in between the letters. If the filesize of "message.bmg" is higher or lower than it originally was, then the game will crash before it even boots when testing! Congratulations! You've successfully learned how to modify text in Super Mario Galaxy! It's a simple yet tricky process, but it's all worth it when you see your custom text appear in game! It may be difficult for some people, but it always feels so satisfying knowing you did something most SMG Modders don't know about! That's right. Most SMG Modders are used to the filesystem of SMG2 since SMG modding became popular when SMG2 was still considered a new game. Due to this, most people don't know about the filesystem of the first game, which is very unfortunate because to be honest, the filesystem of the first game is much more simple.

End of Third Manual

Well, now you know how to modify music and modify the text within Super Mario Galaxy 1. In Super Mario Galaxy Modding Manual #4, we're gonna add even more spice to the galaxy burrito and learn how to edit the cutscenes and textures for Super Mario Galaxy! See ya then!
Posted on 07-31-17, 06:48 pm

Super Koopa
Careful with that axe, Eugene!


Posts: 666/854
Since: 10-08-14

Last post: 51 days
Last view: 1 day
There's a much more updated music importing tutorial on this site.
_________________________
[22:47:32] Tahcryon: Sad to hear that you won’t be shitting out SMG levels, Aurum
[22:47:42] Aurum: shitting out smg levels
[22:47:47] Aurum: I really wish it would be like this
[22:47:57] Aurum: it would make things so much easier
Posted on 07-31-17, 06:49 pm
Normal user


Posts: 5/5
Since: 07-31-17

Last post: 297 days
Last view: 291 days
I'll be sure to update these very soon with the updated information!
Posted on 08-01-17, 06:35 am (rev. 1 by SY24 on 08-01-17, 06:40 am)
Will start a hack by doing a logo...


Posts: 12/68
Since: 07-10-17

Last post: 57 days
Last view: 5 days
I'd also say that the other AST tutorial here is a bit better since it uses demonstrating images, paragraphs and a not-copy-pasted table of SMG and SMG2 AST-filenames.
But instead of being mean I should please you to read through the mentioned tutorial and suggest changes and improvements. I don't think the board needs multiple tutorials for a single issue

EDIT: And for BMG editing I really, really recommend the BMG-Editor which is included in the CTools pack by Chadderz. People who have been hacking Mario Kart Wii know and love this software.
Posted on 08-01-17, 11:21 am

Super Koopa
Careful with that axe, Eugene!


Posts: 671/854
Since: 10-08-14

Last post: 51 days
Last view: 1 day
The BMG editor doesn't work with SMG's file format. It's different.
_________________________
[22:47:32] Tahcryon: Sad to hear that you won’t be shitting out SMG levels, Aurum
[22:47:42] Aurum: shitting out smg levels
[22:47:47] Aurum: I really wish it would be like this
[22:47:57] Aurum: it would make things so much easier