Kitty Corp Meow Mix Forums

Help & Tutorials => Programming Tutorials => Topic started by: Ebola16 on December 23, 2014, 07:57:01 PM



Title: [OBSOLETE] Alternate File Loader Stages and Brawlex
Post by: Ebola16 on December 23, 2014, 07:57:01 PM
A regular Brawl compatible Alternate Stage Loader has been released here http://forums.kc-mm.com/index.php?topic=20291.0 (http://forums.kc-mm.com/index.php?topic=20291.0)
This makes the AFL now obsolete for loading alternate stages.

Apparently not too many people know about this, so I have good news! This doubled the amount of stages I could use via Brawlex with Stage Expansion.

The Alternate Stage Loader (ASL) and Brawlex are currently incompatible. This code allows multiple stages to be loaded as "alternate" stages using a "base" stage .rel. If you are interested in the Brawlex incompatible ASL, see http://forums.kc-mm.com/index.php?topic=31070.0 (http://forums.kc-mm.com/index.php?topic=31070.0).

While ASL does not work with Brawlex 2.0.0.0, its predecessor does. Almas' Alternate File Loader (AFL) can load multiple types of files when a customizable button activator is pressed, but stages are the ones of interest for me. A full explanation of its capabilities can be found here: http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/. (http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/.) I currently use a GameCube button activator, but I have not been able to get button activators from other controllers to work.

ASL is able to have many alternates for a stage whereas the AFL can only have one per stage. The alternate stage loaded will use the same .rel as the base stage. Only one instance of AFL will be recognized by Wiis (the first one if you have multiple), so only one function of the AFL and one button activator will be recognized. The AFL and ASL do not alter cosmetic, sfx, or strm data.

Codes for AFL (see spoiler): AFL (Core code, configured for stage loading), AF Data (Button Activator set to GameCube Y+A)
Alternate File Loader [Almas]
C23FA350 00000020
90C20000 90E20004
91620008 90A2000C
90620010 91220014
91420018 9182001C
3D800004 618C86C0
3D60805A 3CA0452F
60A57066 90AB7C14
816B7C22 3C608057
60639FF0 84A30010
2C050000 4182008C
7C055800 4082FFF0
3CC04545 60C62F53
7C062800 4082001C
3D60804D 616BE4B0
A16B0000 A1430008
7C0A5800 41820050
88A30004 A1430008
39200000 A0C30006
64C68152 7CC66214
3CE0804D 60E7E4A8
39290001 7CCC3050
38E70008 2C090005
4182FF94 89660000
7C0B2800 4082FFE4
A1670000 7C0B5000
4082FFD8 A143000A
3D60805A B14B7C16
80C20000 80E20004
81620008 80A2000C
80620010 81220014
81420018 8182001C
8C040001 00000000

Alternate File Data (Gamecube Controller AY)
0657A000 00000010
45452F53 0000E27B
09804159 00000000

