Kitty Corp Meow Mix Forums

Help & Tutorials => Programming Tutorials => Topic started by: Kabutomaru on July 17, 2013, 02:50:15 AM



Title: Riivolution Tutorial: How to write and use patches for Brawl (For N00BS)
Post by: Kabutomaru on July 17, 2013, 02:50:15 AM
(http://www.nintendoworldreport.com/media/0/1/776.jpg)
Riivolution - Super Smash Bros. Brawl Texture Hacks (http://www.youtube.com/watch?v=ZodeoqCuX0A#)

If you have been wanting to learn how to use Riivolution, and how to write your own patches for it, you've come to the right place. Riivolution is a loader that loads various modifications on your SD Card, and patches it in to the game. However, Riivolution needs an XML telling it to load those files and which path on your SD Card it should take to load the files.
 
Riivolution 1.05 does not load Brawl properly. It will freeze at the strap loader and you won't be able to load ANY mods with it. Use 1.04 if you want to load mods. (Or use Gecko OS to load the File Patch Code)
Quote
This will allow you to load codes for most any Wii game. It is definitely needed if you plan on using the File Patch Code, a popular method of loading Brawl hacks. You can either use this or Riivolution to load files.

1. Download Gecko OS here: [url]http://wiird.l0nk.org/projectfiles/Gecko1931.zip.[/url] ([url]http://wiird.l0nk.org/projectfiles/Gecko1931.zip.[/url])
2. Extract the file to your computer.
3. Go to Gecko1931 > Gecko1931 > HBC > Gecko1931.
4A. If you are using the Homebrew Channel, copy the last "Gecko1931" folder and paste it into your "apps" folder.
4B. If you are using any other method, copy the "boot.elf" file out of the "Gecko1931" folder and paste it into the root of your SD Card.
5. Create a folder on the root of your SD Card called "codes".
6. Download the Code Manager here: [url]http://www.mediafire.com/?e2dzz7zdmcds252.[/url] ([url]http://www.mediafire.com/?e2dzz7zdmcds252.[/url])
7. Extract it somewhere on your computer. I've included a basic .txt file for using the File Patch code. (NTSC-U only though. PAL and NTSC-J users will have to create their own, sorry.)
8. Open the Code Manager. Look to where it says "Game ID". Fill this in with the ID of the game you are making the codes list for. (Ex. Brawl's ID is RSBE01 for NTSC-U, RSBP01 for PAL, and RSBJ01 for NTSC-J) Go to where it says "Game Name" and type in the name of the game.
9. Find the codes that you want to use. A couple of good sites to check out are [url]http://geckocodes.org/[/url] ([url]http://geckocodes.org/[/url]) and [url]http://board.gscentral.org/forum.php.[/url] ([url]http://board.gscentral.org/forum.php.[/url])
10. To add a code, click on "Add a code/comment/category" and type in a name for the code. It should appear in bold. Click on it, then copy and paste the code into where it says "Code contents". Make sure to click "Store modifications" after you paste in the code.
11. When you are done adding codes, go to File > Save as TXT File. Then, make sure your SD Card is in the computer and click "Export to GCT". Select the drive for your SD Card and click on "Store".

Important Codes for Loading Brawl Hacks

If you have an NTSC-U Wii/Disc, use this code:

Code:
File Patch Code v3.5.1: [Phantom Wings]
E0000000 80008000
225664EC 00000000
0401BFE0 4858BE20
065A7E00 00000070
38A00067 38810020
3CE0805A 60E37C18
4BE52531 38A0007F
3883FFE8 38610020
4BE52521 38A00068
60E47C18 38610020
9421FF80 BC410008
38610088 4BA74DB9
7C7C1B78 2C030000
4082000C 38210080
4800001C B8410008
38210080 4BE524E5
38610008 4BA742E1
7C7C1B78 4BA741E8
040223E0 48585BC0
065A7FA0 00000028
80010044 3C608001
6063581C 7C001800
4082000C 7FDDC850
3BDEFFE0 93DB0008
4BA7A424 00000000
0401CD0C 4858B1F4
065A7F00 00000038
2C030000 4182000C
4BA7DD51 4BA74E04
80780008 2C030000
41820014 8118000C
7C634214 7C7B1850
48000008 8078000C
4BA74DE0 00000000
043EE9D8 48000014
043EEBD4 48000014
043D8B9C 48000018
043E9B4C 38600000
043E9D38 38600000
043D8C80 60000000
80000000 80406920
80000001 805A7C00
8A001001 00000000
045A7C10 2F525342
045A7C14 452F7066
80000001 805A7B00
8A001001 00000000
065A7B10 0000000F
2F525342 452F7066
2F736F75 6E642F00
041C6CE0 483E0D20
065A7A00 00000028
9421FF80 BC410008
3C60805A 60637B1F
4BE52931 B8410008
38210080 4BE52995
4BC1F2C4 00000000
065A7900 00000078
9421FF80 7C0802A6
9001000C BC810010
9421FF00 7C872378
54B2BA7E 7CD33378
38800000 9081000C
90810010 90610014
90810018 3880FFFF
9081001C 38610020
90610008 7CE43B78
38A00080 4BE529F5
38610008 4BA752A1
60000000 80210000
B8810010 8001000C
7C0803A6 80210000
4E800020 00000000
043E399C 481C3F04
065A78A0 00000010
80BC0020 7CA59214
3A400000 4BE3C0F4
043DBAEC 481CBDE4
065A78D0 00000018
800302A4 2C130000
41820008 7E609B78
3A600000 4BE3420C
041CDF7C 483D9884
065A7800 00000098
818C0014 9421FF80
BC410008 3D009034
61089D94 7C034000
4082003C 7C882378
3C60804D 60630000
3C80805A 60847B00
7CC53378 38C04200
80E40080 2C070000
40820014 60000000
480000B9 2C030000
41820010 B8410008
80210000 4BC26724
70A501FF 3868FFFF
3C80804C 6084FFFF
7C842A14 38A04001
38A5FFFF 8C040001
9C030001 2C050000
4082FFF0 B8410008
80210000 4BC2670C
141CCF90 483DA770
065A7700 00000048
9421FF80 BC410008
7FE3FB78 3C80805A
60847B00 38A00000
38C04000 480001E5
90640080 807F0008
907A0014 907A005C
907A0074 B8410008
80210000 807F0000
4BC25854 00000000
E0000000 80008000

If you have a PAL Wii/Disc, use this code (*Note* Does not load music):

Code:
PAL - Functional for standard textures, causes crashes/glitches with CSPs: 
File Replacement v2.1a PAL [Phantom Wings, Y.S.]
225683EC 00000000
C201C3A8 00000017
38A00067 38810020
3862E8F8 3D80803F
618CD148 7D8903A6
4E800421 38A0007F
3883FFE8 38610020
3D80803F 618CD148
7D8903A6 4E800421
38A00068 3882E8F8
38610020 9421FF80
BC410008 38610088
3D808001 618CCE7C
7D8903A6 4E800421
7C7C1B78 2C030000
4082000C 38210080
48000034 B8410008
38210080 3D80803F
618CD148 7D8903A6
4E800421 38610008
3D808001 618CC50C
7D8903A6 4E800421
7C7C1B78 3D808001
618CC3AC 7D8903A6
4E800420 00000000
C201CF94 00000007
2C030000 41820018
3D808002 618C5BFC
7D8903A6 4E800421
48000008 8078000C
3D808001 618CCF98
7D8903A6 4E800420
60000000 00000000
043EEE04 48000014
043EF000 48000014
043D8FC8 48000018
043E9F78 38600000
043EA164 38600000
043D90AC 60000000
80000000 80409728
80000001 805A99C0
8A001001 00000000
065A99D0 00000008
2F525342 502F7066
E0000000 80008000

If you have an NTSC-J Wii/disc, use this code:

Code:
File Patch Code v3.5.1 (NTSC-J) [Phantom Wings, Ported by ‚ׂë]
E0000000 80008000
2256606C 00000000
0401BFE0 4858B9A0
065A7980 00000070
38A00067 38810020
3CE0805A 60E37798
4BE52525 38A0007F
3883FFE8 38610020
4BE52515 38A00068
60E47798 38610020
9421FF80 BC410008
38610088 4BA75239
7C7C1B78 2C030000
4082000C 38210080
4800001C B8410008
38210080 4BE524D9
38610008 4BA74761
7C7C1B78 4BA74668
04022360 48585C40
065A7FA0 00000028
80010044 3C608001
6063550C 7C001800
4082000C 7FDDC850
3BDEFFE0 93DB0008
4BA7A3A4 00000000
0401CD0C 4858AD74
065A7A80 00000038
2C030000 4182000C
4BA7E1D1 4BA75284
80780008 2C030000
41820014 8118000C
7C634214 7C7B1850
48000008 8078000C
4BA75260 00000000
043EEA50 48000014
043EEC4C 48000014
043D8C14 48000018
043E9BC4 38600000
043E9DB0 38600000
043D8CF8 60000000
80000000 80406490
80000001 805A7780
8A001001 00000000
045A7790 2F525342
045A7794 4A2F7066
80000001 805A7B00
8A001001 00000000
065A7B10 0000000F
2F525342 4A2F7066
2F736F75 6E642F00
041C6D58 483E0CA8
065A7A00 00000028
9421FF80 BC410008
3C60805A 60637B1F
4BE524A5 B8410008
38210080 4BE52509
4BC1F33C 00000000
065A7900 00000078
9421FF80 7C0802A6
9001000C BC810010
9421FF00 7C872378
54B2BA7E 7CD33378
38800000 9081000C
90810010 90610014
90810018 3880FFFF
9081001C 38610020
90610008 7CE43B78
38A00080 4BE52569
38610008 4BA752A1
60000000 80210000
B8810010 8001000C
7C0803A6 80210000
4E800020 00000000
043E3A14 481C3E8C
065A78A0 00000010
80BC0020 7CA59214
3A400000 4BE3C16C
043DBB64 481CBD6C
065A78D0 00000018
800302A4 2C130000
41820008 7E609B78
3A600000 4BE34284
041CDFF4 483D980C
065A7800 00000098
818C0014 9421FF80
BC410008 3D009034
61089D94 7C034000
4082003C 7C882378
3C60804D 60630000
3C80805A 60847B00
7CC53378 38C04200
80E40080 2C070000
40820014 60000000
480000B9 2C030000
41820010 B8410008
80210000 4BC2679C
70A501FF 3868FFFF
3C80804C 6084FFFF
7C842A14 38A04001
38A5FFFF 8C040001
9C030001 2C050000
4082FFF0 B8410008
80210000 4BC26784
141CD008 483DA6F8
065A7700 00000048
9421FF80 BC410008
7FE3FB78 3C80805A
60847B00 38A00000
38C04000 480001E5
90640080 807F0008
907A0014 907A005C
907A0074 B8410008
80210000 807F0000
4BC258CC 00000000
E0000000 80008000

However, if you do not want to write an XML, and just want to load some modifications, download this XML.  (http://www.dropbox.com/s/zyaxpxz5sz23usy/Mods%20for%20Brawl.zip)You create a "riivolution" folder on the SD Card, extract the zip file (that you downloaded), place the XML in the "riivolution" folder and place the "Super Smash Bros Brawl" folder on the root of the SD Card. Place the hacks in their respective folders.

Textures: Menus, Textures
Music: Music xD  

For tutorials on how to make your own mods, visit the respective links below.

Super Noob Guide To Texture Hacking (with Brawlbox) (http://forums.kc-mm.com/index.php?topic=9241.0)
Guide To Stages (http://forums.kc-mm.com/index.php?topic=13377.0)
Music Guide and FAQ (http://forums.kc-mm.com/index.php?topic=9.0)
DAE Model Importing for Dummies (http://forums.kc-mm.com/index.php?topic=41996.0)
SFX in your game (http://forums.kc-mm.com/index.php?topic=31609.0)

The guides above are relatively easy to follow, and should not give too much trouble.

Now, where can you find hacks you want? Right here at KC-MM. Brawl Vault (http://forums.kc-mm.com/Gallery/BrawlView.php) is a great place to start finding hacks.

But first, to use Riivolution, we need to first install it onto our Wii system.
There are a handful of ways to do this, but are pretty simple.

First Method: SmashStack (Works with ALL system Menus) (http://wiibrew.org/w/images/4/4e/Smashstack.zip)

Riivolution ELF File (http://www.dropbox.com/s/zyqcw91d1xa76ec/boot.elf)

Quote from: Wiibrew
Note: An SDHC card will not work with Super Smash Brothers Brawl. You must have an SD card that is 2GB or less.
Go to the stage builder, move any existing custom stages on Brawl to your SD card, and exit the stage builder. Smash Stack will not work if the console has any custom stages on it, even the three samples that come with a new file or the stages from the Smash Service. You will need to wait at least 24 hours for the stage from the Smash Service to be automatically deleted before trying to run this exploit. DO NOT go on Wi-Fi once the Smash Service stage is deleted.
Connect the SD card to your computer and rename the "private" folder to "privateold" in the root of the SD card.
Copy the "private" folder from the Smash Stack download to the root of the SD card.
Grab a Riivolution .elf file (download is above) and put that in the root of the SD card.
Insert the SD card into the Wii.
Go back to the stage builder and the .elf file will load.
Press "Install" on the right of the application. (However , if you don't want to install it, you will have to load it through that method every time you load a hack.

Method 2: Bannerbomb (Only for Wii System Menu's 4.1 and Below) (http://bannerbomb.qoid.us/index.old.php)
Method 2: Bannerbomb (Only for Wii System Menu 4.2 ) (http://bannerbomb.qoid.us/index.new.php)
Riivolution ELF File (http://www.dropbox.com/s/zyqcw91d1xa76ec/boot.elf)
Quote from: Wiibrew
If your SD card has a private directory with saved channels, rename it temporarily, e.g. to "privateold". Having other saved channels on the same card will screw it up. (You can skip this step if you don't have any channels on the SD card. Saves are fine.)
Copy the Bannerbomb "private" folder to the root of your SD card.
Take your Wii executable, name it "boot.dol" or "boot.elf" if it isn't already, and save it in the root directory of your SD card.
Put your SD card in your Wii and turn it on.
For Bannerbomb v1: Go into Wii Options --> Data Management --> Channels --> SD Card.
For Bannerbomb v2: Go to the SD Card Menu on the main System Menu screen
A message should appear asking to "load boot.dol/.elf". If it freezes or does not appear, download the next .zip file from the Bannerbomb website and start over.
The homebrew on your SD card will load. Press the install button in Riivolution.

Method 3: LetterBomb (Only for Wii System Menu 4.3 and has internet) (http://please.hackmii.com/)
Riivolution ELF File (http://www.dropbox.com/s/zyqcw91d1xa76ec/boot.elf)

Quote from: Wiibrew
Letterbomb
Go to please.hackmii.com
Select your region
On the wii, go to Wii Options>Wii Settings>page 2>Internet>Console Information. Enter your MAC Address into the boxes on please.hackmii.com
Make sure the HackMii installer isn't bundled with your download
Cut the red wire to download the .zip file and unzip it
Copy "private" folder and "boot.elf" to your SD Card (Can also be SDHC)
Insert the SD card to your Wii and go to Wii Messageboard
You should see a red envelope looks like the one on "please.hackmii.com". Click it, and it will load Riivolution. Press the "Install" button.

Writing Patches for Riivolution

Before you start the guide, you might want to have these tools to edit the XML's.

Notepad ++ (http://notepad-plus-plus.org/download/v6.4.2.html)
This XML (http://www.dropbox.com/s/zyaxpxz5sz23usy/Mods%20for%20Brawl.zip)
Look at this page. It helped me a lot and gave very nice details. (http://rvlution.net/wiki/Patch_Format)
Some knowledge on typing.
Some time.
Patience.


OK, first open your XML in Notepad++. (Regular Notepad doesn't do it correctly, Formatting errors)

It should look like this:
Code: (Brawl XML)
<wiidisc version="1">
<id game="RSB" />
<options>
<section name="Super Smash Bros Brawl">
<option name="Textures">
<choice name="Enabled">
<patch id="Textures" />
</choice>
</option>
<option name="Music">
<choice name="Enabled">
<patch id="Music" />
</choice>
</option>
</section>
</options>
<patch id="Music">
<folder external="/Super Smash Bros Brawl/Music" recursive="false" />
<folder external="/Super Smash Bros Brawl/Music" disc="/" />
</patch>
<patch id="Textures">
<folder external="/Super Smash Bros Brawl/Textures" recursive="false" />
<folder external="/Super Smash Bros Brawl/Textures" disc="/" />
</patch>
</wiidisc>

I'll explain each part of the XML.

ID Game: The region of wii this works on.
Section Name: The bar at the top showing the name of the pack. You can edit this to your liking.
Option Name: The name of the option on the left side. Edit this to your liking.
Choice Name: The name of the choice on the right side. Again, you can edit this to your liking.
Patch ID: This is important. This is the folder that will contain your selected hacks.
Folder External: The external folder on the root. You need to edit this to be the same as your Patch ID.
False: This determines if you add extra files on the disc.

I will tell you what should be edited and what not to be edited.

Code:
<wiidisc version="1">
<id game="RSB" />
<options>
<section name="EDIT ME">
<option name="EDIT ME">
<choice name="EDIT ME (CAREFULLY)">
<patch id="EDIT ME (CAREFULLY)" />
</choice>
</option>
<option name="EDIT ME ">
<choice name="EDIT ME ">
<patch id="EDIT ME (CAREFULLY)" />
</choice>
</option>
</section>
</options>
<patch id="EDIT ME (CAREFULLY)">
<folder external="/EDIT ME (CAREFULLY)" recursive="false" />
<folder external="/EDIT ME (CAREFULLY)" disc="/" />
</patch>
<patch id="EDIT ME (CAREFULLY)">
<folder external="/EDIT ME (CAREFULLY)" recursive="false" />
<folder external="/EDIT ME (CAREFULLY)" disc="/" />
</patch>
</wiidisc>


To add extra options, paste this into the XML between the </option> and </section> tags. Edit accordingly.
Code:
<option name="EDIT ME">
<choice name="EDIT ME (CAREFULLY)">
<patch id="EDIT ME (CAREFULLY)" />
</choice>
</option>

Now paste this in between </patch> and </wiidisc> tags. Edit accordingly
Code:
<patch id="EDIT ME (CAREFULLY)">
<folder external="/EDIT ME (CAREFULLY)" recursive="false" />
<folder external="/EDIT ME (CAREFULLY)" disc="/" />
</patch>

To make it an interchangeable option like
Code:
<Example1><Example2>

Paste this:
Code:
 <choice name="Example 2">
                    <patch id="example2" />
                </choice>

in between the next option like this:
Code:
<wiidisc version="1">
    <id game="RSB" />
    <options>
        <section name="Testing">
            <option name="BrawlMods">
                <choice name="Example">
                    <patch id="example" />
                </choice>
                <choice name="Example 2">
                    <patch id="example2" />
                </choice>
            </option>
        </section>
    </options>
    <patch id="example">
        <folder external="/example" recursive="false" />
        <folder external="/example" disc="/" />
    </patch>
    <patch id="example2">
        <folder external="/example2" recursive="false" />
        <folder external="/example2" disc="/" />
    </patch>
</wiidisc>
And edit accordingly.


Title: Re: Riivolution Tutorial: How to write and use patches for Brawl (For N00BS)
Post by: TeamSupreme216 on November 20, 2016, 06:55:58 PM
My gecko Os is code dumping everytime I try.. Help...