Unhandled exception

Post bug reports and ask for tech support here. Post any Community Site Requests here as well.

Moderator: Vic

Post Reply
Szilard
Posts: 386
Joined: Wed Jan 03, 2001 10:00 am

Unhandled exception

Post by Szilard »

On the latest rev of a scenario I'm tinkering with, I get a .NET exception on the first AI turn:

System.NullReferenceException: Object reference not set to an instance of an object.
at WindowsApplication1.AIClass.IsAreaNeighbour(Int32 area1, Int32 area2)
at WindowsApplication1.AIClass.SetMatrixHQ(SimpleList UL, Int32 hqnr, Int32 onlysanr)
at WindowsApplication1.AIClass.ExecuteMovement(Int32 PlanNr, Int32 MovePhaseNr)
at WindowsApplication1.AIClass.ExecuteAI()
at WindowsApplication1.GameLoopMainWindowClass.handleTimer()
at WindowsApplication1.ScreenClass.HandleTimer()
at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

User avatar
Vic
Posts: 9967
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Unhandled exception

Post by Vic »

hi there,
 
whats the AT version?
 
kind regards,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Szilard
Posts: 386
Joined: Wed Jan 03, 2001 10:00 am

RE: Unhandled exception

Post by Szilard »

ORIGINAL: Vic

hi there,

whats the AT version?

kind regards,
Vic

Hi Vic - It's 1.10L.
Szilard
Posts: 386
Joined: Wed Jan 03, 2001 10:00 am

RE: Unhandled exception

Post by Szilard »

I think I've nailed this. I changed an island with a couple of cities to sea. I deleted the city locations, but I didn't delete the victory points for the hexes (now in the middle of the ocean). When I delete the VPs, the problem disappears.

So worth remembering - if you "Atlantis" a city, remove remember to remove any VPs associated with it.

Maybe deleting a location should automatically delete the VPs?


User avatar
Vic
Posts: 9967
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Unhandled exception

Post by Vic »

yes that was it.
thanks for reporting that issue!
in the next version the AI will delete any VP accidently placed in the sea.
 
kind regards,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
Post Reply

Return to “Advanced Tactics Support”