I had a problem with console commands not working after the Hildr update. I was able to isolate it down to this MOD.
Steps to replicate. Enable mod in Vortex (I have others and can post a list if you think it's a mod v mod conflict) Start game Press F5 type "devcommands"
expected behavior - an answer
what happens - console shows error and the command is not processed.
[Info : Unity Log] 08/29/2023 23:53:32: Button pressed Back frame:581
Works great, but I'm getting an error message in the logs nowadays:
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object Stack trace: PreventBabySlaughter.BepInExPlugin+Character_Damage_Patch.Prefix (Character __instance, HitData hit) (at <ea7144186e4b4826bc449c39f3acc245>:0) (wrapper dynamic-method) Character.DMD<Character::Damage>(Character,HitData) Aoe.OnHit (UnityEngine.Collider collider, UnityEngine.Vector3 hitPoint) (at <35c0f7aa1999477788815a7bf78200d7>:0) Aoe.OnTriggerStay (UnityEngine.Collider collider) (at <35c0f7aa1999477788815a7bf78200d7>:0) Not only that, I was not using the butcher knife on any animals at the time, I was equipped with my build hammer, repairing a piece of glass.
7 comments
Steps to replicate.
Enable mod in Vortex (I have others and can post a list if you think it's a mod v mod conflict)
Start game
Press F5
type "devcommands"
expected behavior - an answer
what happens - console shows error and the command is not processed.
[Info : Unity Log] 08/29/2023 23:53:32: Button pressed Back frame:581
[Error : Unity Log] MissingFieldException: Field 'Terminal.m_input' not found.
Stack trace:
(wrapper dynamic-method) Terminal.DMD<Terminal::InputText>(Terminal)
Terminal.SendInput () (at <447b19510f604ca3807cd6cce3a7c1ef>:0)
Console.SendInput () (at <447b19510f604ca3807cd6cce3a7c1ef>:0)
UnityEngine.Events.InvokableCall.Invoke () (at <80fe1a4e36fe44618284312cb721a597>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <80fe1a4e36fe44618284312cb721a597>:0)
Fishlabs.GuiInputField.onInputSubmit (System.String text) (at <abc2973239274336a7c65e00c9f4ab0e>:0)
UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at <80fe1a4e36fe44618284312cb721a597>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <80fe1a4e36fe44618284312cb721a597>:0)
TMPro.TMP_InputField.SendOnSubmit () (at <c3806d8b402548cebcdac84224b2a2a9>:0)
TMPro.TMP_InputField.OnUpdateSelected (UnityEngine.EventSystems.BaseEventData eventData) (at <c3806d8b402548cebcdac84224b2a2a9>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IUpdateSelectedHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <e97aac8d17514bea83fadfd039e9187a>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <e97aac8d17514bea83fadfd039e9187a>:0)
UnityEngine.EventSystems.EventSystem:Update()
[Error : Unity Log] MissingFieldException: Field 'Terminal.m_input' not found.
Stack trace:
(wrapper dynamic-method) Terminal.DMD<Terminal::InputText>(Terminal)
Terminal.SendInput () (at <447b19510f604ca3807cd6cce3a7c1ef>:0)
Console.SendInput () (at <447b19510f604ca3807cd6cce3a7c1ef>:0)
UnityEngine.Events.InvokableCall.Invoke () (at <80fe1a4e36fe44618284312cb721a597>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <80fe1a4e36fe44618284312cb721a597>:0)
Fishlabs.GuiInputField.onInputSubmit (System.String text) (at <abc2973239274336a7c65e00c9f4ab0e>:0)
UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at <80fe1a4e36fe44618284312cb721a597>:0)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <80fe1a4e36fe44618284312cb721a597>:0)
TMPro.TMP_InputField.SendOnSubmit () (at <c3806d8b402548cebcdac84224b2a2a9>:0)
TMPro.TMP_InputField.OnSubmit (UnityEngine.EventSystems.BaseEventData eventData) (at <c3806d8b402548cebcdac84224b2a2a9>:0)
Fishlabs.GuiInputField.OnSubmit (UnityEngine.EventSystems.BaseEventData eventData) (at <abc2973239274336a7c65e00c9f4ab0e>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.ISubmitHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <e97aac8d17514bea83fadfd039e9187a>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <e97aac8d17514bea83fadfd039e9187a>:0)
UnityEngine.EventSystems.EventSystem:Update()
[Info : Unity Log] 08/29/2023 23:53:38: show character selection
And oh gosh that was super fast turnaround!
[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
PreventBabySlaughter.BepInExPlugin+Character_Damage_Patch.Prefix (Character __instance, HitData hit) (at <ea7144186e4b4826bc449c39f3acc245>:0)
(wrapper dynamic-method) Character.DMD<Character::Damage>(Character,HitData)
Aoe.OnHit (UnityEngine.Collider collider, UnityEngine.Vector3 hitPoint) (at <35c0f7aa1999477788815a7bf78200d7>:0)
Aoe.OnTriggerStay (UnityEngine.Collider collider) (at <35c0f7aa1999477788815a7bf78200d7>:0)
Not only that, I was not using the butcher knife on any animals at the time, I was equipped with my build hammer, repairing a piece of glass.
Anakin