Kitty Corp Meow Mix Forums

Help & Tutorials => A/A Tutorials => Topic started by: KingJigglypuff on March 21, 2018, 05:40:30 PM



Title: [Novice] Adding Sub Actions (Revised)
Post by: KingJigglypuff on March 21, 2018, 05:40:30 PM
While pikazz's tutorial (http://forums.kc-mm.com/index.php?topic=66811.0) is still relevant and works, it's been made outdated thanks to PSA Remaker. This tutorial will show you the new way to add Sub Actions to a character.

Requirements:
-PSA Remaker (http://forums.kc-mm.com/Gallery/BrawlView.php?Number=214536)
-A hex editor. I personally recommend HxD (https://mh-nexus.de/en/downloads.php?product=HxD).
-Your Fit*.pac file.
-Your ft_*.rel file.

If you have what you need, then let's move onto the tutorial itself. This tutorial will be split into two parts: PSA Remaker Usage and Hex Editing.

1.) PSA Remaker Usage.
Open PSA Remaker, and you'll be greeted with this window.
(https://i.imgur.com/k6ujLqj.png)

Drag and drop your moveset file into the window as instructed.
(https://i.imgur.com/vsTQsZb.png)

Next, toggle on Maximum Compress. You'll now be able to increase your number of Sub Actions. Remember the current Sub Action Count, as it will be important later.
Disclaimer: While you can add Actions, I would not recommend it, as this method does not cover Actions nor has testing resulted in positive results.
(https://i.imgur.com/NV5bIw1.png)

Here, you'll increase the Sub Action count by however many you need (just know that these values are Hexadecimal). With my example file, I'll add 4 Sub Actions.
(https://i.imgur.com/ssldx9G.png)

Once you're done with that, click "Start". The window will then update to this. You can now close PSA Remaker and locate your altered file in the "Exported" folder.
(https://i.imgur.com/o5VdR6e.png)

2.) HxD Usage.
Open your module in your hex editor.
(https://i.imgur.com/eCxclCh.png)

Press Ctrl + R, and the following window will appear.
(https://i.imgur.com/fi1QE3k.png)

Alter it to the following settings.
(https://i.imgur.com/Qkl5PLY.png)

Next, you'll enter the following into the "Search for" bar.
XXXX = Old Sub Action Count.
38A0XXXX
In my example's case, I'll be entering 38A001DE
(https://i.imgur.com/vA2c4OU.png)

You'll then enter the following into the "Replace with" bar.
XXXX = New Sub Action Count.
38A0XXXX
In my example's case, I'll be entering 38A001E2
(https://i.imgur.com/KWMYtJl.png)

Once you have both fields filled out, click on "Replace All" before the following window appears.
(https://i.imgur.com/bRzsEtN.png)

Click "OK", save, exit your hex editor, and make any desired PSA edits to use your new Sub Actions.

I hope this will help those who were wondering what PSA Remaker is used for.


Title: Re: [Novice] Adding Sub Actions (Revised)
Post by: Popthekirby on March 21, 2018, 05:55:37 PM
Thanks for the guide, this is really helpful :D


Title: Re: [Novice] Adding Sub Actions (Revised)
Post by: eon_tas on February 03, 2020, 03:34:05 PM
Just discovered the .pac converter used in this program changes the SSEAttributes pointer in a chars data, which causes PM chars to load junk data (0xDEADBEEF) into all their attributes if used  in subspace. Hex editting their SSE-Attributes pointer back to 0x0 fixes this.