RimWorld

RimWorld

Combat Extended [1.4]
Admonitor 22 Apr, 2022 @ 4:50am
Breaks the game
I disabled all mods except Harmony and CE and it still persists. When I load the planet, no Villages will be generated and if Itry to start the colony, a world generation error occurs. For me the mod is unusable at this point.

This is the error message I get

Error while instantiating a mod of type CombatExtended.Controller: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Boolean CombatExtended.HarmonyCE.Harmony_PawnRenderer_DrawHeadHair::Prepare() ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'CombatExtended.HarmonyCE.Harmony_PawnRenderer' threw an exception. ---> System.TypeInitializationException: The type initializer for 'HarmonyLib.FileLog' threw an exception. ---> System.UnauthorizedAccessException: Access to the path "D:\" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <eae584ce26bc40229c1b1aa476bfa589>:0
at HarmonyLib.FileLog..cctor () [0x00041] in <212c5fc0752a439c852373c986c00088>:0
--- End of inner exception stack trace ---
at HarmonyLib.AccessTools.TypeByName (System.String name) [0x00061] in <212c5fc0752a439c852373c986c00088>:0
at HarmonyLib.Tools.TypColonName (System.String typeColonName) [0x0003e] in <212c5fc0752a439c852373c986c00088>:0
at HarmonyLib.AccessTools.Method (System.String typeColonName, System.Type[] parameters, System.Type[] generics) [0x00000] in <212c5fc0752a439c852373c986c00088>:0
at CombatExtended.HarmonyCE.Harmony_PawnRenderer..cctor () [0x00000] in <28f0c17f74424486a08f7a835eb23d49>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <eae584ce26bc40229c1b1aa476bfa589>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at HarmonyLib.PatchClassProcessor.RunMethod[S,T] (T defaultIfNotExisting, T defaultIfFailing, System.Func`2[T,TResult] failOnResult, System.Object[] parameters) [0x000e2] in <212c5fc0752a439c852373c986c00088>:0
--- End of inner exception stack trace ---
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x00127] in <212c5fc0752a439c852373c986c00088>:0
at HarmonyLib.PatchClassProcessor.RunMethod[S,T] (T defaultIfNotExisting, T defaultIfFailing, System.Func`2[T,TResult] failOnResult, System.Object[] parameters) [0x00121] in <212c5fc0752a439c852373c986c00088>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00015] in <212c5fc0752a439c852373c986c00088>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <212c5fc0752a439c852373c986c00088>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <212c5fc0752a439c852373c986c00088>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <212c5fc0752a439c852373c986c00088>:0
at CombatExtended.HarmonyCE.HarmonyBase.InitPatches () [0x0000b] in <28f0c17f74424486a08f7a835eb23d49>:0
at CombatExtended.Controller..ctor (Verse.ModContentPack content) [0x00020] in <28f0c17f74424486a08f7a835eb23d49>:0
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 <eae584ce26bc40229c1b1aa476bfa589>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <eae584ce26bc40229c1b1aa476bfa589>: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 <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x00213] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00095] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.LoadedModManager.CreateModClasses () [0x00076] in <99518a644a3e4a7ea3fde566568df84a>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.LoadedModManager:CreateModClasses ()
Verse.LoadedModManager:LoadAllActiveMods ()
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_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)
Last edited by Admonitor; 22 Apr, 2022 @ 5:44am