peterhaneve / ONIMods

Peter Han's mods for Oxygen Not Included
Other
308 stars 64 forks source link

crashes in pip plant overlay #157

Closed hamsuptommywong closed 2 years ago

hamsuptommywong commented 2 years ago

Expected Behavior

it should work

using the public testing branch

Current Behavior

crashes when I open a world

Mod Versions

Steps to Reproduce

  1. opens a world with this mod installed

Output Log

Error in OverlaysBarHolder(Clone).OverlayMenu.OnPrefabInit System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: 268 is not bound in GameInputBindings at GameUtil.ActionToBinding (Action action) [0x00050] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\game\GameUtil.cs:285 at GameUtil.GetActionString (Action action) [0x0001c] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\game\GameUtil.cs:1741 at GameUtil.ReplaceHotkeyString (System.String template, Action action) [0x00001] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\game\GameUtil.cs:1626 at OverlayMenu+OverlayToggleInfo..ctor (System.String text, System.String icon_name, HashedString sim_view, System.String required_tech_item, Action hotKey, System.String tooltip, System.String tooltip_header) [0x00000] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\screens\OverlayMenu.cs:42 at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <695d1cc93cca45069c528c15c9fdd749>:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at PeterHan.PipPlantOverlay.PipPlantOverlayPatches.CreateOverlayInfo (System.String text, System.String icon_name, HashedString sim_view, Action openKey, System.String tooltip) [0x000ce] in <1fa63e0b957c43d8b8bf3b54c75ea539>:0 at PeterHan.PipPlantOverlay.PipPlantOverlayPatches+OverlayMenu_InitializeToggles_Patch.Postfix (System.Collections.Generic.ICollection`1[T] ___overlayToggleInfos) [0x00038] in <1fa63e0b957c43d8b8bf3b54c75ea539>:0 at (wrapper dynamic-method) OverlayMenu.OverlayMenu.InitializeToggles_Patch1(OverlayMenu) at OverlayMenu.OnPrefabInit () [0x0000e] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\scripts\screens\OverlayMenu.cs:59 at KMonoBehaviour.InitializeComponent () [0x0007f] in C:\jenkins_workspace\workspace\Preview_Simgame_Windows\game\Assets\Plugins\Klei\util\KMonoBehaviour.cs:132

UnityEngine.Debug:LogError (object,UnityEngine.Object) Debug:LogError (object,UnityEngine.Object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Debug.cs:152) DebugUtil:LogErrorArgs (UnityEngine.Object,object[]) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:191) DebugUtil:LogException (UnityEngine.Object,string,System.Exception) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/DebugUtil.cs:201) KMonoBehaviour:InitializeComponent () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:138) KMonoBehaviour:Awake () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:44) UnityEngine.Object:Instantiate (UnityEngine.GameObject,UnityEngine.Transform,bool) Util:KInstantiateUI (UnityEngine.GameObject,UnityEngine.GameObject,bool) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/Util.cs:280) ScheduledUIInstantiation:InstantiateElements (object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/ui/ScheduledUIInstantiation.cs:50) EventSystem:Trigger (UnityEngine.GameObject,int,object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/EventSystem.cs:161) KMonoBehaviour:Trigger (int,object) (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:411) Game:OnSpawn () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/scripts/game/Game.cs:615) KMonoBehaviour:Spawn () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:285) KMonoBehaviour:Start () (at C:/jenkins_workspace/workspace/Preview_Simgame_Windows/game/Assets/Plugins/Klei/util/KMonoBehaviour.cs:243)

Build: U37-485090-SD

peterhaneve commented 2 years ago

There is currently no support for mods on the Public Testing branch, as it changes on a daily basis. If this mod is important to your colony, consider staying on the stable release branch.