ThinkInvis / RoR2-TinkersSatchel

A mod for Risk of Rain 2.
GNU General Public License v3.0
4 stars 4 forks source link

Fudge Dice NullReferenceException causing game crash #63

Closed Steuls closed 2 years ago

Steuls commented 2 years ago

Description

Getting the Fudge Dice Item causes NullReferenceException errors which in later stage games end up building up to cause a crash. The errors appear immediately on picking up the item and can be proven to crash a game if you play until stage 9+ then get the dice item causing a crash after a few freezing frames.

To Reproduce

Steps to reproduce the behavior:

  1. Load a game (Artifact of command guarantees selecting dice)
  2. Get the dice
  3. See errors in console

Steps to reproduce the Crash:

  1. Load a game (Artifact of command guarantees selecting dice at the right time)
  2. play until a later round with lots of items
  3. get the dice
  4. see a crash

Expected Behavior

No crash or errors with the item

Console Log

Was too long for Github issues can be found here: https://pastebin.com/xF5DGhGu

Notable sections:

[Info : Unity Log] You picked up Fudge Dice [Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: ThinkInvisible.TinkersSatchel.FudgeDiceICD.FixedUpdate () (at <920003a8270b4c8788db39a6385702cb>:IL_000C)