FluffyFishGames / AdvancedCompany

Repository for my AdvancedCompany mod.
Creative Commons Zero v1.0 Universal
13 stars 15 forks source link

PietSmietController, End of day, Drive error #148

Closed TheNutFather closed 8 months ago

TheNutFather commented 9 months ago

Describe the bug PietSmietController couldn't update at the end of the day, was teleported back to the ship and didn't get "left behind" in the games terms. Mod is referencing a G: drive while trying to update the state of the controller it seems. Was able to drop PietSmietController after I was teleported back to the ship and continue playing but the console was spamming the error, and my state on the next moon landing made it so I was able to just go under flood water. Player state corrected itself after leaving the facility again.

To Reproduce Steps to reproduce the behavior:

  1. Pick up PietSmietController
  2. Wait until the day ends
  3. Get teleported
  4. See error

The Error

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: Unity.Netcode.NetworkBehaviour.__endSendClientRpc (Unity.Netcode.FastBufferWriter& bufferWriter, System.UInt32 rpcMethodId, Unity.Netcode.ClientRpcParams clientRpcParams, Unity.Netcode.RpcDelivery rpcDelivery) (at <895801699cfc4b4ab52267f31e2a4998>:IL_01DE) EnemyAI.KillEnemyClientRpc (System.Boolean destroy) (at :IL_008D) AdvancedCompany.Objects.PietSmietController.KillEnemy (EnemyAI enemy) (at G:/Unity/AdvancedCompany/UpgradeCompany/Objects/PietSmietController.cs:107) AdvancedCompany.Objects.PietSmietController.Update () (at G:/Unity/AdvancedCompany/UpgradeCompany/Objects/PietSmietController.cs:255)

Thank you for this fantastic mod, can't imagine playing without it.

FluffyFishGames commented 8 months ago

Hopefully should be fixed in next version