gdkchan / Ohana3DS-Rebirth

WIP new version of Ohana3DS in C#.
173 stars 39 forks source link

I get a "unable to read beyond the end of the stream" error when opening a Pokemon US/UM .bin file #71

Open TheDylanSang opened 4 years ago

TheDylanSang commented 4 years ago

I was trying to open a .bin file from Pokemon Ultra Sun in attempt to look at the model animations from the games, but I end up getting an error saying. "Unable to read beyond the end of the stream." Then I get shown this text:

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

** Exception Text ** System.IO.EndOfStreamException: Unable to read beyond the end of the stream. at System.IO.__Error.EndOfFile() at System.IO.BinaryReader.FillBuffer(Int32 numBytes) at System.IO.BinaryReader.ReadUInt32() at Ohana3DS_Rebirth.Ohana.Models.BCH.peek(BinaryReader input) at Ohana3DS_Rebirth.Ohana.Models.BCH.load(MemoryStream data) at Ohana3DS_Rebirth.Ohana.Models.PocketMonsters.PC.load(Stream data) at Ohana3DS_Rebirth.Ohana.FileIO.load(Stream data) at Ohana3DS_Rebirth.Ohana.FileIO.load(Stream data) at Ohana3DS_Rebirth.Ohana.FileIO.load(String fileName) at Ohana3DS_Rebirth.FrmMain.open(String fileName) at Ohana3DS_Rebirth.FrmMain.MenuOpen_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.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.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.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.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: 2.0.0.0 Win32 Version: 2.0.50727.8943 (WinRelRS4.050727-8900) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

Ohana3DS Rebirth Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Teerapan/Downloads/o3ds_16_04_2016/Ohana3DS%20Rebirth.exe

System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8941 (WinRelRS4.050727-8900) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.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:

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.

I pressed "Continue", yet nothing appears. Can someone help please?