View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0001421 | AI War 1 / Classic | Bug - Other | Nov 17, 2010 3:53 am | Nov 17, 2010 9:22 am | |
Reporter | orzelek | Assigned To | keith.lamothe | ||
Status | resolved | Resolution | fixed | ||
Product Version | 4.035 | ||||
Summary | 0001421: Spire spawn broken | ||||
Description | Securing shard didn't cause any spawns. Only unhandled errors log - attached. | ||||
Tags | No tags attached. | ||||
Internal Weight | |||||
|
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 |
|
|
|
Attached save that causes this to happen after the load. |
|
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. |
|
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. |
|
This is fixed for the next version, thanks :) |
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 |