Receiving the following error when I try to unpack one particularly large .utoc/.ucas file (the .ucas is 52gb). It successfully unpacks the first 7.88gb though, then crashes.
************** Exception Text **************
System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.CopyTo(Array array, Int32 index)
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at UEcastocLib.UCasDataParser.UnpackFile(UTocData utoc, GameFileMetaData fdata, List`1 blockData, String outDir) in C:\Users\PCMOD\source\repos\rm-NoobInCoding\UnrealUnZen\UnrealUnZen\UEcastocLib\UCas.cs:line 26
at UEcastocLib.UCasDataParser.UnpackUcasFiles(UTocData utoc, String ucasPath, String outDir, String filter) in C:\Users\PCMOD\source\repos\rm-NoobInCoding\UnrealUnZen\UnrealUnZen\UEcastocLib\UCas.cs:line 116
at UnrealUnZen.MainTool.UnpackBTN_Click(Object sender, EventArgs e) in C:\Users\PCMOD\source\repos\rm-NoobInCoding\UnrealUnZen\UnrealUnZen\MainTool.cs:line 70
at System.Windows.Forms.Control.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)
And then with another .utoc/.ucas from the same game I'm not getting the above error at all and am instead receiving the following error, this time immediately when I attempt to load the package though.
************** Exception Text **************
System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: byteCount
at System.Text.ASCIIEncoding.GetString(Byte[] bytes, Int32 byteIndex, Int32 byteCount)
at UEcastocLib.UTocDataExtensions.ParseDirectoryIndex(Byte[] directoryIndexData, Int32 numberOfChunks) in C:\Users\PCMOD\source\repos\rm-NoobInCoding\UnrealUnZen\UnrealUnZen\UEcastocLib\UTocDataExtensions.cs:line 53
at UEcastocLib.UTocDataParser.ParseUtocFile(String utocFile, Byte[] aesKey) in C:\Users\PCMOD\source\repos\rm-NoobInCoding\UnrealUnZen\UnrealUnZen\UEcastocLib\UToc.cs:line 158
at UnrealUnZen.MainTool.OpenTocBTN_Click(Object sender, EventArgs e) in C:\Users\PCMOD\source\repos\rm-NoobInCoding\UnrealUnZen\UnrealUnZen\MainTool.cs:line 50
at System.Windows.Forms.Control.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 section for both crashes is below:
Receiving the following error when I try to unpack one particularly large .utoc/.ucas file (the .ucas is 52gb). It successfully unpacks the first 7.88gb though, then crashes.
And then with another .utoc/.ucas from the same game I'm not getting the above error at all and am instead receiving the following error, this time immediately when I attempt to load the package though.
Loaded Assemblies section for both crashes is below: