View Issue Details

IDProjectCategoryLast Update
0024791AI War 2Bug - OtherMay 5, 2021 8:46 pm
ReporterDarkshade Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.815 Polishing And Bugfixing 
Fixed in Version2.899 Almost Press Build 
Summary0024791: AI-faction got shut down
DescriptionLike the title said, one of the AI-Faction got shut down during my current game, it resumes functioning after quitting and loading the last (auot)save again though
TagsNo tags attached.

Activities

Darkshade

May 2, 2021 11:08 am

reporter  

023.save (1,188,032 bytes)
023.savemet (90 bytes)
ArcenDebugLog.txt (1,946,642 bytes)
Autosave at 9h 15m 0s.save (1,411,545 bytes)
shut_down.jpg (442,487 bytes)
shut_down2.png (1,354,800 bytes)

Darkshade

May 2, 2021 11:11 am

reporter   ~0061312

The 023 save was the last save before it happened, the autosave when(/after?) it happened

BadgerBadger

May 2, 2021 11:33 am

manager   ~0061313

5/2/2021 4:47:25 PM 2.816 SINGLEP Exception in AI.DoLongRangePlanning_OnBackgroundNonSimThread_Subclass stage 206
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.Planet.GetWormholeTo (Arcen.AIW2.Core.Planet Other) [0x00001] in <9156e0c16ab5428481a39b50b8d0b92b>:0
  at Arcen.AIW2.External.FactionUtilityMethods.IsShieldBlockingWormholeToPlanet (Arcen.AIW2.Core.Planet startPlanet, Arcen.AIW2.Core.Planet destinationPlanet, Arcen.AIW2.Core.Faction faction) [0x0000e] in <7e3ce8c558984a9aa7ae513c9aa97621>:0
  at Arcen.AIW2.External.SpecialFaction_AI+<>c__DisplayClass31_3.<DoLongRangePlanning_OnBackgroundNonSimThread_Subclass>b__2 (Arcen.AIW2.Core.GameEntity_Squad entity) [0x003ba] in <7e3ce8c558984a9aa7ae513c9aa97621>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.EntityRollupType Rollup, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00068] in <9156e0c16ab5428481a39b50b8d0b92b>:0
  at Arcen.AIW2.External.SpecialFaction_AI+<>c__DisplayClass31_1.<DoLongRangePlanning_OnBackgroundNonSimThread_Subclass>b__0 (Arcen.AIW2.Core.Planet planet) [0x00323] in <7e3ce8c558984a9aa7ae513c9aa97621>:0

BadgerBadger

May 2, 2021 11:34 am

manager   ~0061314

My code calls
        public static bool IsShieldBlockingWormholeToPlanet ( Planet startPlanet, Planet destinationPlanet, Faction faction )
        {
            GameEntity_Other thisWormhole = startPlanet.GetWormholeTo( destinationPlanet ); <=== this function errors out
            if ( thisWormhole == null )
                return false; //maybe if we jump between planets while LRP is running?

Chris_McElligottPark

May 5, 2021 8:46 pm

administrator   ~0061370

Thanks!

* Fixed a couple of rare cross-threading issues that could happen with ships moving between planets and the AI thinking about it in the background and then having a nullref exception.

Issue History

Date Modified Username Field Change
May 2, 2021 11:08 am Darkshade New Issue
May 2, 2021 11:08 am Darkshade File Added: 023.save
May 2, 2021 11:08 am Darkshade File Added: 023.savemet
May 2, 2021 11:08 am Darkshade File Added: ArcenDebugLog.txt
May 2, 2021 11:08 am Darkshade File Added: Autosave at 9h 15m 0s.save
May 2, 2021 11:08 am Darkshade File Added: Autosave at 9h 15m 0s.savemet
May 2, 2021 11:08 am Darkshade File Added: shut_down.jpg
May 2, 2021 11:08 am Darkshade File Added: shut_down2.png
May 2, 2021 11:11 am Darkshade Note Added: 0061312
May 2, 2021 11:33 am BadgerBadger Note Added: 0061313
May 2, 2021 11:34 am BadgerBadger Note Added: 0061314
May 5, 2021 8:46 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
May 5, 2021 8:46 pm Chris_McElligottPark Status new => resolved
May 5, 2021 8:46 pm Chris_McElligottPark Resolution open => fixed
May 5, 2021 8:46 pm Chris_McElligottPark Fixed in Version => 2.899 Almost Press Build
May 5, 2021 8:46 pm Chris_McElligottPark Note Added: 0061370