FuryBaguette / SwitchLayoutEditor

A layout editor for the Nintendo Switch
GNU General Public License v3.0
197 stars 9 forks source link

Extracting files - Unhandled exception has occured in application #2

Closed NoelleTGS closed 5 years ago

NoelleTGS commented 5 years ago

When I try to extract all the files from the .szs (which, by the way, all show up as .bflan files and not .bflyt files like that guide says, not sure what's up with that), I get an 'Unhandled excpetion' error and nothing extracts.

I'm new to github so forgive me if I'm doing something wrong by doing this, but here's the log it shows. ** Exception Text ** System.IO.DirectoryNotFoundException: Could not find a part of the path 'F:\Users\Nolan\Desktop\switch bflan\anim\RdtBtnCtrl_LimitB.bflan'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost) at System.IO.File.WriteAllBytes(String path, Byte[] bytes) at BflytPreview.EditorForms.SzsEditor.ExtractMultipleFiles(IEnumerable`1 files) in D:\FuryBaguette\GitHub\SwitchThemeEditor\BflytPreview\EditorForms\SzsEditor.cs:line 102 at BflytPreview.EditorForms.SzsEditor.extractAllFilesToolStripMenuItem_Click(Object sender, EventArgs e) in D:\FuryBaguette\GitHub\SwitchThemeEditor\BflytPreview\EditorForms\SzsEditor.cs:line 92 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.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) at System.Windows.Forms.ToolStrip.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.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.MenuStrip.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.7.3260.0 built by: NET472REL1LAST_C CodeBase: file:///F:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

Switch Layout Editor Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///F:/Users/Nolan/Downloads/SwitchLayoutEditor1.0-beta3.1/Switch%20Layout%20Editor.exe

System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C CodeBase: file:///F:/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.7.3314.0 built by: NET472REL1LAST_B CodeBase: file:///F:/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.7.3221.0 built by: NET472REL1LAST_C CodeBase: file:///F:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.3062.0 built by: NET472REL1 CodeBase: file:///F:/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.7.3221.0 built by: NET472REL1LAST_C CodeBase: file:///F:/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.7.3221.0 built by: NET472REL1LAST_C CodeBase: file:///F:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

FuryBaguette commented 5 years ago

Thank you for the report.

When I try to extract all the files from the .szs (which, by the way, all show up as .bflan files and not .bflyt files like that guide says, not sure what's up with that)

Bflan files are shown first but if you scroll down you should see bflyt files and also a "timg/__Combined.bntx". Check this screenshot

As for the error, the editor doesn't create the "anim" and "blyt" folders where the files are extracted. This will be fixed in the next update, for now you can create both folders and it will all extract correctly -> Folders - Extracted

NoelleTGS commented 5 years ago

Ah, thank you for this!

On Wed, Jan 30, 2019, 6:58 AM FuryBaguette <notifications@github.com wrote:

Thank you for the report.

When I try to extract all the files from the .szs (which, by the way, all show up as .bflan files and not .bflyt files like that guide says, not sure what's up with that)

Bflan files are shown first but if you scroll down you should see bflyt files and also a "timg/__Combined.bntx". Check this screenshot http://prntscr.com/me9nwz

As for the error, the editor doesn't create the "anim" and "blyt" folders where the files are extracted. This will be fixed in the next update, for now you can create both folders and it will all extract correctly -> Folders http://prntscr.com/me9psh - Extracted http://prntscr.com/me9q5t

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/FuryBaguette/SwitchLayoutEditor/issues/2#issuecomment-458952788, or mute the thread https://github.com/notifications/unsubscribe-auth/AqKuUqpp8m5TjV7_7WWvZmPZ6dSGuT3Mks5vIaTqgaJpZM4aZNMa .