View Single Post
Old May 28th, 2013 (7:27 AM).
BlackWhiteRobin BlackWhiteRobin is offline
Join Date: Sep 2012
Age: 17
Gender: Male
Nature: Quirky
Posts: 438
Originally Posted by ZangoMango View Post
Sure. Here's the Details log:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OverflowException: Arithmetic operation resulted in an overflow.
at Sprite_Editor.RomFunctions.ConvertStringToByteArray(String& str)
at Sprite_Editor.SpriteData.GetCompressedData(Int32 species)
at Sprite_Editor.Form1.WriteToROMButton_Click(Object sender, EventArgs e)
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.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
Assembly Version:
Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
Advanced Pokémon Sprite Editor
Assembly Version:
Win32 Version:
CodeBase: file:///C:/Users/HP/Desktop/ROM%20Hackin/advanced%20series/Advanced%20Pok%E9mon%20Sprite%20Editor.exe
Assembly Version:
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/
Assembly Version:
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/
Assembly Version:
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/
Assembly Version:
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/
Assembly Version:
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/
Assembly Version:
Win32 Version: 3.5.30729.5420 built by: Win7SP1
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/
Assembly Version:
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/

************** 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 section.
The application must also be compiled with debugging

For example:

< jitDebugging="true" />

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.

And here's what my shiny sprite looks like, if you think it may be causing the error:

Edit: I just made the shiny look the same as the normal sprite, just to put an okay looking sprite in there, but same error. Hm
Are you still getting the "Index was outside the bounds of the array" in this one?

Or is it just an error when Saving it/Writing to ROM/ctrl+s?

And is that the original sprite or did you edit it?

Try importing it one by one not import all. (Do it this way; Import Normal Front Sprite, Import Shiny Back Sprite/Import the Normal Back Sprite and edit the shiny palette yourself.)