View Issue Details

IDProjectCategoryLast Update
0025997AI War 2Bug - OtherDec 23, 2021 5:42 pm
ReporterRocketAssistedPuffin Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 3.770 Bug Roasting 
Fixed in VersionBeta 3.772 Refinements And Polish 
Summary0025997: DELAYED10 TID24 Hit Exception in ZA LRP. debugCode 900 System.NullReferenceException: Object reference not set to an instance of
Description3.770 SINGLEP DELAYED10 TID24 Hit Exception in ZA LRP. debugCode 900 System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.ZenithArchitraveFactionDeepInfo+<>c__DisplayClass54_0.<DoLongRangePlanning_OnBackgroundNonSimThread_Subclass>b__3 (Arcen.AIW2.Core.GameEntity_Squad entity) [0x0001f] in <c0043c0e53cc4252bce4f0f1401fe48e>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (System.String Tag, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00075] in <43324ebac46145e59def8533a70f22d8>:0
  at Arcen.AIW2.Core.Faction.DoForEntities (System.String Tag, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00033] in <43324ebac46145e59def8533a70f22d8>:0
  at Arcen.AIW2.External.ZenithArchitraveFactionDeepInfo.DoLongRangePlanning_OnBackgroundNonSimThread_Subclass (Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context) [0x002dd] in <c0043c0e53cc4252bce4f0f1401fe48e>:0


That debug code points to...

                AttachedFaction.DoForEntities( "ZenithArchitraveSpawner", delegate ( GameEntity_Squad entity )
                {
                    debugCode = 900;
                    LRPSpawners.Add( entity );
                    ZenithArchitravePerUnitBaseInfo data = entity.TryGetExternalBaseInfoAs<ZenithArchitravePerUnitBaseInfo>();
                    if ( data.GetStrengthInside() < BaseInfo.GetAllowedPeaceStrengthForSpawner( entity, BaseInfo.Difficulty ) )
                    {
                        debugCode = 1000;
                        LRPSpawnersWithSpace.Add( entity );
                    }

                    return DelReturn.Continue;
                } );

I do have things with that tag in CF. Unsure if it'd be a vanilla thing or me.
TagsNo tags attached.

Activities

Chris_McElligottPark

Dec 23, 2021 5:42 pm

administrator   ~0063574

Thanks!

* Fixed a ZA bug that could happen if the per-unit data was not yet initialized on a spawner.

Issue History

Date Modified Username Field Change
Dec 21, 2021 9:17 am RocketAssistedPuffin New Issue
Dec 23, 2021 5:42 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Dec 23, 2021 5:42 pm Chris_McElligottPark Status new => resolved
Dec 23, 2021 5:42 pm Chris_McElligottPark Resolution open => fixed
Dec 23, 2021 5:42 pm Chris_McElligottPark Fixed in Version => Beta 3.772 Refinements And Polish
Dec 23, 2021 5:42 pm Chris_McElligottPark Note Added: 0063574