View Issue Details

IDProjectCategoryLast Update
0027188AI War 2Gameplay IssueApr 28, 2022 12:26 am
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Status assignedResolutionopen 
Product Version5.006 End To Spontaneous Combustion 
Summary0027188: Tutorial ships dying
DescriptionI opened tutorial 2, selected the ships and just let it run while I was doing other things in the house

4/26/2022 9:13:16 PM 5.005 SINGLEP DELAYED66 TID7 PlayerAccount badger_test has now been put in control of faction 1 - Human Empire.
4/26/2022 9:25:50 PM 5.005 SINGLEP DELAYED67 TID69 Removing: 2-1 Raid Frigate of badger_test because DiedBelatedlyFromZeroHealth
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00042] in /data/Games/arcengames_aiw-ultra/CodeCrossProject/ArcenUniversal/src/UtilityLibraries/Debug/ArcenDebugging.cs:242
  at Arcen.AIW2.Core.GameEntity_Squad.OnlyInMapgenOrInActuallyGettingRidOfEntities_ImmediatelyRemoveFromSim (Arcen.AIW2.Core.InstancedRendererDeactivationReason Reason) [0x00081] in /data/Games/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/GameEntity/GameEntity_Squad.cs:10440
  at Arcen.AIW2.Core.World_AIW2.CheckForActuallyGettingRidOfRemovedEntities () [0x00175] in /data/Games/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/World_AIW2.cs:5032
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoRemoveDeadEntitiesLogic (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <a4e21a0962ed4563a88ea78f494ada55>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoWorldStepLogic_ClientOrHost_FromSimBGThread (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <a4e21a0962ed4563a88ea78f494ada55>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x00000] in <a4e21a0962ed4563a88ea78f494ada55>:0
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext.BackgroundThreadRunHandler (System.Single SuicidesAfterTime, System.Boolean FailSilentlyIfNotFinishedYet) [0x00000] in <a4e21a0962ed4563a88ea78f494ada55>:0
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext+<RunOnBackgroundThread>c__AnonStorey0.<>m__0 () [0x00000] in <a4e21a0962ed4563a88ea78f494ada55>:0
  at Arcen.Universal.ArcenThreading+<RunTaskOnBackgroundThread>c__AnonStorey0.<>m__0 () [0x00045] in /data/Games/arcengames_aiw-ultra/CodeCrossProject/ArcenUniversal/src/UtilityLibraries/ArcenThreading.cs:195
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.Execute () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
TagsNo tags attached.

Activities

BadgerBadger

Apr 28, 2022 12:26 am

manager   ~0066524

Okay Chris, I added some debug logging and am very confused by what I see. GetMaxHullPoints() is returning 0, but I don't know why. We're using the
fleetMem.GetMaxHullPoints_PlayerFleetsOnly(); check, which I know because I added this logging:
                    int tmp = fleetMem.GetMaxHullPoints_PlayerFleetsOnly();
                    if ( tmp <= 0 )
                        ArcenDebugging.ArcenDebugLogSingleLine("Found " + tmp + " hull points from the fleet check", Verbosity.DoNotShow );

and see
4/27/2022 10:11:42 PM 5.005 SINGLEP DELAYED10 TID32 Found 0 hull points from the fleet check

So I added some logging to GetMaxHullPoints_PlayerFleetsOnly
            if ( this.MaxHullFinal <= 0 )
                ArcenDebugging.ArcenDebugLogSingleLine("GetMaxHullPoints_PlayerFleetsOnly for " + this.TypeData.GetDisplayName() +". got " + this.MaxHullFinal +" hull points path B. base " + this.ForMark.BaseHullPoints + " my mark " + this.EffectiveMark + " forMarkWasNull " + forMarkWasNull + " mult " + this.GetMaxHullPointsMultiplier(), Verbosity.DoNotShow );

            return this.MaxHullFinal;

So I check this.MaxHullFinal, then print this output. Here's the output:
4/27/2022 10:11:31 PM 5.005 SINGLEP DELAYED9 TID33 GetMaxHullPoints_PlayerFleetsOnly for Raid Frigate. got 21000 hull points path B. base 21000 my mark 1 forMarkWasNull False mult 1

So when I check this value, it shows as 0. Then when I print it, it's non-zero. Then when I return it, it's 0 again.

Issue History

Date Modified Username Field Change
Apr 26, 2022 11:36 pm BadgerBadger New Issue
Apr 26, 2022 11:36 pm BadgerBadger Status new => assigned
Apr 26, 2022 11:36 pm BadgerBadger Assigned To => Chris_McElligottPark
Apr 28, 2022 12:26 am BadgerBadger Note Added: 0066524