Jump to content

Crash - NullReferenceException in Edible.OnTickConsume()


SamLogan
  • Branch: Live Branch Version: Windows Pending

I’m encountering a NullReferenceException in Edible.OnTickConsume() whenever a Duplicant eats certain items. The error message is:

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

Edible.OnTickConsume (WorkerBase worker, System.Single dt) (at <699e397d6483434b987aef7dfd8a9bcc>:0)
Edible.OnWorkTick (WorkerBase worker, System.Single dt) (at <699e397d6483434b987aef7dfd8a9bcc>:0)
Workable.WorkTick (WorkerBase worker, System.Single dt) (at <699e397d6483434b987aef7dfd8a9bcc>:0)
StandardWorker.Work (System.Single dt) (at <699e397d6483434b987aef7dfd8a9bcc>:0)
GameStateMachine4+State+<>c__DisplayClass92_0[StateMachineType,StateMachineInstanceType,MasterType,DefType].<ToggleWork>b__1 (StateMachineInstanceType smi, System.Single dt) (at <699e397d6483434b987aef7dfd8a9bcc>:0)
BucketUpdater1[DataType].Update (DataType data, System.Single dt) (at <82d98ed04cc642f199bc654910617431>:0)
UpdateBucketWithUpdater`1[DataType].Update (System.Single dt) (at <82d98ed04cc642f199bc654910617431>:0)
StateMachineUpdater+BucketGroup.AdvanceOneSubTick (System.Single dt) (at <82d98ed04cc642f199bc654910617431>:0)
StateMachineUpdater.AdvanceOneSimSubTick () (at <82d98ed04cc642f199bc654910617431>:0)
Game.SimEveryTick (System.Single dt) (at <699e397d6483434b987aef7dfd8a9bcc>:0)
Game.Update () (at <699e397d6483434b987aef7dfd8a9bcc>:0)

Build: U54-651155-SCR

It may be related to a mod/DLC (like the Bionic Booster Pack) adding custom foods. Possibly the food reference becomes invalid during consumption, causing the crash. Any help or workaround would be appreciated!


Steps to Reproduce

I have the sandbox mode activated on my game but no mod. I don't know how to reproduce the crash.




User Feedback


There are no comments to display.



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...