Page 1 of 1

[1.10] Excpetion when loading previous version saves

Posted: Thu Nov 18, 2021 2:32 pm
by ZygfrydDeLowe
Hi,

I'm getting the exception below, when trying to load a save made on the previous version (bu the game itself started long before that)

Code: Select all

System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at WindowsApplication1.CustomBitmapClass.DrawHex(Int32 cx, Int32 cy, Int32 cmap, Boolean InfoMode, Boolean NoShader, Boolean ispredrawing, Graphics tempg, Int32 tx, Int32 ty, Int32 counteralpha, Int32 Zoom, Boolean UseRegimeColoring, Boolean neverusehistory, Boolean combatSetup, Bitmap& gBitmap, Boolean& tFromMapPopup) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 8173
    at WindowsApplication1.CustomBitmapClass.MakeMiniMap(Bitmap tempBmp, Int32 bwidth, Int32 bheight, Boolean alsounits, Boolean realhex, Boolean alsoshading, Boolean predrawn, Int32 humanplayer, Boolean showflag, Boolean alsoHQ, Int32 highlightTempvar4, Boolean useTempVar3asAlpha, Boolean useTempAi2, Boolean useTempZones, Int32 specialMode1) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 3313
    at WindowsApplication1.GameLoopMainWindowClass2.FixMiniMaps() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\se1_GameLoopWindowClass2.vb:line 1269
    at WindowsApplication1.GameLoopMainWindowClass2.HandleMouseClick(Int32 x, Int32 y, Int32 b) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\se1_GameLoopWindowClass2.vb:line 1156
    at WindowsApplication1.GameLoopScreenClass2.HandleMouseClick(Int32 x, Int32 y, Int32 b) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\Se1_Screens\se1_GameLoopScreenClass2.vb:line 57
    at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 1548
    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.Form.WndProc(Message& m)
    at WindowsApplication1.ImmoveableForm.WndProc(Message& m) in G:\VR\VRDevelopment\WindowsApplication1\ImmoveableForm.vb:line 68
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 

Happens on fresh installation, without any mods.

RE: [1.10] Excpetion when loading previous version saves

Posted: Thu Nov 18, 2021 6:46 pm
by Vic
could you mail the save game to vic@vrdesigns.net ? with a link to this thread.

would be much appreciated!

best wishes,
Vic

RE: [1.10] Excpetion when loading previous version saves

Posted: Thu Nov 18, 2021 7:37 pm
by ZygfrydDeLowe
Save file sent

Best regards,
ZDL

RE: [1.10] Excpetion when loading previous version saves

Posted: Fri Nov 19, 2021 8:26 am
by Vic
Thanks. Bug found.

RE: [1.10] Excpetion when loading previous version saves

Posted: Fri Nov 19, 2021 2:58 pm
by ZygfrydDeLowe
Fix worked like a charm, thank you.