ustaalon / LethalCompany.ExtraDays

Allows the player to purchase an extra day via the terminal. This mod's uniqueness is that it tries to be more realistic with the game, as it is not trying to modify the main logic of the deadline. It tries to add functionality that will give you extends for the deadline but with some price on it.
https://thunderstore.io/c/lethal-company/p/Anubis/ExtraDaysToDeadline/
MIT License
2 stars 1 forks source link

Command Other not working #25

Closed TecnoLuis99 closed 8 months ago

TecnoLuis99 commented 8 months ago

Incompatiblitiy with kRYstall9-FastSwitchPlayerViewInRadar. The "Other" command stop working in the terminal with this two mods.

ustaalon commented 8 months ago

Hey @TecnoLuis99 I will look into it. Thanks for letting me know

ustaalon commented 8 months ago

The error is (investigating):

[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
LethalCompanyMonitorMod.Patch.TerminalPatch.HandleSentence (Terminal __instance, TerminalNode __result) (at <07828129951f4304ba45d6d83708977b>:0)
(wrapper dynamic-method) Terminal.DMD<Terminal::ParsePlayerSentence>(Terminal)
(wrapper dynamic-method) Terminal.DMD<Terminal::OnSubmit>(Terminal)
UnityEngine.Events.InvokableCall.Invoke () (at <e27997765c1848b09d8073e5d642717a>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <e27997765c1848b09d8073e5d642717a>:0)
TMPro.TMP_InputField.SendOnEndEdit () (at <830d2f4cda924be69883be03cc68e010>:0)
TMPro.TMP_InputField.ReleaseSelection () (at <830d2f4cda924be69883be03cc68e010>:0)
TMPro.TMP_InputField.DeactivateInputField (System.Boolean clearSelection) (at <830d2f4cda924be69883be03cc68e010>:0)
TMPro.TMP_InputField.OnUpdateSelected (UnityEngine.EventSystems.BaseEventData eventData) (at <830d2f4cda924be69883be03cc68e010>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IUpdateSelectedHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <281a675b48d344e28f9941b2777fd620>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <281a675b48d344e28f9941b2777fd620>:0)
UnityEngine.EventSystems.EventSystem:Update()
ustaalon commented 8 months ago

Hey @TecnoLuis99 I found the issue, as it is in kRYstall9-FastSwitchPlayerViewInRadar end, and created a pull request with a fix. I already contacted kRYstall9 to let him know and to see what is he thinking about it.

I will close the issue when it will be in their next version

ustaalon commented 8 months ago

Hey @TecnoLuis99! Issue fixed and there is a new release you can download of kRYstall9-FastSwitchPlayerViewInRadar

You now can play both mods without any issues 🙌🤞