Jump to content

crash when selecting resin rooster for attack


Tiru
  • Branch: Preview Branch Version: Windows Pending

testing build as of 2021-04-20, 100% reproducible

The resin rooster does not have an 'Attack' button when it is selected but it can be marked for attack (i.e. the attack icon appears) when using the attack tool and selecting an area. I noticed this accidentally when selecting a few pufts flying nearby but it also applies when only selecting the tree.

 

Crash text :

NullReferenceException: Object reference not set to an instance of an object

ThreatMonitor+Instance.FindThreat () (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/game/Minions/Monitors/ThreatMonitor.cs:421)
ThreatMonitor+Instance.CheckForThreats () (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/game/Minions/Monitors/ThreatMonitor.cs:341)
ThreatMonitor+Instance.RefreshThreat (System.Object data) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/game/Minions/Monitors/ThreatMonitor.cs:316)
ThreatMonitor+<>c.<InitializeStates>b__8_4 (ThreatMonitor+Instance smi, System.Single dt) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/game/Minions/Monitors/ThreatMonitor.cs:96)
BucketUpdater`1[DataType].Update (DataType data, System.Single dt) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:96)
UpdateBucketWithUpdater`1[DataType].Update (System.Single dt) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:79)
StateMachineUpdater+BucketGroup.AdvanceOneSubTick (System.Single dt) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:152)
StateMachineUpdater.AdvanceOneSimSubTick () (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/Plugins/Klei/util/StateMachineUpdater.cs:244)
Game.SimEveryTick (System.Single dt) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/game/Game.cs:1368)
Game.Update () (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/game/Game.cs:1344)
 

 


Steps to Reproduce

- Use the 'T' hotkey or select attack creatures

- Drag the window over an area that includes the resin rooster. It may include other enemies as well, but is not required.




User Feedback


I just want to note that while I would like the tree to be made non-targetable again in order to fix the crash I do feel that my duplicants were well within their rights to defend themselves from this horror when they tried to attack it.

  • Haha 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...