How to add New Action Overrides Entry/Exit to those who dont have

Started by pikazz, March 07, 2015, 12:19:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

How to add New Action Overrides Entry/Exit to those who dont have

Action Overrides is an awesome thing that lets you "redo" an existing normal action inside Fighter.pac to your FitChar.pac and do code it as you wish without editing the Fitgher.pac itself!
Sadly, Action Overrides doesn't exists on everyone. Only a few has the luxury to have it already.
Entry are the main thing that the codes has while the Exit are often used at control checks like "if Controlstick is up, do this"
This tutorial will cover 2 parts, first for adding both of the Overrides and the second part is to prevent some attack to freeze and fix the PSA! The Second part is the most important part so don't skip it!
However, for this tutorial to work, you need a PSA that has at least 2 "special offset names". I will explain what it is in step 3

What you need:
Your PSA
A Backup for your PSA
Brawlbox 68b
Tabuu Alpha 3
Calculator
Hex Editor

In this Tutorial, I will use Ganon as a Base
PART 1
Sorry but you are not allowed to view spoiler contents.


PART 2

[Spoiler]
Step 1:
Open up your Backup and extract the floating points! Since I used Ganons B and SideB, which is "Warlock Punch" and "Flame Choke". Remember how many Hex they both are using! Ganon B has 0x14 hex and SideB has 0x1C hex. Rightclick on MoveDef (at the top) and Export the Backup as a .Moveset file for later use


Also remember your offsets for both of the floating points. My is 139532 for Warlock punch and 139556 sideB (in hex 2210C and 22124)

Step 2:
Open your PSA again in Brawlbox, add 2 Subroutines and add "nop" inside it depending how many hex both has! Since one nop is take up 2 Offsets, I calculated that for Ganons B needs 2 Nops and SideB needs 3 Nops ( (the Needed Hex / 4) / 2 Offsets + 2)


Make sure to add 2 Subroutines commands in any subaction linking to them just like in part1 step1!

Step 3:
Save and Reopen it in brawlbox to give the subroutines offsets!
Scroll down to your new subroutines and take notes of their offsets! Mine is 118512 and 118536 (in hex they are 1CEF0 and 1CF08 )


Now scroll down to "data" folder, press on it and go to "extra offset"


The first offset were used by Ganons B and the second was used for SideB! We need to manually correct them! Take the offsets and remake them to Hex! So -208994432 will be F38AFF80 in hex!
And now scroll up all the way to the top and export it as a Moveset file


Step 4:
Now open up the moveset file in a hex editor and "Find hex" the one that you need, since I needed to fix the F38AFF80, I search for it!


Bingo!
Now I will write down my subroutine offsets to it instead! Mine was 1CEF0 and 1CF08 from step 3


Step 5:
Now save it and export it back to your PSA. Go down to the "Subroutine commands" in your Subactions, remove them and Save and Re-open it! This step is to prevent a crash further ahead!
Now you have 2 new ExtraParams! Named ExtraParam0 and ExtraParam1. Param0 is for Warlock Punch and Param1 is for Side B!
Please note their new Offset on the Params


My warlock punch new Offset is 8184 (1FF8 in hex) and my SideB new offset is 8208 (2010 in hex)

Step 6:
Now scroll to the new offsets + 20 to your Params! So my 1FF8 will be 2018


Now open up the backup Moveset file in the hex editor aswell and go to their floating points for each one! Mine was 2210C in step1 (+20 = 2212C)
Now Mark the hex that's been used in it! Since it was 0x14, I need to copy 18 (0x0 counts) and copy-paste over to the new PSA



Just like this!
Now repeat it for the second floating points aswell!


Step 7:
Once it done, save your Moveset file and import it for the last time in brawlbox!


And now it's done! Everything is fixed and you have action override in it too!

Be creative! Have fun!
Stupid Tinypic :C