Kitty Corp Meow Mix Forums

Super Smash Bros. Brawl Hacking => Programming => Topic started by: Sammi Husky on August 12, 2014, 05:54:48 PM



Title: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on August 12, 2014, 05:54:48 PM
In addition to working on Brawlbox and my SSE research, there are various programs that i create to work on whatever peaks my interest. This thread may be of use to some people, if not only for the development of PSA (which i continue to program in my spare time). For those who wish to keep up on development or to contribute, the public repo is hosted on Github (https://github.com/Sammi-Husky/Project-Smash-Attacks)

Project Smash Attacks v1.3a:
The biggest additions to this version of PSA are the ability to edit Kirby hat files, as well as the item param files. Common items of course need to be exported from the ItemCommonParam.pac file or from the ItemCommonParam from common3.pac, and (hopefully) fixing random file bloating. Other then that, the rest of the changes are self explanatory and are in the changelog.
 
Download Link (https://mega.co.nz/#!eJwxTIBI!2LbaWvHwaQpv-2wcRATD8WSHrd_wPp1tkxOtxYzkZ6I)
(http://i.imgur.com/3cUslCD.png)

====================================
|************ Change Log ************|
 ====================================
 - v1.3a- (8/12/2014)
   . Replaced 'Remove' button with 'Nop selected' button, as nopping is currently more efficient.
   . Fixed random file bloating (hopefully)
   . Fixed bug where after repack the saved file would still be open
   . Fixed opening DDD. (Credit to Dantarion)
   . Allowed parsing exit actions as well as blanks actions.
   . Copy button also copies selected events to clipboard as text
   . Added right click menu to attributes grid to view specific attributes as either int or float.
   . Added "Data Explorer" to select data from the file to edit. In the future this will support articles, floating points, and "Nodes"
   . Kirby hats are now supported*
   . Items are now support*

   *The Kirby hats and items must have "irby" present in the filenames for the program to recognize this file as a kirby hat
   *The item files must have either "Itm", "itm", or "Item" present within the filename to recognize it as an item file.



BrawlEx Clone Tool v0.75a:
This update introduces a few great features, one of which i feel is pretty useful in that it compresses the filesize of your cosmetic files by a significant margin by compressing each cosmetic slot to extended lz77 as well as recompresses ALL csp files to cmpr to halve the size of your sc_selcharacter.pac. The other feature that saves time is the "patch module" button. It simply opens the section editor for you to patch, and asks for the name of the clone. It will automatically name and copy your module file over for your. The rest of the update is all fixes for some fatal bugs that would crash the program. Download Link (https://mega.co.nz/#!uMRRHawT!ezsFscJM85sNYOIZDIM0ma6W8IQf9fQUYelEVp3FGkQ)

(http://i.imgur.com/fhubFdD.png)
- v0.75a- (8/12/2014)
   Bugs:
      . Fixed bug loading clones when the number of configs differ between folder
      . Fixed bug Where adding clones to the roster doesn't save CSSRoster.dat
      . Fixed bug where clones with no cosmetics would severely confuse the tool causing mismatched fighter data
      . Fixed bug where cosmetic form's small name entry overlapped with the CSS name
      . Tool will no longer display characters whose configs are below 3F to prevent errors

   Features and Improvements:
      . Roster editor now has option to create new roster file.
      . Added "Patch Module" to Tools menu. open module file, edit slot, then close and save
      . "Reduce Filesize" button now asks to re-encode all CSP's in the sc_selcaharacter as cmpr. Quite literally halving the filesize (thats alot!)

   ==========Notes==========
   . New and experimental modules will be supported when the stable release of BrawlEx v2 is released


Title: Re: Sammi Husky's misc toolbox|| PSA v1.3a & BX clone tool update
Post by: SonicBrawler on August 12, 2014, 06:05:17 PM
*subs* Sweet


Title: Re: Sammi Husky's misc toolbox|| PSA v1.3a & BX clone tool update
Post by: Leon Exodio on August 12, 2014, 06:06:26 PM
*subs*

www.youtube.com/watch?v=FJbmB9k2Y88


Title: Re: Sammi Husky's misc toolbox|| PSA v1.3a & BX clone tool update
Post by: spiritpyros on August 12, 2014, 06:23:07 PM
Suba sub sub


Title: Re: Sammi Husky's misc toolbox|| PSA v1.3a & BX clone tool update
Post by: Infernape on August 12, 2014, 06:23:32 PM
Thanks for sharing this! I will look forward to this.


Title: Re: Sammi Husky's misc toolbox|| PSA v1.3a & BX clone tool update
Post by: Mr. AI | Sluigi123 on August 12, 2014, 08:13:54 PM
This is a big need for a lot of people, especially for me trying out Item balancing! :)


Title: Re: Sammi Husky's misc toolbox|| PSA v1.3a & BX clone tool update
Post by: Ricky (Br3) on August 12, 2014, 08:26:53 PM
(http://i.imgur.com/3sV0ENy.png)

Subs


Title: Re: Sammi Husky's misc toolbox|| PSA v1.3a & BX clone tool update
Post by: Sammi Husky on August 12, 2014, 09:22:44 PM
Soon i hope to have articles supported as well :) If anyone wants to help out, just fork the repo and send me a pull request with the changes. Or, i could give you commit access. Just pm me if so


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: SonicBrawler on August 12, 2014, 09:24:51 PM
you should make it so you can copy and paste between windows.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on August 12, 2014, 09:27:59 PM
I already have it pasting to text, i just need to retool the paste function to parse the strings as events. The current output of the paste function looks like this

Code:
	If On Ground:
Set Air/Ground: On Ground
Set Edge Slide: 0-2,
If Bit is Set: RA-Bit[16]
Change Subaction: sub action=RA-Basic[2], pass frame=true
Else:
Change Subaction: sub action=RA-Basic[2]
Bit Variable Set: RA-Bit[16] = true
End If:
Subactions 02: 6-4,
Else:


 =============
   0x01E60C   
 =============
000A0100 0001e574
0E000100 0001e57c
08000100 0001e584
000A0200 0001e58c
04000200 0001e59c
000E0000 00000000
04000100 0001e5ac
120A0100 0001e5b4
000F0000 00000000
04020100 0001e5bc
000E0000 00000000


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Doq on August 12, 2014, 10:49:03 PM
much beautiful


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Leon Exodio on August 12, 2014, 11:34:50 PM
i just psaed a new pokemon thanks sammi this program is awesome


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Spex130 on August 13, 2014, 08:03:05 AM
I have no idea how I missed this thread, but this is quite cool.

Never cease to amaze, Sammi. Nice work.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: KingJigglypuff on August 13, 2014, 09:44:28 AM
[Hype Intensifies]

I'm definitely following this thread for sure.

Edit: Something you could do is allow viewing and editing the SSE Attributes of a character.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: HaloFanODST on August 13, 2014, 02:05:40 PM
*subs*


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Archer(AkenoS3) on August 13, 2014, 03:06:50 PM
*subs*

This is epic. And it seems that there will be more.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: colonelmcdoogle on August 14, 2014, 11:02:30 AM
Is there a way for us to add ROB, Toon Link and Zelda clones using the clone tool like with falcon clones (Putting them over marth with a falcon .rel) or is that something we can only do manually?


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Unkown Kokiri on August 15, 2014, 11:32:46 PM
 :happy:


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Rebtand on August 16, 2014, 05:59:31 AM
Oh, nice!


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Rosetta-Hime on August 16, 2014, 06:57:04 AM
Holy crap! Time to do that new Assist Trophy I wanted to make! Excellent work, as always Sammi.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: KeiroStarr on August 16, 2014, 08:35:26 PM
a quick issue, seems that when you open the PF folder with the tool, an Unhandled Exception occurs stating that the Input String is not in a valid format.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: ZX_BraveSol_ZX on August 18, 2014, 10:16:46 PM
I'm trying to add cosmetics with your tool. but the confirm button is greyed out!!!!!
(http://i.imgur.com/elEXOrs.png)
and it doesnt change no matter what i try,


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on August 19, 2014, 12:36:17 AM
Ahh yes, that would be because the sc_selcharacter or the sc_selcharacter in common5 is passed the filesize limit. Reducing the filesize will fix that for ya


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: pikazz on August 19, 2014, 12:58:12 AM
how did I miss this thread O_o

looks really lovely!

btw, do you possible take request of what to be added in the PSAs? o:


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on August 19, 2014, 03:35:36 AM
You mean suggestions as of things to add or implement in the program? sure thing, all suggestions are very welcome. Though i can't promise anything, i'll sure try to implement the things people suggest :)

Currently, im working on getting articles parsed and editable for each character. That process is about...87% done.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: pikazz on August 19, 2014, 04:28:45 AM
You mean suggestions as of things to add or implement in the program? sure thing, all suggestions are very welcome. Though i can't promise anything, i'll sure try to implement the things people suggest :)

Currently, im working on getting articles parsed and editable for each character. That process is about...87% done.

that sounds awesome! even aviable to add Articles to those who doesnt have any articles or add one article to that who does already have articles? (that step is critical to adding articles with modules which I want to play with)

but the 2 I was thinking of is this: http://forums.kc-mm.com/index.php?topic=66724.0 (http://forums.kc-mm.com/index.php?topic=66724.0)

and this: http://forums.kc-mm.com/index.php?topic=65585.0 (http://forums.kc-mm.com/index.php?topic=65585.0)

would love to able to add and edit these with ease in PSA o:


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Doq on August 19, 2014, 08:59:04 AM
Currently, im working on getting articles parsed and editable for each character. That process is about...87% done.
Articles???!!???!!!?

*dies*


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Gamma Ridley on August 19, 2014, 09:02:46 AM
I just want you to know that you are beautiful and don't let anyone tell you otherwise.



Also I hope you make it so that all the things that are editable through BrawlBox only can be edited using PSA, like adding model changers. That'd be neato.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Spex130 on August 19, 2014, 09:47:29 AM
Yes, being able to edit/add model changers through PSA would be FANTASTICAL.

Right now the only way to even reach them is through Tabuu, and I don't have the technical skill to go into HxD and add another entry manually. Editing PSAs in Brawlbox breaks a lot of them, after all.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Mariohuge on August 19, 2014, 09:14:20 PM
Hm, well this is a strange problem. I went to the download in the OP for the brawlex clone tool, but I got the unhandled exception error. I'm guessing it's because I have windows 8.1, but wasn't this fixed in an earlier version? Or is it because of a completely different reason, like the SD card being 4 gigs or something?


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Eternal Yoshi on August 29, 2014, 10:39:53 PM
Input String is not in correct format.

Code:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Int32.Parse(String s, NumberStyles style)
   at WindowsFormsApplication2.MainWindow.LoadClones()
   at WindowsFormsApplication2.MainWindow.SelectFolderButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
BrawlEx Clone Tool
    Assembly Version: 0.1.0.0
    Win32 Version: 0.1.0.0
    CodeBase: file:///C:/Users/Eternal%20Yoshi/Desktop/Firefox%20DLs/BrawlEx%20Clone%20Tool%20(beta)(2)/BrawlEx%20Clone%20Tool.exe
----------------------------------------
BrawlLib
    Assembly Version: 0.20.5337.19371
    Win32 Version: 0.20.1.0
    CodeBase: file:///C:/Users/Eternal%20Yoshi/Desktop/Firefox%20DLs/BrawlEx%20Clone%20Tool%20(beta)(2)/BrawlLib.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34003 built by: FX45W81RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Segtendo on August 29, 2014, 11:37:32 PM
Sub a dub dubbin'.
Need to watch this thread. Your coding skills are something to be recognized.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on August 29, 2014, 11:50:38 PM
Input String is not in correct format.

My my..this thing is full of terrible coding practices and whatnot...I should probably just recode it from scratch. This program was literally my entry into programming and as such is terrible. I built that program in order to learn as i go. Thanks for posting the crash log! I'll see if i can't fix it up


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: FUnKy67 on August 30, 2014, 01:28:22 AM
everytime i hit add cosmetic i get an unhandled exception. any idea why thats happening?


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on August 30, 2014, 02:16:24 AM
The most likely reason that would happen, is if your cosmetic file is over filesize. Right before opening the dialog, it checks the filesize. Unfortunately, i wasn't that great at programming back then and it crashes if it's over the filesize it expects


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Ricky (Br3) on August 30, 2014, 05:50:23 AM
Sammi, reposting here because you might have a quick solution:

Can someone help me with this?

I tried adding cosmetics with Sammi's cosmetic option for the new BrawlEx clone tool, and it worked great for the CSPs, but... as soon as it enters the battle, the game freezes. I saw before it froze that it loaded Sonic's emblem and for some reason Yellow Alloy's name?

Can anyone who sucessfully added the cosmetics this way tell me what I did wrong?

In case it's important to mention, the character is a clone of Sonic (Shadow).


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: FUnKy67 on August 30, 2014, 12:28:30 PM
The most likely reason that would happen, is if your cosmetic file is over filesize. Right before opening the dialog, it checks the filesize. Unfortunately, i wasn't that great at programming back then and it crashes if it's over the filesize it expects
do you mean the cosmetic config file? cause i havent created a miscdata110 full of portraits yet for the clones


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on September 01, 2014, 05:54:41 PM
this site gives you free nintendo eshop cards legally [url]http://www.instagc.com/421876[/url] ([url]http://www.instagc.com/421876[/url]) just register and get points and get the cards code in your email


Oh my lord, spambot and a half


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Ricky (Br3) on September 01, 2014, 06:44:26 PM
lol, disregard my issue, Sammi, I figured it out.

However, I have a couple of suggestions for the cosmetic option of your clone tool.

- The option to add more CSPs, RSPs and BPs at once, instead of just the first - even if just copying the first over to the rest of the costumes. Replacing just the first one when changing the cosmetic slot results in freezes until you do the rest yourself.
- The option to add Battle Name and Franchise Icon.

These would save a lot of time to the person changing cosmetics.

In the end, I must say that this tool is amazing. Who knows how much time it saves people on setting up, renaming stuff, changing bytes around...


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on September 02, 2014, 06:13:28 PM
lol, disregard my issue, Sammi, I figured it out.

However, I have a couple of suggestions for the cosmetic option of your clone tool.

- The option to add more CSPs, RSPs and BPs at once, instead of just the first - even if just copying the first over to the rest of the costumes. Replacing just the first one when changing the cosmetic slot results in freezes until you do the rest yourself.
- The option to add Battle Name and Franchise Icon.

These would save a lot of time to the person changing cosmetics.

In the end, I must say that this tool is amazing. Who knows how much time it saves people on setting up, renaming stuff, changing bytes around...

Thanks, im glad the tool can help people. (even if it's pretty horribly coded)

As far as cosmetic things are concerned for the tool, i was originally gonna finish that feature but since PhantomWings seems to be handling a better (and BX native) way to add cosmetics to the clones from the SD..i have been holding off on it

Just a little update on progess here..
(http://i.imgur.com/jYB01kX.png)

Yea..Article progress is up to about 96% done, oh and SSE attributes list is editable now.  All characters articles are supported..Just need to fix a few bugs. Other than that, I'm going to get the various Data lists setup (floating points, collision data, extra parameters etc etc) and THEN i'll start up on getting the nifty features that BBox has over it implemented.

Im very grateful that the BBox source code and tabuu source code is still available. It's helped immensely in my understanding of the moveset files, as well as the articles of course


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Ricky (Br3) on September 02, 2014, 06:19:08 PM
I say that continuing would be something to consider... PhantomWings sometimes take a good while to return once he's gone! (Even though he always returns with something great).

Also amazing job on the articles thing, some people have been waiting a really long time for something like that.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: KingJigglypuff on September 02, 2014, 06:26:59 PM
Here's an idea suggestion.

Have the ability to switch between Hex and Dec. Assuming this is even possible.

Regardless, you're doing a great job, Sammi. Keep up the good work.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on September 02, 2014, 06:32:02 PM
Here's an idea suggestion.

Have the ability to switch between Hex and Dec. Assuming this is even possible.

Regardless, you're doing a great job, Sammi. Keep up the good work.

The ability to switch between hex and decimal where? I can try my best. It's most definitely not that difficult, at least from what i can gather at the moment. In the attributes panel, i do already have a right click->show as int and right click->show as float button. If you mean for the event display, then i can likely add a button for that somewhere, maybe in a settings tab.

I say that continuing would be something to consider... PhantomWings sometimes take a good while to return once he's gone! (Even though he always returns with something great).

Also amazing job on the articles thing, some people have been waiting a really long time for something like that.

I'll definitely consider it, especially since i may be re-writing the whole thing from scratch anyhow


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: KingJigglypuff on September 02, 2014, 06:38:00 PM
The ability to switch between hex and decimal where? I can try my best. It's most definitely not that difficult, at least from what i can gather at the moment. In the attributes panel, i do already have a right click->show as int and right click->show as float button. If you mean for the event display, then i can likely add a button for that somewhere, maybe in a settings tab.
Yeah, that's what I was meaning. Some of the newer people might have trouble understanding the Hex values for certain command parameters.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Tabuu Forte Akugun on September 02, 2014, 07:45:08 PM
I look forward to using this PSA tool. I just hope it doesn't corrupt files like the old BrawlBoxes. D: But knowing you, you probably fixed that already.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on September 06, 2014, 12:39:25 PM
I look forward to using this PSA tool. I just hope it doesn't corrupt files like the old BrawlBoxes. D: But knowing you, you probably fixed that already.


If you mean the random file bloating, then yes it seems to be fixed. I had a hunch that it was simply some variables or arrays not being disposed upon opening a new file, which would then double the size of the arrays and corrupt the data. I simply reset all arrays and variables upon opening a new file, and from what i've gathered from using it (and from the minus Backroom using it extensively) it seems to have been fixed. :)

Anywho, another cool feature for PSA.
(http://i.imgur.com/dtP37j5.png)

i've added a native hex editor to it that can be opened by right clicking on of the nodes in the data tree and clicking "Hex View". Still quite a few optimizations and features i'd like to add to it, but it gets the job done for now. In case people are curious, here is the current changelog i have laid out.

 ====================================
|************ Change Log ************|
 ====================================
 - v1.4- (?/??/2014)
   . Added support to view "Nodes" in the data tree.
   . Articles are now fully supported!. (credit to Dantarion and company for tabuu source code excerpts)
   . PSA can now open files regardless if they are being used by other programs, however in order to save it must not be in use.
   . Data explorer now shows External references.
   . Added support for SSE attributes.
   . Added the rest of the currently known animation flags
   . Added a native hex editor to PSA, specifically for editing data selected in the data tree.
   . Added support for param, hitdata, and coll data character nodes.
   . Data tree nodes are color coded for type.
      - Green            = Value list.
      - Yellow         = Event lists.
      - Gray            = un-editable.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Ricky (Br3) on September 06, 2014, 12:45:51 PM
How do the Announcer IDs on the Clone Tool link to the sounds? That has intrigued me.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on September 06, 2014, 12:52:23 PM
How do the Announcer IDs on the Clone Tool link to the sounds? That has intrigued me.

Do you mean in specific what gets edited in the config files by the tool? if so, all it does is set the data in the cosmetic config for your clone. In specific, the clone's announcer call is at offset 0x18.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Ricky (Br3) on September 06, 2014, 01:16:20 PM
Do you mean in specific what gets edited in the config files by the tool? if so, all it does is set the data in the cosmetic config for your clone. In specific, the clone's announcer call is at offset 0x18.

So it just copies over the original SFX, right? I thought that number was more specific. I've changed it around for different calls, but it's a kind of long process just figuring out by trial and error which file that number links to on the smashbros_sound.brsar.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on September 06, 2014, 01:50:43 PM
Ahh. Well, the number is actually the infoindex of the sound inside smashbros_sound.brsar. If you actually open any default  config in the tool or in a hex editor and take note  of the value there, convert it to decimal. If you now open smashbros_sound.brsar and select any sound, in the properties pane at the very bottom you'll see a property called infoindex. That field is what identifies the sound. Think of it as an ID. nearly everytime a sound is used in the game it will call the infoindex of the sound to be played. So, by that logic, you can search through the smashbros_sound.brsar for the sound that matches the infoindex your looking for :)


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: BlackJax96 on September 06, 2014, 02:25:12 PM
This is good stuff Sammi, it's cool that somebody else wants to continue programming tools for brawl. I'll go ahead and sub. You should definitely add a setting to switch between decimal and hexadecimal. Each has their own advantages for different things.

Also, I don't want to sound biased, but you should merge PSA's script saving functions and Tabuu's post processing (aka writing edited values, but not rebuilding the file) into Ikarus and continue Ikarus. That would make saving as stable as possible without having to rebuild the file. You could also add Brawlbox's rebuilder and add it as an optional saving feature for the adventurous who aren't worried about it corrupting their file.

Adding on to PSA seems a bit backwards, since it looks like you're remaking the same node trees and editors Dant made for Tabuu and I made for Brawlbox, and Ikarus was already a huge and extensively researched combination of all three programs that would've combined everything necessary to make a full psa into one intuitive tool (and sort of an emulator too).

But that's just my advice.

Oh and another thing - Kryal said way back in the 90's that he would never add a hex editor to Brawlbox because it would defeat the purpose of Brawlbox being a file editor (it's not a hex editor, he said). I stuck with that when I programmed new stuff. This new feature reminded me of what he said so I thought I'd tell you :P


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Ricky (Br3) on September 06, 2014, 02:49:48 PM
Ooooh, I see! I noticed that the value in the tool was in hex and even converted it to decimal to see if it would make it easier to find. In the end, I ended up ignoring completely the infoindex! Thanks! That way I will be able to use the SFX that I want to.

That aside, there was something else that I was noticing.

Inside the smashbros_sound.brsar, we have the files that tell the game to load a specific brstm (located in the pf/sound/strm folder, in a said moment. For example: snd/bgm/X03/MENU2 tells the game to load [371] strm/X03.brstm.

It would be interesting if we could edit those to, say, redirect a specific brstm to another custom brstm from Dantarion's CSE, for example, sfx/0000C00C.brstm.

Are you familiar with Dantarion's CSE?


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sammi Husky on September 06, 2014, 04:54:58 PM
This is good stuff Sammi, it's cool that somebody else wants to continue programming tools for brawl. I'll go ahead and sub. You should definitely add a setting to switch between decimal and hexadecimal. Each has their own advantages for different things.

Also, I don't want to sound biased, but you should merge PSA's script saving functions and Tabuu's post processing (aka writing edited values, but not rebuilding the file) into Ikarus and continue Ikarus. That would make saving as stable as possible without having to rebuild the file. You could also add Brawlbox's rebuilder and add it as an optional saving feature for the adventurous who aren't worried about it corrupting their file.

Adding on to PSA seems a bit backwards, since it looks like you're remaking the same node trees and editors Dant made for Tabuu and I made for Brawlbox, and Ikarus was already a huge and extensively researched combination of all three programs that would've combined everything necessary to make a full psa into one intuitive tool (and sort of an emulator too).

But that's just my advice.

Oh and another thing - Kryal said way back in the 90's that he would never add a hex editor to Brawlbox because it would defeat the purpose of Brawlbox being a file editor (it's not a hex editor, he said). I stuck with that when I programmed new stuff. This new feature reminded me of what he said so I thought I'd tell you :P

Oh indeed :) I plan to continue Ikarus as my main outlet for moveset editing. Continuing PSA was just something i was doing as a hobby and decided that some others may enjoy the changes as well. My main goal with the changes i've been making have been to add new capabilities while keeping the simple and familiar interface that many are still accustomed to. I wanted to basically update PSA so that people still have the choice to use that interface for simple moveset editing without sacrificing the functionality of Brawlbox, Ikarus, and Tabuu. Once PSA can edit the values the others can, i'll be focusing on writing Ikarus.

As far as adding the hex editor..i was speculative at first as well..since the main aim of developing a program for editing the files is to take it out of the hands of the hex editors. But...then i realized that there is likely no way i'm going to be able to document every nook and cranny of the moveset files that are still unknown by myself. With that in mind, I decided to create it in order to continue developing other features (or move onto Ikarus) and still be able to have these data objects visible and editable in PSA by those who are adventurous enough to test messing with them. In any case, thanks for the advice! I'll keep things like that in mind for any future plans i have.


~snip~


Ahh yes..when it comes down to sound related stuff, the very first thing i want to work on is seeing if i can't get the symb header stuff working in BrawlBox... BlackJax's commented out code is still there so i can get a grasp on what they were trying to do, but it's something that will take me quite a while to get around to and then even longer to figure out.

Unfortunately im not too familiar with the CSE or brstms for that matter..so i fear i won't be able to answer many questions regarding that in specific. But, i think i get the gist of what your saying. So when i do end up working on sound, i'll poke around at stuff like that ;)


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: pikazz on September 09, 2014, 03:17:00 AM
oh [censored], it looks amazing! dont stop now! cant wait to play with it!


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Ultraxwing on October 05, 2014, 06:57:16 PM
I understand that my Necormancy is illegal in the fair town of Kitteth Corp.

But to make a note towards Sammi-Husky, when i used your tool to shrink the filesize of my Sc_selcharacter. it just made it crash ingame, not so sure as to why it did that. either way a decent tool indeed.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sirkura on October 26, 2014, 12:43:37 PM
Sammi i've been having trouble figuring out how to use the clone tool you made, specifically adding cosmetics. any chance you can make a quick tutorial on it?


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Ultraxwing on October 26, 2014, 01:25:03 PM
Sammi i've been having trouble figuring out how to use the clone tool you made, specifically adding cosmetics. any chance you can make a quick tutorial on it?
I believe he is rebuilding this tool from the ground up to make it better than it is. seeing how this was the thing that got him into coding in the first place. I don't even bother with the adding of cosmetics, for all it does is cause issues. i just add them in manually or use the starter kit on the vault.

To note, when you add in more costumes to load for a standard character or clone the Tool will crash, so there is that issue.


Title: Re: Sammi Husky's misc toolbox || PSA v1.3a & BX clone tool update
Post by: Sirkura on October 26, 2014, 01:31:44 PM
I believe he is rebuilding this tool from the ground up to make it better than it is. seeing how this was the thing that got him into coding in the first place. I don't even bother with the adding of cosmetics, for all it does is cause issues. i just add them in manually or use the starter kit on the vault.

To note, when you add in more costumes to load for a standard character or clone the Tool will crash, so there is that issue.

ahh i see, i just want to add the very basics (CSS icon and portrait to differentiate the characters easier) i can wait till something more stable comes along.