Weird exception error
Posted: Fri Sep 25, 2020 12:51 am
So, played many hours of this game, never seen this. I am using a custom scenario file with my own SFTypes. They all seem to be working so far, but now when I click my Supreme HQ and choose the R-OUT (or R-IN), I get the following error:
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at WindowsApplication1.PlayExtraWindowClass.dostuff()
at WindowsApplication1.PlayExtraWindowClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.PlayScreenClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(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.Form.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)
Any idea why this is happening? I tend to think (without any evidence) that this has something to do with my custom scenario/units somehow (maybe HQ R-out or R-out screen somehow can't display them), but it's weird because the units themselves seem to function fine! I can manually transfer them out of HQ. Auto-reinforce based on TOE works fine. The units with my own SFTypes move normally.
Any help much appreciated!
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at WindowsApplication1.PlayExtraWindowClass.dostuff()
at WindowsApplication1.PlayExtraWindowClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.PlayScreenClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(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.Form.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)
Any idea why this is happening? I tend to think (without any evidence) that this has something to do with my custom scenario/units somehow (maybe HQ R-out or R-out screen somehow can't display them), but it's weird because the units themselves seem to function fine! I can manually transfer them out of HQ. Auto-reinforce based on TOE works fine. The units with my own SFTypes move normally.
Any help much appreciated!