RimWorld

RimWorld

Animals Logic
No mod options / red error on start
Im seeing this red error on startup, maybe related to no mod options:

Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Null method for net.quicksilverfox.rimworld.mod.animalslogic
[Ref F27C82B]
at HarmonyLib.PatchProcessor.Patch () [0x0001d] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x0002a] in <e53399289d9b419d83f9f5b02c5cf609>:0
at AnimalsLogic.ForgetMeNot.Patch () [0x00049] in <247c90684133415997f5d2aaf05e0067>:0
AnimalsLogic.AnimalsLogic..ctor(ModContentPack content)
(wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <51fded79cd284d4d911c5949aff4cb21>:0
--- End of inner exception stack trace ---
[Ref 2B63AA93] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.LoadedModManager:CreateModClasses ()
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__10_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()


Mod list:

https://rentry.co/k6zhconx
< >
Showing 1-4 of 4 comments
ignis  [developer] Oct 6 @ 2:30pm 
Are you sure you are using the last version of the mod?
Hi! Thanks for the response, I checked for updates in rimsort without a result for this mod but then redownloaded it anyways, issue still occurs. :(
I checked my main game and it wasnt updated. Big eureka moment, its there now, thanks!
Shinzou Nov 21 @ 7:51am 
Also ran into the missing options issue, but only since i purged my modlist from all HugsLib mods (and HugsLib itself obviously). It worked before i removed HugsLib with identical modList. The error i am getting points to the missing HugsLib...:

Error while instantiating a mod of type AnimalsLogic.AnimalsLogic: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
Could not resolve type with token 0100001c from typeref (expected class 'HugsLib.Settings.SettingHandleConvertible' in assembly 'HugsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:HugsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:HugsLib.Settings.SettingHandleConvertible member:(null)
Could not resolve type with token 01000023 from typeref (expected class 'HugsLib.ModBase' in assembly 'HugsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:HugsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:HugsLib.ModBase member:(null)
[Ref 48E3E894]
(wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at AnimalsLogic.NoBoomSlaughter+<>c.<Patch>b__0_0 (System.Reflection.Assembly a) [0x00000] in <247c90684133415997f5d2aaf05e0067>:0
at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00051] in <1f993cbf88314b1baa1e10ca917bdc64>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in <1f993cbf88314b1baa1e10ca917bdc64>:0
at AnimalsLogic.NoBoomSlaughter.Patch () [0x00259] in <247c90684133415997f5d2aaf05e0067>:0
AnimalsLogic.AnimalsLogic..ctor(ModContentPack content)
(wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <51fded79cd284d4d911c5949aff4cb21>:0
--- End of inner exception stack trace ---
< >
Showing 1-4 of 4 comments
Per page: 1530 50