ROM Hack [Release] Sm4shCommand

  • Thread starter Thread starter Sammi Husky
  • Start date Start date
  • Views Views 276,842
  • Replies Replies 1,560
  • Likes Likes 25
It has to do with Localization. The code specifically looks for commas to separate parameters in function calls. Im not exactly sure how im going to work around commas as decimal separators to be quite honest.

What i'll most likely do is have the application always spit out values with "." as the digit separator and parse with the assumption that numbers will always use "." as digit separator and comma as parameter separator.
Thanks for the quick reply, but my knowledge in these kind of things is rather low. So could you please tell me what I should do to get it working?
Edit: Nevermind I got it
 
Last edited by Daeger,
Hey the latest for some reason doesn't work with 3DS files at all. Even when I don't parse animations, nothing appears in the box. No ACMD scripts at all. Is there a fix for this being worked on? I really want the ability to unpack 3DS .bch animation files.
 
Hey the latest for some reason doesn't work with 3DS files at all. Even when I don't parse animations, nothing appears in the box. No ACMD scripts at all. Is there a fix for this being worked on? I really want the ability to unpack 3DS .bch animation files.
Neither version I tried worked for Ganon's moveset on 3ds. I had to use an older version i already had downloaded, so I think the newer versions are really buggy.
 
Hey the latest for some reason doesn't work with 3DS files at all. Even when I don't parse animations, nothing appears in the box. No ACMD scripts at all. Is there a fix for this being worked on? I really want the ability to unpack 3DS .bch animation files.

Neither version I tried worked for Ganon's moveset on 3ds. I had to use an older version i already had downloaded, so I think the newer versions are really buggy.

What files are you using? 3ds files are opening fine for me on latest nightly builds. Send me an example file if you can. It's quite the contrary that latest builds are buggy, the older builds are extremely unstable and liable to corrupt the files your working on.
 
Oh, really? That's... odd. Nightly builds have never worked for me past the beta version. Here's my Falcon I'm working on. Totally unrelated, but feel free to test it. It's part of my big project.
 

Attachments

What files are you using? 3ds files are opening fine for me on latest nightly builds. Send me an example file if you can. It's quite the contrary that latest builds are buggy, the older builds are extremely unstable and liable to corrupt the files your working on.
I'm at school right now, but when I get home, I'll send you the files I was working on. It was Ganondorf's animcmd folder and when I tried to parse animations it never worked. The older build, however, did work.
 
What files are you using? 3ds files are opening fine for me on latest nightly builds. Send me an example file if you can. It's quite the contrary that latest builds are buggy, the older builds are extremely unstable and liable to corrupt the files your working on.
Here are the files I was using from my dump, along with the version I was using. Neither the stable or nightly versions in the OP worked for me. https://drive.google.com/file/d/0BzI6dwIWIBj8bDdlRVVINWpxQ00/view?usp=sharing
 
Thanks a lot Sammi!

--------------------- MERGED ---------------------------

Appreciate it :)
 
A new nightly version should have just been uploaded, try those. I tested and your files should be opening fine under that version
At first I was skeptical because there wasn't a new version since July 9, but I redownloaded and it worked, maybe git magic, maybe placebo. Regardless, thanks for the tool!
 
At first I was skeptical because there wasn't a new version since July 9, but I redownloaded and it worked, maybe git magic, maybe placebo. Regardless, thanks for the tool!

The nightly build is updated every night or when a new commit is pushed. It just doesn't update the release date. Might be able to fix that at a later date to make more sense though.
 
The nightly build is updated every night or when a new commit is pushed. It just doesn't update the release date. Might be able to fix that at a later date to make more sense though.
Yeah, It always confused me. Maybe even something as simple as adding some text. "This build is updated every time a commit is pushed, or each night at 2:00am PST, regardless of written release date, and may be unstable."
 
Whenever I try to open a fighter file I get the message "Could not find file 'C:\Smash\vol\content\patch\data\fighter\gekkouga/game.bin'." Is this an issue with what files I have, where they're located, or something else? Here's the exception text if anyone needs it; i'd really appreciate the help and I'm sorry for posting the same question twice, I'm just unsure of where else I can get proper assistance.

************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'C:\Smash\vol\content\patch\data\fighter\gekkouga/game.bin'.
File name: 'C:\Smash\vol\content\patch\data\fighter\gekkouga/game.bin'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.FileMap.FromFile(String path, FileMapProtect prot, Int32 offset, Int32 length, FileOptions options)
at Sm4shCommand.WorkspaceManager.OpenFile(String Filepath, ACMDType type)
at Sm4shCommand.WorkspaceManager.OpenFighter(String dirPath)
at Sm4shCommand.AcmdMain.fighterToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
Trying to create a project and I get this error
he6fjK8.png
 
Last edited by chrisall76,
Well, the error is because it can't find greninja's game.bin. What folder are you selecting for fighter mode? on wiiu it would be data/fighter/gekkouga/script/animcmd/body
I checked, and it was just because I forgot to unpack the content of the Script folder(s)
 
What param file are you using for the Param_vl. It should be the one that matches your character.
Yea, I'm using the Marth one.
cF6zgJB.png

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

************** Exception Text **************
System.InvalidCastException: Specified cast is not valid.
at SALT.Scripting.MSC.MSCCommand.GetBytes(Endianness endian)
at SALT.Scripting.MSC.MSCScript.GetBytes(Endianness endian)
at SALT.Scripting.MSC.MSCFile.GetBytes(Endianness endian)
at SALT.Scripting.MSC.MSCFile.Export(String path)
at Sm4shCommand.Project.Save(String rootpath)
at Sm4shCommand.GUI.ProjectWizard.button9_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.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
SM4SHCommand
Assembly Version: 1.3.0.3612
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/chris/WiiUHacks/AnimCMD-Nightly/SM4SHCommand.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
SALT
Assembly Version: 1.2.2.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/chris/WiiUHacks/AnimCMD-Nightly/SALT.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.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.
 
Last edited by chrisall76,
Yea, I'm using the Marth one.
cF6zgJB.png

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

************** Exception Text **************
System.InvalidCastException: Specified cast is not valid.
at SALT.Scripting.MSC.MSCCommand.GetBytes(Endianness endian)
at SALT.Scripting.MSC.MSCScript.GetBytes(Endianness endian)
at SALT.Scripting.MSC.MSCFile.GetBytes(Endianness endian)
at SALT.Scripting.MSC.MSCFile.Export(String path)
at Sm4shCommand.Project.Save(String rootpath)
at Sm4shCommand.GUI.ProjectWizard.button9_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.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
SM4SHCommand
Assembly Version: 1.3.0.3612
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/chris/WiiUHacks/AnimCMD-Nightly/SM4SHCommand.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
SALT
Assembly Version: 1.2.2.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/chris/WiiUHacks/AnimCMD-Nightly/SALT.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.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.

Yea, looks like some stuff was broken at some point. The project system was never fully functional anyways.

Single file and fighter modes still work fine though
 

Site & Scene News

Popular threads in this forum