aedenthorn / ValheimMods

Other
145 stars 102 forks source link

[RecipeCustomization] Terminal doesn't work properly when this mod is used #100

Closed x0rsw1tch closed 9 months ago

x0rsw1tch commented 9 months ago

Firstly, just wanted to say that your mods are quite useful 😄

When using the RecipeCustomization mod, the console/terminal no longer works properly. When entering a command, an error is thrown, and a stack trace is shown:

[Error  : Unity Log] MissingFieldException: Field not found: UnityEngine.UI.InputField .Terminal.m_input Due to: Could not find field in class
Stack trace:
(wrapper dynamic-method) Terminal.DMD<Terminal::InputText>(Terminal)
Terminal.SendInput () (at <0c7c9e9f999940deaf2bdbbf6e7b2314>:0)
UnityEngine.Events.InvokableCall.Invoke () (at <50b18efe22344b9eb3b7d77b08ea287f>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <50b18efe22344b9eb3b7d77b08ea287f>:0)
Fishlabs.GuiInputField.onInputSubmit (System.String text) (at <4f1e9b79544c49cd97d05576c08e91ff>:0)
UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at <50b18efe22344b9eb3b7d77b08ea287f>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <50b18efe22344b9eb3b7d77b08ea287f>:0)
TMPro.TMP_InputField.SendOnSubmit () (at <df34667885654f3f876bb0a72820b168>:0)
TMPro.TMP_InputField.OnUpdateSelected (UnityEngine.EventSystems.BaseEventData eventData) (at <df34667885654f3f876bb0a72820b168>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IUpdateSelectedHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <042da27c9af642978a8a5138113c4eed>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <042da27c9af642978a8a5138113c4eed>:0)
UnityEngine.EventSystems.EventSystem:Update()

The mod itself works fine in terms of modifying recipe component, but am unable to use the terminal while the mod is running.

aedenthorn commented 9 months ago

you're likely not using the latest version of the mod

x0rsw1tch commented 9 months ago

Yup, you're right! Started up a new game after some months and updated all my mods. Thought I coped over the updated version of this mod, when it turns out I just copied over the old version thinking it was the new one 😅

Sorry about that!