Author Topic: AIErrors  (Read 1312 times)

Offline darke

  • Hero Member
  • *****
  • Posts: 534
AIErrors
« on: July 10, 2009, 03:21:05 pm »
Just noticed I had a rather massive AI Errors file.

First entry was this:

Code: [Select]
2009/07/01 1:55:30
-----------------------------------
Command Error:   System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at AIWar.AIRouting.SendCommandPostReinforcements(AIPlayer Player, AIPlanet Planet, Int32 AIProgressionLevel, Int32 TechLevel, Boolean LimitToWormholesOnly) in C:\vcprojs\AIWar\Framework\AI\AIRouting.cs:line 474
   at AIWar.AIRouting.SendReinforcementsToPlanet(AIPlayer Player, AIPlanet Planet, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel) in C:\vcprojs\AIWar\Framework\AI\AIRouting.cs:line 463
   at AIWar.AIRouting.SendReinforcements(Int32 PlayerNumber, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Int32 NumberOfReinforcements, Boolean HasAlreadySentToWave) in C:\vcprojs\AIWar\Framework\AI\AIRouting.cs:line 397
   at AIWar.AIRouting.CreateStandardWaves(Int32 PlayerNumber, Int32 WaveArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Boolean IsDoubleWave) in C:\vcprojs\AIWar\Framework\AI\AIRouting.cs:line 162
   at AIWar.AICommand.ParseDataIntoAILoop() in C:\vcprojs\AIWar\Framework\AI\AICommand.cs:line 52
   at AIWar.AILoop.RunAILoop() in C:\vcprojs\AIWar\Framework\AI\AILoop.cs:line 215
Then nothing for a few days until I assume I upgraded to a new version and then this:

Code: [Select]
2009/07/09 1:10:56
-----------------------------------
Command Error:   System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at AIWar.AIRouting.SendCommandPostReinforcements(AIPlayer Player, AIPlanet Planet, Int32 AIProgressionLevel, Int32 TechLevel, Boolean LimitToWormholesOnly) in C:\vcprojs\AIWar\Framework\AI\AIRouting.cs:line 477
   at AIWar.AIRouting.SendReinforcementsToPlanet(AIPlayer Player, AIPlanet Planet, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel) in C:\vcprojs\AIWar\Framework\AI\AIRouting.cs:line 466
   at AIWar.AIRouting.SendReinforcements(Int32 PlayerNumber, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Int32 NumberOfReinforcements, Boolean HasAlreadySentToWave) in C:\vcprojs\AIWar\Framework\AI\AIRouting.cs:line 400
   at AIWar.AICommand.ParseDataIntoAILoop() in C:\vcprojs\AIWar\Framework\AI\AICommand.cs:line 216
   at AIWar.AILoop.RunAILoop() in C:\vcprojs\AIWar\Framework\AI\AILoop.cs:line 215
Over and over and over again. About 80 times by the look of it over all my gameplay. Last entry was this:

Code: [Select]
2009/07/10 20:14:29
-----------------------------------
Command Error:   System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at AIWar.AIRouting.SendCommandPostReinforcements(AIPlayer Player, AIPlanet Planet, Int32 AIProgressionLevel, Int32 TechLevel, Boolean LimitToWormholesOnly)
   at AIWar.AIRouting.SendReinforcementsToPlanet(AIPlayer Player, AIPlanet Planet, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel)
   at AIWar.AIRouting.SendReinforcements(Int32 PlayerNumber, Int32 ReinforcementsArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Int32 NumberOfReinforcements, Boolean HasAlreadySentToWave)
   at AIWar.AIRouting.CreateSchizophrenicWaves(Int32 PlayerNumber, Int32 WaveArrivalTime, Int32 AIProgressionLevel, Int32 AITechLevel, Boolean IsDoubleWave)
   at AIWar.AICommand.ParseDataIntoAILoop()
   at AIWar.AILoop.RunAILoop()
Then I presume I upgraded to the latest version from Impulse which doesn't have the debugging instrumentation included. :)

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: AIErrors
« Reply #1 on: July 10, 2009, 03:29:24 pm »
Actually, all the versions have the same debugging output.  So I think this is just something kind of intermittent.  I've put in some extra check code for this in an updated 1.010A prerelease, so hopefully that will permanently solve the issue.  This would cause the AI to "go stupid" for a little while when these errors happen, so that could explain them sitting around and such when they otherwise should not be.

If you already downloaded the 1.010A version before now, please download it again to get this fix.  I didn't feel like this one thing was worth a whole 1.010B version.  Thanks for reporting it!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline darke

  • Hero Member
  • *****
  • Posts: 534
Re: AIErrors
« Reply #2 on: July 10, 2009, 03:49:38 pm »
Actually, all the versions have the same debugging output.  So I think this is just something kind of intermittent.  I've put in some extra check code for this in an updated 1.010A prerelease, so hopefully that will permanently solve the issue.  This would cause the AI to "go stupid" for a little while when these errors happen, so that could explain them sitting around and such when they otherwise should not be.

If you already downloaded the 1.010A version before now, please download it again to get this fix.  I didn't feel like this one thing was worth a whole 1.010B version.  Thanks for reporting it!

No problem. And yeah, that would actually explain those odd AI issues I've had recently though. :)

Though for the moment: sleep. I shall play again when I awaken. :)