View Issue Details

IDProjectCategoryLast Update
0001421AI War 1 / ClassicBug - OtherNov 17, 2010 9:22 am
Reporterorzelek Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version4.035 
Summary0001421: Spire spawn broken
DescriptionSecuring shard didn't cause any spawns. Only unhandled errors log - attached.
TagsNo tags attached.
Internal Weight

Activities

orzelek

Nov 17, 2010 3:53 am

reporter  

UnhandledErrors.txt (4,414 bytes)   
11/17/2010 9:49:16 AM (4.035)
-----------------------------------
UnhandledErrors-----------------------------------
11/17/2010 9:49:16 AM (4.035)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.IndexOutOfRangeException: Array index is out of range.
  at EventAttackBattleGroup.FillPossibleTypesByTierList (Int32 PlayerNumber) [0x00000] in <filename unknown>:0 
  at EventAttackArmada.Populate (Int32 ForPlayerNumber, Int32 TotalPoints, Int32 MinimumBattleGroupCount, Int32 MaximumBattleGroupCount, Int32 MaximumTotalShipsPerBattleGroup) [0x00000] in <filename unknown>:0 
  at SpecialLogic_FallenSpire.SendEventAttack (.ForegroundObject PrimaryTarget, Int32 ArmadaPoints, Boolean AlsoChaseSpireSettlements, ArmadaCoordinationType CoordinationType) [0x00000] in <filename unknown>:0 
  at SpecialLogic_FallenSpire.PerformPerSecondLogicForObject (.ForegroundObject Obj) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at EventAttackBattleGroup.FillPossibleTypesByTierList (Int32 PlayerNumber) [0x00000] in <filename unknown>:0 
  at EventAttackArmada.Populate (Int32 ForPlayerNumber, Int32 TotalPoints, Int32 MinimumBattleGroupCount, Int32 MaximumBattleGroupCount, Int32 MaximumTotalShipsPerBattleGroup) [0x00000] in <filename unknown>:0 
  at SpecialLogic_FallenSpire.SendEventAttack (.ForegroundObject PrimaryTarget, Int32 ArmadaPoints, Boolean AlsoChaseSpireSettlements, ArmadaCoordinationType CoordinationType) [0x00000] in <filename unknown>:0 
  at SpecialLogic_FallenSpire.PerformPerSecondLogicForObject (.ForegroundObject Obj) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


11/17/2010 9:51:02 AM (4.035)
-----------------------------------
UnhandledErrors-----------------------------------
11/17/2010 9:51:02 AM (4.035)
-----------------------------------Error-----------------------------------Log String: FixedUpdate: System.IndexOutOfRangeException: Array index is out of range.
  at EventAttackBattleGroup.FillPossibleTypesByTierList (Int32 PlayerNumber) [0x00000] in <filename unknown>:0 
  at EventAttackArmada.Populate (Int32 ForPlayerNumber, Int32 TotalPoints, Int32 MinimumBattleGroupCount, Int32 MaximumBattleGroupCount, Int32 MaximumTotalShipsPerBattleGroup) [0x00000] in <filename unknown>:0 
  at SpecialLogic_FallenSpire.SendEventAttack (.ForegroundObject PrimaryTarget, Int32 ArmadaPoints, Boolean AlsoChaseSpireSettlements, ArmadaCoordinationType CoordinationType) [0x00000] in <filename unknown>:0 
  at SpecialLogic_FallenSpire.PerformPerSecondLogicForObject (.ForegroundObject Obj) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 
Stack Trace:   at EventAttackBattleGroup.FillPossibleTypesByTierList (Int32 PlayerNumber) [0x00000] in <filename unknown>:0 
  at EventAttackArmada.Populate (Int32 ForPlayerNumber, Int32 TotalPoints, Int32 MinimumBattleGroupCount, Int32 MaximumBattleGroupCount, Int32 MaximumTotalShipsPerBattleGroup) [0x00000] in <filename unknown>:0 
  at SpecialLogic_FallenSpire.SendEventAttack (.ForegroundObject PrimaryTarget, Int32 ArmadaPoints, Boolean AlsoChaseSpireSettlements, ArmadaCoordinationType CoordinationType) [0x00000] in <filename unknown>:0 
  at SpecialLogic_FallenSpire.PerformPerSecondLogicForObject (.ForegroundObject Obj) [0x00000] in <filename unknown>:0 
  at Game.RunOneCycleOfSimulation () [0x00000] in <filename unknown>:0 
  at Game.RunNextCycle (Boolean DoRendering) [0x00000] in <filename unknown>:0 
  at Game.RunFrame () [0x00000] in <filename unknown>:0 
  at MainCameraLogic.FixedUpdate () [0x00000] in <filename unknown>:0 


UnhandledErrors.txt (4,414 bytes)   

orzelek

Nov 17, 2010 3:55 am

reporter  

S4.sav (562,253 bytes)

orzelek

Nov 17, 2010 3:55 am

reporter   ~0003793

Attached save that causes this to happen after the load.

keith.lamothe

Nov 17, 2010 8:47 am

administrator   ~0003803

Thank you very much for the reproducible case.

Chris, there's a "this.AssociatedExpansion = -1;" on one of the new types, I'm guessing because you don't want it to show up anywhere yet.

Problem is that indexing -1 into an array is problematic, and I was using AssociatedExpansion to check for availability in Game.Instance.Options.EnabledExpansions :)

I'll go and try to find all my uses of that to make it early-out if -1.

keith.lamothe

Nov 17, 2010 9:00 am

administrator   ~0003805

Ok, I should have noticed that it's common to check AssociatedExpansion < 0, though there were also cases where it wasn't being checked in the Planetary Summary (the F1 reference) and AddFgObject.

keith.lamothe

Nov 17, 2010 9:22 am

administrator   ~0003807

This is fixed for the next version, thanks :)

Issue History

Date Modified Username Field Change
Nov 17, 2010 3:53 am orzelek New Issue
Nov 17, 2010 3:53 am orzelek File Added: UnhandledErrors.txt
Nov 17, 2010 3:55 am orzelek File Added: S4.sav
Nov 17, 2010 3:55 am orzelek Note Added: 0003793
Nov 17, 2010 8:47 am keith.lamothe Note Added: 0003803
Nov 17, 2010 9:00 am keith.lamothe Note Added: 0003805
Nov 17, 2010 9:22 am keith.lamothe Note Added: 0003807
Nov 17, 2010 9:22 am keith.lamothe Status new => resolved
Nov 17, 2010 9:22 am keith.lamothe Resolution open => fixed
Nov 17, 2010 9:22 am keith.lamothe Assigned To => keith.lamothe