View Issue Details

IDProjectCategoryLast Update
0024218AI War 2Crash/ExceptionDec 12, 2020 2:15 pm
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.702 Hot-Reloading Mods And Expansions 
Fixed in Version2.702 Hot-Reloading Mods And Expansions 
Summary0024218: MP errors from tonight
DescriptionAll errors from MP client.

12/8/2020 10:02:02 PM Hit exception in Helper_SendExoGalacticAttack_SingleExoTarget debugCode 900 System.DivideByZeroException: Attempted to divide by zero.
  at Arcen.AIW2.External.ExoGalacticAttackManager.Helper_SendExoGalacticAttack_SingleExoTarget (Arcen.AIW2.Core.GameEntity_Squad Target, System.Boolean& GiveAnnouncement, System.Int32 TargetCount, System.Boolean debug, System.Int32 AttackStrength, Arcen.AIW2.Core.Planet ForceOrigin, Arcen.AIW2.Core.Faction spawningFaction, Arcen.AIW2.Core.Faction invokingFaction, Arcen.AIW2.Core.ArcenSimContext Context, Arcen.AIW2.External.ExoGalacticAttackType type, System.Int32 distanceFromTargetOverride, System.Int32 defaultDistanceFromTarget, Arcen.AIW2.External.ExoOptions options) [0x00436] in <474f6f8a33484e08a050930cfb6b06ea>:0

I believe what's happening here is that when you execute this on the MP client no ships are created. But the code always assumes the ships are created. Proposed fix: don't run this code path as a multiplayer client.

Another potential problem is that this function is called from the Sim code, but it's queuing a GameCommand. I believe you said this could be an issue? In any case, running this code only on the host would fix the problem.


I also saw a bunch of CreateSpeedGroup errors
12/8/2020 9:42:33 PM Error in GameCommand_CreateSpeedGroup debugStage 8300. Error: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.GameCommand_CreateSpeedGroup.Execute (Arcen.AIW2.Core.GameCommand command, Arcen.AIW2.Core.ArcenSimContext context) [0x002ec] in <474f6f8a33484e08a050930cfb6b06ea>:0
12/8/2020 9:42:35 PM Error in GameCommand_CreateSpeedGroup debugStage 8300. Error: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.GameCommand_CreateSpeedGroup.Execute (Arcen.AIW2.Core.GameCommand command, Arcen.AIW2.Core.ArcenSimContext context) [0x002ec] in <474f6f8a33484e08a050930cfb6b06ea>:0
12/8/2020 9:42:37 PM Error in GameCommand_CreateSpeedGroup debugStage 8300. Error: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.GameCommand_CreateSpeedGroup.Execute (Arcen.AIW2.Core.GameCommand command, Arcen.AIW2.Core.ArcenSimContext context) [0x002ec] in <474f6f8a33484e08a050930cfb6b06ea>:0
12/8/2020 9:42:39 PM Error in GameCommand_CreateSpeedGroup debugStage 8300. Error: System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.GameCommand_CreateSpeedGroup.Execute (Arcen.AIW2.Core.GameCommand command, Arcen.AIW2.Core.ArcenSimContext context) [0x002ec] in <474f6f8a33484e08a050930cfb6b06ea>:0

I suspect this is coming from the Scourge, which we had enabled.
For maximum confusion, here's that code
                    debugStage = 8300;
                    if ( newSpeedGroup != null )
                        newSpeedGroup.SetOverrideSpeedLimit( (Int16)newValue );

This is ... perplexing.
TagsNo tags attached.

Relationships

related to 0024222 resolvedChris_McElligottPark Speed group bugs still occuring. 

Activities

Chris_McElligottPark

Dec 12, 2020 2:15 pm

administrator   ~0059910

Thanks! Easy fix, in this case.

* Fixed a couple of cases where multiplayer clients were potentially causing either exceptions or excess gamecommands or both based on exogalactic aattacks.

Issue History

Date Modified Username Field Change
Dec 9, 2020 12:43 am BadgerBadger New Issue
Dec 9, 2020 12:43 am BadgerBadger Status new => assigned
Dec 9, 2020 12:43 am BadgerBadger Assigned To => Chris_McElligottPark
Dec 12, 2020 1:27 am BadgerBadger Relationship added related to 0024222
Dec 12, 2020 2:15 pm Chris_McElligottPark Status assigned => resolved
Dec 12, 2020 2:15 pm Chris_McElligottPark Resolution open => fixed
Dec 12, 2020 2:15 pm Chris_McElligottPark Fixed in Version => 2.702 Hot-Reloading Mods And Expansions
Dec 12, 2020 2:15 pm Chris_McElligottPark Note Added: 0059910