View Issue Details

IDProjectCategoryLast Update
0024508AI War 2GUIMar 5, 2021 10:16 am
ReporterHistidine Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product VersionBeta 2.751 Repairs And Clarity 
Fixed in VersionBeta 2.752 Golden Devourer 
Summary0024508: Tech vault tooltip exception
DescriptionLooks like same issue as 0024446

3/5/2021 9:54:21 PM 2.751 SINGLEP Error trying to handle mouseover: System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Arcen.AIW2.Core.Faction.GetCanUnlockTech (Arcen.AIW2.Core.TechUpgrade Upgrade, System.Boolean RejectIfBenefitsNothing, System.Int32& NextUnlockCost, System.Boolean ThisUnlockSpendsScience) [0x0004b] in <8d982308d3d4423bb48074e953ab14da>:0
  at Arcen.AIW2.External.HackingUtils.GetListOfTechsValidForFactionFromTag (Arcen.AIW2.Core.Faction fac, System.String TagToMatch) [0x00084] in <5d85752fb1a24dd5b15e40f18b452a71>:0
  at Arcen.AIW2.External.HackingUtils.StartListOfTechsForTechVaultStyleGranter_ByTag (Arcen.AIW2.Core.GameEntity_Squad target, Arcen.AIW2.Core.Faction hackerFaction, System.String TagToMatch, System.Int32 NumberTechsToAdd) [0x0004d] in <5d85752fb1a24dd5b15e40f18b452a71>:0
  at Arcen.AIW2.External.Hacking_GrantTech_TechVault.CalculateListOfTechs_TechVault (Arcen.AIW2.Core.GameEntity_Squad target, Arcen.AIW2.Core.Faction hackerFaction) [0x00001] in <5d85752fb1a24dd5b15e40f18b452a71>:0
  at Arcen.AIW2.External.Hacking_GrantTech_TechVault.CalculateListOfTechs (Arcen.AIW2.Core.GameEntity_Squad target, Arcen.AIW2.Core.Faction hackerFaction) [0x00001] in <5d85752fb1a24dd5b15e40f18b452a71>:0
  at Arcen.AIW2.External.Hacking_GrantTech.GetDynamicDescription (Arcen.AIW2.Core.GameEntity_Squad target, Arcen.AIW2.Core.GameEntity_Squad hackerOrNull, Arcen.AIW2.Core.Planet planet, Arcen.AIW2.Core.Faction hackerFaction, Arcen.AIW2.Core.HackingType hackingType) [0x00007] in <5d85752fb1a24dd5b15e40f18b452a71>:0
  at Arcen.AIW2.External.Window_InGameSidebarHacking+btnHackingItem.HandleMouseover () [0x000cd] in <5d85752fb1a24dd5b15e40f18b452a71>:0
  at Arcen.Universal.ArcenUI_Element.HandleMouseoverchecksOnly () [0x00074] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at System.Environment.get_StackTrace () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity, System.DateTime Timestamp) [0x00000] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at Arcen.Universal.ArcenUI_Element.HandleMouseoverchecksOnly () [0x00000] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at Arcen.Universal.ArcenUI_Window.OnWindowHandleMouseoverchecksOnly () [0x00000] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at Arcen.Universal.ArcenUI.OnUpdateFromMainThread () [0x00000] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x00000] in <e50a673592f14664a6ee42e5e6956cdc>:0
  at Arcen.AIW2.Core.ArcenGameControllerBase.BaseUpdate () [0x00000] in <8d982308d3d4423bb48074e953ab14da>:0
  at ArcenGameController.Update () [0x00000] in <14f1c75f68204a3f8c456fbd19057562>:0
TagsNo tags attached.

Activities

Chris_McElligottPark

Mar 5, 2021 10:16 am

administrator   ~0060690

Thanks!

* Fixed a potential bug in GetCanUnlockTech() where MAYBE under some certain circumstances it could get an exception if you had already fully unlocked a tech that was being checked.
** Probably our existing code was fine, but after Histidine got an error in here, we're being extra careful.

* The TechUnlocks and FreeTechUnlocks arrays are now expanded during calls to GetCanUnlockTech() if they need to be.
** This is a bit of a confusing issue, as it seems like the only way that this should be able to happen is if mods or DLC or something are reloaded after a game has started, but there may be something there with techs that are added after a game was started and we just missed that.
** At any rate, this is more likely where the bug was, so this will self-fix itself now.

Issue History

Date Modified Username Field Change
Mar 5, 2021 8:59 am Histidine New Issue
Mar 5, 2021 10:16 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Mar 5, 2021 10:16 am Chris_McElligottPark Status new => resolved
Mar 5, 2021 10:16 am Chris_McElligottPark Resolution open => fixed
Mar 5, 2021 10:16 am Chris_McElligottPark Fixed in Version => Beta 2.752 Golden Devourer
Mar 5, 2021 10:16 am Chris_McElligottPark Note Added: 0060690