Setup: This method works using Gecko code handler. I have not tested other code handlers.
1. Insert the codes into your .gct file (check to make sure you didn't copy a code that already exists in your .gct).
2. Create these folders in you SD card (Alternate Stages will be loaded from here):
private/wii/app/RSBE/ay/stage/melee/
3. Add alternate stages to the new "melee" folder (they must have the same filename as the base stage)

How to use in game with my button activator:
1. Move your hand over a base stage (I'll use Final Destination as an example).
2. Hold down Y on a Gamecube controller
3. (Don't let go of Y) Hold down A on the same controller. Based on the Final Destination example, private/wii/app/RSBE/ay/stage/melee/STGFINAL.pac will now be loaded instead of Final Destination

Notes: This button activator is specific to the stage selection screen, so pressing the button activator elsewhere will not cause problems. If an alternate stage cannot be found (like naming your alternate Final Destination as STGFNIAL.pac), the base stage will be loaded instead. If a stage that uses a different .rel than the base stage is loaded, the game will freeze (there are some rare exceptions to this however).

This is why I have been working on achieving .rel-less stage porting. I am having progress!

Enjoy your stages everyone!

Update 3/15/2015: Bytecount typo has been corrected thanks to secretchaos1. While this did not cause any problems for my setup, it did for his.


Title: Re: Alternate File Loader and Brawlex (Double your stages!)
Post by: secretchaos1 on December 24, 2014, 12:52:28 AM
Looks pretty useful. As I said in the BrawlEx thread I'll probably look into this after I'm done filling my roster, this makes it a lot easier to setup though. Thanks!


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 06, 2015, 06:25:19 PM
What is the combination for Wiimote/Nunchuk? I use that, as I don't have a working GameCube Controller...


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 07, 2015, 10:13:44 PM
I haven't tested Wiimote / Nunchuck, but the button activator data can be found here: http://www.codemasters-project.net/members/Skiller/CMP/Jokerwii.htm (http://www.codemasters-project.net/members/Skiller/CMP/Jokerwii.htm) Select the button combo you want and replace it with ZZZZ in the Alternate File data (see http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/ (http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/))


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 08, 2015, 05:14:41 AM
I haven't tested Wiimote / Nunchuck, but the button activator data can be found here: [url]http://www.codemasters-project.net/members/Skiller/CMP/Jokerwii.htm.[/url] ([url]http://www.codemasters-project.net/members/Skiller/CMP/Jokerwii.htm.[/url]) Select the button combo you want and replace it with ZZZZ in the Alternate File data (see [url]http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/[/url] ([url]http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/[/url]))

The first link is broken.


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 08, 2015, 05:30:00 AM
Formatting issue, I fixed the link. I also vaguely remember someone saying that they couldn't get wiimote or wiimote with nunchuck button activators to work, so there is a chance that your button activators will fail. Let me know how it turns out!


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 08, 2015, 05:35:46 AM
I will be able to test it later on today. And, do I need an alt. stage file for every stage in my mod?


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 08, 2015, 05:49:51 AM
No, if you try to load an alternate stage but the file cannot be found, the original file will be loaded.


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 08, 2015, 05:55:45 AM
Okay. And, where do I put the Joker code when I have what I want?


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 08, 2015, 05:59:55 AM
The button activator goes in the ZZZZ location. You need to add 80 in hex to your activator though. (see http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/ (http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/)).


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 08, 2015, 07:01:11 AM
The button activator goes in the ZZZZ location. You need to add 80 in hex to your activator though. (see [url]http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/[/url] ([url]http://smashboards.com/threads/the-alternate-file-loader-aka-the-clone-engine.250370/[/url])).



And do I put the 80 in hex before or after my controller combination code?


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 20, 2015, 05:17:20 PM
It shouldn't matter. For example, the Gamecube A+Y button activator has a value of 0x0900. In order to work with this code, 0x0080 must be added.
0x0080 + 0x0900 and
0x0900 + 0x0080
are equivalent (both equal 0x0980).
The order of the above addition should not matter.


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 20, 2015, 05:43:52 PM
It shouldn't matter. For example, the Gamecube A+Y button activator has a value of 0x0900. In order to work with this code, 0x0080 must be added.
0x0080 + 0x0900 and
0x0900 + 0x0080
are equivalent (both equal 0x0980).
The order of the above addition should not matter.

I tried, and it didn't work. Which version of BrawlEx does this work with?


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 20, 2015, 06:01:39 PM
It worked with every version of Brawlex that I tested. I currently use 2.0.0.0. Wiimote and Wiimote + Nunchuck codes are thought to fail so that may be your problem. I can confirm that Gamecube controller input works and other people say Wiimote + classic controller input works.

Update: I updated the OP to clarify probable issues with Wiimote alone and Wiimote + Nunchuck button activators.


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 20, 2015, 06:18:00 PM
It worked with every version of Brawlex that I tested. I currently use 2.0.0.0. Wiimote and Wiimote + Nunchuck codes are though to fail so that may be your problem. I can confirm that Gamecube controller input works and other people say Wiimote + classic controller input works.

I think I have a problem with my clone engine entirely, I'm using a mix of different versions, and when I downgraded two characters, they glitches and crashes the game. I'll try upgrading all of the characters when I get a chance... IF I get a chance.


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 20, 2015, 06:28:37 PM
I'd suggest removing all previous Brawlex core files and downloading the latest stable ones. If you have multiple characters that have issues, the easiest way to fix them is to remake their config files. Post in the help section if you get stuck. Also, it is unlikely that an incorrectly configured Brawlex is the source of the AFL not working.


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 20, 2015, 06:42:06 PM
I'd suggest removing all previous Brawlex core files and downloading the latest stable ones. If you have multiple characters that have issues, the easiest way to fix them is to remake their config files. Post in the help section if you get stuck. Also, it is unlikely that an incorrectly configured Brawlex is the source of the AFL not working.

It's not that I have issues, I have two clones from the latest version of BrawlEx, and my other bunch from 1.2.0.0, and so I have to upgrade everyone instead of downgrading two clones. My clone engine has been successful until I tried adding the alt. stage loader.


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 20, 2015, 06:57:45 PM
I see. Another possible problem is that my original post had an incorrect bytecount that was fixed a while ago. You may want to recopy my codes. The best way to fix your problem would be to:

Run Brawl with just the file patch code (remove Brawlex core files), alternate file loader, and alternate file loader data. Use the Gamecube controller button activator. Emulation with Dolphin can be used if you don't have a Gamecube controller. If this works, the alternate file loader is properly configured.

Then re-add the rest of your .gct codes and Brawlex core files. If the AFL stops working, one of your codes are incompatible with the AFL.

Then change the button activator to the button activator that you really want. If the AFL stops working, your button activator is either incorrect or incompatible with the AFL.


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: SUPAHSAWNIK99 on May 21, 2015, 01:29:48 PM
I see. Another possible problem is that my original post had an incorrect bytecount that was fixed a while ago. You may want to recopy my codes. The best way to fix your problem would be to:

Run Brawl with just the file patch code (remove Brawlex core files), alternate file loader, and alternate file loader data. Use the Gamecube controller button activator. Emulation with Dolphin can be used if you don't have a Gamecube controller. If this works, the alternate file loader is properly configured.

Then re-add the rest of your .gct codes and Brawlex core files. If the AFL stops working, one of your codes are incompatible with the AFL.

Then change the button activator to the button activator that you really want. If the AFL stops working, your button activator is either incorrect or incompatible with the AFL.

Alright, I will try that later on! Thanks!


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 25, 2015, 02:01:41 PM
I have done some further testing with the button activator code:
GameCube button activators work
Wiimote alone does not work
Wiimote plus nunchuck does not work
Wiimote plus classic controller does not work


I have updated the OP. Please let me know if anyone manages to get one of the incompatible button activators working. (For the AFL code, button activator must have 0x80 added to the actual value)


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: spiritpyros on May 25, 2015, 05:59:41 PM
can any test if this works for non-BrawlEX characters


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Don Jon Bravo on May 25, 2015, 06:04:26 PM
dis code was made before brawl ex was released
so it definetly works wih "non brawl ex"


Title: Re: Alternate File Loader and Brawlex (Double Your Stages!)
Post by: Ebola16 on May 25, 2015, 06:07:59 PM
can any test if this works for non-BrawlEX characters
Yes, I've used AFL before Brawlex. You may want to consider the ASL instead of the AFL if you're not using Brawlex. You can have more than 1 alt per stage with the ASL.