PDA

View Full Version : Trouble merging files with S4pe: Unhandled Exception, or something like that (SOLVED)


mirabellarose
3rd Jan 2016, 10:31 AM
Hi,

I've been having a ton of trouble merging some hair files with S4pe. I keep getting an error right when all the hair files have been merged. It says "Unhandled Exception" or something like that. I should have taken a screenshot of it. I can if you guys need it. I did, however, copy the details of the error.

And I'm merging 200 files. Is that too many for S4pe? 200 was about the maximum limit for S3pe; I assumed S4pe would be the same. Anyway, here's the details of the error I'm getting:

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

************** Exception Text **************
System.InvalidCastException: Unable to cast object of type 'StblResource.StblResource' to type 'System.Collections.Generic.IDictionary`2[System.UInt64,System.String]'.
at S4PIDemoFE.MainForm.resourceImportAsDBC()
at S4PIDemoFE.MainForm.menuBarWidget1_MBResource_Click(Object sender, MBClickEventArgs mn)
at S4PIDemoFE.MenuBarWidget.OnMBResource_Click(Object sender, MB mn)
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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.127.1 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
s4pe
Assembly Version: 1409.20.48.39807
Win32 Version: 1409.20.48.39807
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pe.exe
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.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
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.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.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.93.0 built by: NETFXREL2STAGE
CodeBase: file:///C:/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.6.79.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.Custom
Assembly Version: 1512.8.2106.39805
Win32 Version: 1512.8.2106.39805
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/System.Custom.DLL
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.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
----------------------------------------
s4pi.CustomForms
Assembly Version: 1512.8.2106.39805
Win32 Version: 1512.8.2106.39805
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.CustomForms.DLL
----------------------------------------
s4pi.Interfaces
Assembly Version: 1512.8.2106.39805
Win32 Version: 1512.8.2106.39805
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.Interfaces.DLL
----------------------------------------
s4pi.WrapperDealer
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.WrapperDealer.DLL
----------------------------------------
DDSPanel
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/DDSPanel.DLL
----------------------------------------
s4pi.AnimationResources
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.AnimationResources.DLL
----------------------------------------
s4pi.GenericRCOLResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.GenericRCOLResource.DLL
----------------------------------------
s4pi.CASPartResource
Assembly Version: 1512.6.959.8994
Win32 Version: 1512.6.959.8994
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.CASPartResource.DLL
----------------------------------------
s4pi.Settings
Assembly Version: 1512.8.2106.39805
Win32 Version: 1512.8.2106.39805
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.Settings.DLL
----------------------------------------
s4pi.CatalogResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.CatalogResource.DLL
----------------------------------------
s4pi.ComplateResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.ComplateResource.DLL
----------------------------------------
s4pi.Controls
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.Controls.DLL
----------------------------------------
s4pi.DataResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.DataResource.DLL
----------------------------------------
s4pi.DefaultResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.DefaultResource.DLL
----------------------------------------
s4pi.Extensions
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.Extensions.DLL
----------------------------------------
s4pi.Filetable
Assembly Version: 1512.8.2106.39807
Win32 Version: 1512.8.2106.39807
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.Filetable.DLL
----------------------------------------
s4pi.Helpers
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.Helpers.DLL
----------------------------------------
s4pi.ImageResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.ImageResource.DLL
----------------------------------------
s4pi.JazzResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.JazzResource.DLL
----------------------------------------
s4pi.MeshChunks
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.MeshChunks.DLL
----------------------------------------
s4pi.RCOLChunks
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.RCOLChunks.DLL
----------------------------------------
s4pi.MiscellaneousResources
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.MiscellaneousResources.DLL
----------------------------------------
s4pi.ModularResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.ModularResource.DLL
----------------------------------------
s4pi.NameMapResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.NameMapResource.DLL
----------------------------------------
s4pi.NGMPHashMapResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.NGMPHashMapResource.DLL
----------------------------------------
s4pi.Package
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.Package.DLL
----------------------------------------
s4pi.Resource.Commons
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.Resource.Commons.DLL
----------------------------------------
s4pi.RigResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.RigResource.DLL
----------------------------------------
s4pi.StblResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.StblResource.DLL
----------------------------------------
s4pi.TextResource
Assembly Version: 1512.8.2106.39806
Win32 Version: 1512.8.2106.39806
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.TextResource.DLL
----------------------------------------
s4pi.TxtcResource
Assembly Version: 1512.8.2106.39807
Win32 Version: 1512.8.2106.39807
CodeBase: file:///C:/Users/Steve/Desktop/Files%20to%20Manage%20CC/s4pe%20Version%200.4.1/s4pi.TxtcResource.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.6.79.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.

mirabellarose
3rd Jan 2016, 11:06 AM
Well, guess what? I got it to work! The problem was that I was trying to merge my files the same way I did with S3PE. Turns out you can't do that.

With S3pe I would go File>new, then Resource>Import>As DBC, then hold Ctrl + A to highlight all the files, then give it a file name and save it.

With S4pe I clicked File>new, highlighted all the files I wanted to merge, then dragged and dropped them into the main window. Then I made sure the replace duplicates button was checked, clicked import, clicked no when it asks to autosave each file. Then, when all the files were merged, I clicked File>Save As, gave it a save name. DONE!

It merged everything super fast too. When I was doing it the other way, the way I merged files with S3PE, it took ages.