Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when selecting critter filter on critter drop off building #191

Closed
tedens opened this issue Jul 31, 2023 · 1 comment
Closed

Crash when selecting critter filter on critter drop off building #191

tedens opened this issue Jul 31, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tedens
Copy link

tedens commented Jul 31, 2023

I specifically selected various types of hatches.

NullReferenceException

MultiplayerMod.Multiplayer.Objects.ComponentReferenceExtensions.GetReference (KMonoBehaviour component) (at :0)
MultiplayerMod.Game.Mechanics.Objects.ObjectEvents+<>c__DisplayClass5_0.b__0 () (at :0)
MultiplayerMod.Core.Patch.PatchControl.RunIfEnabled (System.Action action) (at :0)
MultiplayerMod.Game.Mechanics.Objects.ObjectEvents.ObjectEventsPostfix (KMonoBehaviour __instance, System.Reflection.MethodBase __originalMethod, System.Object[] __args) (at :0)
(wrapper dynamic-method) FixedCapturePoint+Instance.FixedCapturePoint+Instance.ICheckboxControl.SetCheckboxValue_Patch1(FixedCapturePoint/Instance,bool)
SingleCheckboxSideScreen.OnValueChanged (System.Boolean value) (at :0)
Util.Signal[T] (System.Action`1[T] action, T parameter) (at <0f4b778ef79c497e89f6ee18303840cf>:0)
KToggle.OnValueChanged (System.Boolean value) (at <0f4b778ef79c497e89f6ee18303840cf>:0)
KToggle.set_isOn (System.Boolean value) (at <0f4b778ef79c497e89f6ee18303840cf>:0)
SingleCheckboxSideScreen.SetTarget (UnityEngine.GameObject target) (at :0)
DetailsScreen.Refresh (UnityEngine.GameObject go) (at :0)
RootMenu.Refresh () (at :0)
RootMenu.OnSelectObject (System.Object data) (at :0)
EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) (at <0f4b778ef79c497e89f6ee18303840cf>:0)
KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) (at <0f4b778ef79c497e89f6ee18303840cf>:0)
SelectTool.Select (KSelectable new_selected, System.Boolean skipSound) (at :0)
SelectTool.OnLeftClickDown (UnityEngine.Vector3 cursor_pos) (at :0)
PlayerController.OnKeyDown (KButtonEvent e) (at :0)
KInputHandler.HandleKeyDown (KButtonEvent e) (at <0f4b778ef79c497e89f6ee18303840cf>:0)
KInputHandler.HandleKeyDown (KButtonEvent e) (at <0f4b778ef79c497e89f6ee18303840cf>:0)
KInputHandler.HandleEvent (KInputEvent e) (at <0f4b778ef79c497e89f6ee18303840cf>:0)
KInputController.Dispatch () (at <0f4b778ef79c497e89f6ee18303840cf>:0)
KInputManager.Dispatch () (at <0f4b778ef79c497e89f6ee18303840cf>:0)
KInputManager.Update () (at <0f4b778ef79c497e89f6ee18303840cf>:0)
GameInputManager.Update () (at <0f4b778ef79c497e89f6ee18303840cf>:0)
Global.Update () (at :0)

Build: U47-562984-V

@zuev93 zuev93 added the bug Something isn't working label Jul 31, 2023
@zuev93 zuev93 self-assigned this Jul 31, 2023
@zuev93 zuev93 added this to the [Alpha] Bare minimum milestone Jul 31, 2023
zuev93 added a commit that referenced this issue Jul 31, 2023
NPE was caused by some events coming from non KMonoBehaviour - StateMachine.Instance.

Add reference mechanism for the type as well.
zuev93 added a commit that referenced this issue Jul 31, 2023
NPE was caused by some events coming from non KMonoBehaviour - StateMachine.Instance.

Add reference mechanism for the type as well.
zuev93 added a commit that referenced this issue Jul 31, 2023
NPE was caused by some events coming from non KMonoBehaviour - StateMachine.Instance.

Add reference mechanism for the type as well.
@zuev93 zuev93 moved this to Done in Multiplayer Mod Jul 31, 2023
@zuev93
Copy link
Member

zuev93 commented Jul 31, 2023

Thanks for the finding!
Fix is merged and will be released in the next update.

@zuev93 zuev93 closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants