Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when saving MSC files #38

Open
nwrolson opened this issue Aug 1, 2016 · 0 comments
Open

Exception when saving MSC files #38

nwrolson opened this issue Aug 1, 2016 · 0 comments

Comments

@nwrolson
Copy link

nwrolson commented Aug 1, 2016

The following exception occurs whenever one tries to save an MSC file:

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, Endianness endian)
at Sm4shCommand.AcmdMain.saveToolStripMenuItem_Click(Object sender, 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)

Hope this is an easy fix, and thanks for the great tool @Sammi-Husky !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants