I recently got through editing a copy of Pokemon X, I spent weeks working though everything using the tool so my friends and I could try a harder version of the game. I got all the way to the end, and decided I wanted to change the route 2 pidgey to a swablu. I saved it, did a few more things, and ran the game. It popped up as a nidoking named egg, an I knew something was wrong. The static encounter editor now gives me the error below, and I'm unsure how to fix it without losing all of my work. Does anyone have any ideas?
-----
Exception Details:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at pk3DS.StaticEncounterEditor6.LoadData() in D:\a\1\s\pk3DS\Subforms\Gen6\StaticEncounterEditor6.cs:line 74
at pk3DS.StaticEncounterEditor6..ctor() in D:\a\1\s\pk3DS\Subforms\Gen6\StaticEncounterEditor6.cs:line 35
at pk3DS.Main.B_Static_Click(Object sender, EventArgs e) in D:\a\1\s\pk3DS\Main.cs:line 1320
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:
--------------------
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
pk3DS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\sirgo\Desktop\pk3DS\pk3DS.exe
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
pk3DS.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\sirgo\Desktop\pk3DS\pk3DS.Core.dll