Does not work for me either. Unity Mod Manager shows a red dot and "!!!" (Needs restart) every time I launch the game. Uninstall, reinstall, never works for me.
I've uploaded a new version (1.1.1) that may solve this. I haven't been able to reproduce this issue on my machine, but I've added some more checks into the code that might fix it
I've tried the new version, but still get the same error as it's trying to load CheatTools.CheatTools.Init. Looks like it's just a typo in your code, hopefully this can be resolved quickly.
Trying several different hotkey combos, including the one given on this page while in-game and getting not a single trace of the mod, using UMM and running 1.1.1 ? successfully loaded and it's the only mod.
Please, you'll have to give me more details on when/how this error occurs for me to be able to diagnose it. Make sure you have correctly installed Unity Mod Manager and Harmony and have the matching version of this mod
When i start the game using UMM it gives me the following error.
[CheatTools] Version '1.1.0'. Loading. Non platform assembly: D:\SteamLibrary\steamapps\common\Planetbase\Mods\CheatTools\CheatTools.dll.55822.cache (this message is harmless) [CheatTools] [Error] Error trying to call 'CheatTools.CheatTools.Init'. [CheatTools] [Exception] TargetInvocationException - Exception has been thrown by the target of an invocation. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object at PlanetbaseModUtilities.CoreUtils.GetMember[Dictionary`2] (System.String memberName, System.Type containingType) [0x00000] in <filename unknown>:0 at PlanetbaseModUtilities.StringUtils.get_GlobalStrings () [0x00000] in <filename unknown>:0 at CheatTools.CheatTools.OnInitialized () [0x00000] in <filename unknown>:0 at PlanetbaseModUtilities.ModBase.InitializeMod (PlanetbaseModUtilities.ModBase mod, UnityModManagerNet.ModEntry modEntry, System.String modName) [0x00000] in <filename unknown>:0 at CheatTools.CheatTools.Init (UnityModManagerNet.ModEntry modEntry) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 at UnityModManagerNet.UnityModManager+ModEntry.Invoke (System.String namespaceClassnameMethodname, System.Object& result, System.Object[] param, System.Type[] types) [0x00000] in <filename unknown>:0 [CheatTools] Not loaded. [CheatTools] Loading time 0.04 s. [Manager] FINISH. SUCCESSFUL LOADED 0/1 MODS.
14 comments
Again, add Control to the launch activation. Using the UMM.
I haven't been able to reproduce this issue on my machine, but I've added some more checks into the code that might fix it
anyone know how to fix this error?
Make sure you have correctly installed Unity Mod Manager and Harmony and have the matching version of this mod
[CheatTools] Version '1.1.0'. Loading.
Non platform assembly: D:\SteamLibrary\steamapps\common\Planetbase\Mods\CheatTools\CheatTools.dll.55822.cache (this message is harmless)
[CheatTools] [Error] Error trying to call 'CheatTools.CheatTools.Init'.
[CheatTools] [Exception] TargetInvocationException - Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
at PlanetbaseModUtilities.CoreUtils.GetMember[Dictionary`2] (System.String memberName, System.Type containingType) [0x00000] in <filename unknown>:0
at PlanetbaseModUtilities.StringUtils.get_GlobalStrings () [0x00000] in <filename unknown>:0
at CheatTools.CheatTools.OnInitialized () [0x00000] in <filename unknown>:0
at PlanetbaseModUtilities.ModBase.InitializeMod (PlanetbaseModUtilities.ModBase mod, UnityModManagerNet.ModEntry modEntry, System.String modName) [0x00000] in <filename unknown>:0
at CheatTools.CheatTools.Init (UnityModManagerNet.ModEntry modEntry) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at UnityModManagerNet.UnityModManager+ModEntry.Invoke (System.String namespaceClassnameMethodname, System.Object& result, System.Object[] param, System.Type[] types) [0x00000] in <filename unknown>:0
[CheatTools] Not loaded.
[CheatTools] Loading time 0.04 s.
[Manager] FINISH. SUCCESSFUL LOADED 0/1 MODS.
Any way I can fix this?