View Issue Details

IDProjectCategoryLast Update
0023270AI War 2Bug - GameplayJun 9, 2020 4:28 pm
Reporterynof Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 2.062 Savegame/Networking Data Compaction 
Fixed in VersionBeta 2.063 Fixes and Tweaks 
Summary0023270: AI Risk Analyzers fire continously
DescriptionThe first time the AI Risk Analyzers trigger, they trigger every second or so after that. See attached savegame. Also, I don't know if this is a bug but enemy strength numbers are no longer visible on the galactic map.
TagsNo tags attached.

Activities

ynof

Jun 9, 2020 1:36 pm

reporter  

Bug.save (539,879 bytes)
Bug.savemet (59 bytes)

BadgerBadger

Jun 9, 2020 1:41 pm

manager   ~0057240

The strength numbers not being on the galaxy map is fixed for the next steam build, when chris pushes it.

BadgerBadger

Jun 9, 2020 3:15 pm

manager   ~0057242

Error in thread for execution context 'executionContext'
InvalidCastException
Specified cast is not valid.
===STACK FRAMES (with file info)===
FILE METHOD IL_OFFSET NATIVE_OFFSET LINE_NUMBER COLUMN_NUMBER
        GetTotalRiskAnalyzerAIPIncrease 17 87 0 0
        updateRiskAnalyzerTotals 3 59 0 0
        DoPerSecondLogic_Stage3Main_OnMainThreadAndPartOfSim 526 1539 0 0
        <>m__2 1 49 0 0
        DoForFactions 21 98 0 0
        DoWorldSecondLogic_FromSimBGThread 98 587 0 0
        DoWorldStepLogic_FromSimBGThread 368 971 0 0
        Execute 179 376 0 0
===RAW STACK TRACE===
  at Arcen.AIW2.External.ExtensionMethodsFor_RiskAnalyzerData.GetTotalRiskAnalyzerAIPIncrease (Arcen.AIW2.Core.Faction ParentObject) [0x00011] in <\
7eac18fb1b41469bac7f98cb2287c168>:0
  at Arcen.AIW2.External.SpecialFaction_RiskAnalyzer.updateRiskAnalyzerTotals (Arcen.AIW2.Core.Faction faction, System.Int32 totalIncrease, System.\
Int32 netIncrease) [0x00003] in <7eac18fb1b41469bac7f98cb2287c168>:0
  at Arcen.AIW2.External.SpecialFaction_RiskAnalyzer.DoPerSecondLogic_Stage3Main_OnMainThreadAndPartOfSim (Arcen.AIW2.Core.Faction faction, Arcen.A\
IW2.Core.ArcenSimContext Context) [0x0020e] in <7eac18fb1b41469bac7f98cb2287c168>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation+<DoWorldSecondLogic_FromSimBGThread>c__AnonStorey14.<>m__2 (Arcen.AIW2.Core.Faction faction) \
[0x00001] in <7eac18fb1b41469bac7f98cb2287c168>:0
  at Arcen.AIW2.Core.World_AIW2.DoForFactions (Arcen.AIW2.Core.Faction+ProcessorDelegate Processor) [0x00015] in <7dd00644530c4b05a4b0e384a0c6e41b>\
:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoWorldSecondLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x00062] in <7e\
ac18fb1b41469bac7f98cb2287c168>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoWorldStepLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x00170] in <7eac\
18fb1b41469bac7f98cb2287c168>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x000b3] in <7eac18fb1b41469bac7f98cb2287c168>:0

Chris, not sure what's going on here. Presumably related to your recent save game work?

Chris_McElligottPark

Jun 9, 2020 4:21 pm

administrator   ~0057243

I'll take care of that today. I can duplicate the problem.

Chris_McElligottPark

Jun 9, 2020 4:28 pm

administrator   ~0057244

Thanks!

* Fixed a bug in the beta branch with risk analyzers throwing an exception every time they tried to fire. This was related to their data being stored as an Int16 now, but some extension methods still trying to cast them from an object to an Int32. For some reason this was causing an invalid cast exception, which surprises us since the data is a valid Int32 and can be directly cast from an Int16. But apparently it being stored in the super-old format where it's an internal object class invalidates a direct cast. Most likely this is due to boxing of a value type in and object type causing the normal casts defined in the core language libraries to not kick in. It's yet another good reason to avoid the super-old style of external data storage we used for Risk Analyzers.

Issue History

Date Modified Username Field Change
Jun 9, 2020 1:36 pm ynof New Issue
Jun 9, 2020 1:36 pm ynof File Added: Bug.save
Jun 9, 2020 1:36 pm ynof File Added: Bug.savemet
Jun 9, 2020 1:41 pm BadgerBadger Note Added: 0057240
Jun 9, 2020 3:15 pm BadgerBadger Note Added: 0057242
Jun 9, 2020 3:15 pm BadgerBadger Assigned To => Chris_McElligottPark
Jun 9, 2020 3:15 pm BadgerBadger Status new => assigned
Jun 9, 2020 4:21 pm Chris_McElligottPark Note Added: 0057243
Jun 9, 2020 4:28 pm Chris_McElligottPark Status assigned => resolved
Jun 9, 2020 4:28 pm Chris_McElligottPark Resolution open => fixed
Jun 9, 2020 4:28 pm Chris_McElligottPark Fixed in Version => Beta 2.063 Fixes and Tweaks
Jun 9, 2020 4:28 pm Chris_McElligottPark Note Added: 0057244