asquared31415 / ONI-mods

6 stars 6 forks source link

MissingMethodException Crash when double-clicking the name of a rocket #24

Closed anpilley closed 2 years ago

anpilley commented 2 years ago

I got a crash when trying to rename a rocket while it's in flight.

The log file's attached, but the trace in the log was:

MissingMethodException: TMPro.TMP_InputField KInputField.get_field()
  at RenameAsteroids.WorldSelector_SpawnToggles_Patch+<>c__DisplayClass0_0.<Postfix>b__0 () [0x00000] in <06927263747e433fa725204bee073585>:0 
  at MultiToggle.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00041] in <1c7e9ccb4aa844e2be4538990aabf98e>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00007] in <0b23117e1c7442f8b1842fe2f3bf6fcb>:0 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x0006c] in <0b23117e1c7442f8b1842fe2f3bf6fcb>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ReleaseMouse(PointerEventData, GameObject)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent()
UnityEngine.EventSystems.StandaloneInputModule:Process()
UnityEngine.EventSystems.EventSystem:Update()

Player.log

asquared31415 commented 2 years ago

Please make sure that you are using the 2.0.1 version. If you are not, either unsubscribe or resubscribe, or if Steam still refuses to update the mod, consider using the "Mod Updater" mod to force it to.

anpilley commented 2 years ago

I'm already using Mod Updater, and Rename Asteroid is at v2.0.1 already.

asquared31415 commented 2 years ago

That's very odd, I can't reproduce using the same version of the game and the mod. I also just checked the latest file from Steam and that error can't happen. Perhaps something is extremely wrong with the files and it didn't update properly, can you shift click the icon from Mod Updater to try and force it to re-download?

anpilley commented 2 years ago

sigh Steam/ONI's wonky update mechanism strikes again. Forcing the update got a newer version. It's working now.