zealsprince / lc-malfunctions

Lethal Company mod that adds random malfunctions to the ship and intends to improve the core game loop with interesting new events.
https://thunderstore.io/c/lethal-company/p/zealsprince/Malfunctions/
MIT License
5 stars 0 forks source link

Unable to land after navigational malfunction - possible mod conflict? #9

Closed Hardeh closed 4 months ago

Hardeh commented 4 months ago

When navigation malfunction happened - ship was routed somewhere, but monitor with level info turned off completely. When i pulled the lever - game was stuck forever on "Waiting for crew", and this error happened:

NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Object.GetName(UnityEngine.Object)
  at UnityEngine.Object.get_name () [0x00001] in <e27997765c1848b09d8073e5d642717a>:IL_0001 
  at BrutalCompanyMinus.Minus.Manager+<>c__DisplayClass26_0.<RemoveSpawn>b__1 (SpawnableEnemyWithRarity x) [0x00000] in <c42eff2870b34b5986219080b04a0600>:IL_0000 
  at System.Collections.Generic.List`1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate`1[T] match) [0x00033] in <787acc3c9a4c471ba7d971300105af24>:IL_0033 
  at System.Collections.Generic.List`1[T].FindIndex (System.Predicate`1[T] match) [0x00000] in <787acc3c9a4c471ba7d971300105af24>:IL_0000 
  at BrutalCompanyMinus.Minus.Manager.RemoveSpawn (System.String Name) [0x00050] in <c42eff2870b34b5986219080b04a0600>:IL_0050 
  at BrutalCompanyMinus.Minus.Events.NoSnareFleas.Execute () [0x0000b] in <c42eff2870b34b5986219080b04a0600>:IL_000B 
  at BrutalCompanyMinus.Minus.EventManager.ApplyEvents (System.Collections.Generic.List`1[T] currentEvents) [0x00010] in <c42eff2870b34b5986219080b04a0600>:IL_0010 
  at BrutalCompanyMinus.Plugin.ModifyLevel (SelectableLevel& newLevel) [0x0014c] in <c42eff2870b34b5986219080b04a0600>:IL_014C 
  at (wrapper dynamic-method) RoundManager.DMD<RoundManager::LoadNewLevel>(RoundManager,int,SelectableLevel)
  at StartOfRound+<OpenShipDoors>d__245.MoveNext () [0x0007f] in <af9b1eec498a45aebd42601d6ab85015>:IL_007F 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <e27997765c1848b09d8073e5d642717a>:IL_0026 

I understand that it seems that Brutal Company Minus is to blame, but "NullReferenceException at (wrapper managed-to-native) UnityEngine.Object.GetName(UnityEngine.Object)" is the reason of all that, and it happened right after navigational malfunction. It's also weird that level info monitor was turned off completely (is that supposed to happen?) I asked in Brutal Company Minus thread as well, but mod author is not yet availible, so i'm trying to find reason of that.

It's also possible that it's somehow related to yesterday's Lethal Level Loader update, which broke many things.

Hardeh commented 4 months ago

Anyways, here is a full player.log when it happened Player.log

Hardeh commented 4 months ago

Looks like it's not related to Malfunctions, it breaks if i fly to "Egypt" moon normal way too and there's "no snare fleas" event.