vegapnk / RJW-Genes

Rimworld Biotech Genes related to RJW
MIT License
30 stars 38 forks source link

Broken world gen and unusable genes. #205

Open MasterZak5 opened 2 days ago

MasterZak5 commented 2 days ago

Description

When the mod is installed, world generation fails significantly and only 2 faction bases spawn (1 from each of the 2 factions, the factions are consistent unless a mod adds new ones.). When creating xenotypes, the majority of genes do not apply to the pawns. Fertilin genes still work. When applying a xenotype that has the broken genes saved in them, the character selection stage breaks and the world needs to be regenerated to make it functional again.

Errors on launch:

Exception loading list element Verse.DefModExtension from XML: System.TypeLoadException: Could not load type of field 'RJW_Genes.GenitaliaFluidChangeExtension:penisFluidReplacement' (0) due to: Could not resolve type with token 01000057 (from typeref, class/assembly rjw.SexFluidDef, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null) assembly:RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null type:rjw.SexFluidDef member:(null) signature:<none>
[Ref A0449962]
 at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00018] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00020] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Activator.CreateInstance (System.Type type) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at Verse.DirectXmlToObject.ObjectFromXml[T] (System.Xml.XmlNode xmlRoot, System.Boolean doPostLoad) [0x0040b] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.DirectXmlToObject.ListFromXml[T] (System.Xml.XmlNode listRootNode) [0x0011b] in <2a40c3593b334f29ac3cb3d32d652351>:0 
XML:
<modExtensions><li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension"><backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes><backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes></li><li Class="RJW_Genes.GenitaliaFluidChangeExtension"><penisFluidReplacement>InsectSpunk</penisFluidReplacement><vaginaFluidReplacement>InsectSpunk</vaginaFluidReplacement></li></modExtensions>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.DirectXmlToObject:ListFromXml<Verse.DefModExtension> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ListFromXmlReflection<Verse.DefModExtension> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ObjectFromXml<System.Collections.Generic.List`1<Verse.DefModExtension>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<System.Collections.Generic.List`1<Verse.DefModExtension>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXml<Verse.GeneDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<Verse.GeneDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlLoader:DefFromNode (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>,bool)
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_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 ()
Exception loading list element Verse.DefModExtension from XML: System.TypeLoadException: Could not load type of field 'RJW_Genes.GenitaliaFluidChangeExtension:penisFluidReplacement' (0) due to: Could not resolve type with token 01000057 (from typeref, class/assembly rjw.SexFluidDef, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null) assembly:RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null type:rjw.SexFluidDef member:(null) signature:<none>
[Ref A0449962] Duplicate stacktrace, see ref for original
XML:
<modExtensions><li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension"><backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes><backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes></li><li Class="RJW_Genes.GenitaliaFluidChangeExtension"><breastFluidReplacement>Cum</breastFluidReplacement></li></modExtensions>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.DirectXmlToObject:ListFromXml<Verse.DefModExtension> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ListFromXmlReflection<Verse.DefModExtension> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ObjectFromXml<System.Collections.Generic.List`1<Verse.DefModExtension>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<System.Collections.Generic.List`1<Verse.DefModExtension>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXml<Verse.GeneDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<Verse.GeneDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlLoader:DefFromNode (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>,bool)
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_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 ()
Exception loading list element Verse.DefModExtension from XML: System.TypeLoadException: Could not load type of field 'RJW_Genes.GenitaliaFluidChangeExtension:penisFluidReplacement' (0) due to: Could not resolve type with token 01000057 (from typeref, class/assembly rjw.SexFluidDef, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null) assembly:RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null type:rjw.SexFluidDef member:(null) signature:<none>
[Ref A0449962] Duplicate stacktrace, see ref for original
XML:
<modExtensions><li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension"><backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes><backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes></li><li Class="RJW_Genes.GenitaliaFluidChangeExtension"><penisFluidReplacement>Milk</penisFluidReplacement></li></modExtensions>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.DirectXmlToObject:ListFromXml<Verse.DefModExtension> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ListFromXmlReflection<Verse.DefModExtension> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ObjectFromXml<System.Collections.Generic.List`1<Verse.DefModExtension>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<System.Collections.Generic.List`1<Verse.DefModExtension>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXml<Verse.GeneDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<Verse.GeneDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlLoader:DefFromNode (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>,bool)
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_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 ()

(v this one for each male genitalia type)

Exception loading list element Verse.DefModExtension from XML: System.TypeLoadException: Could not load type of field 'RJW_Genes.GenitaliaTypeExtension:penis' (0) due to: Could not resolve type with token 0100008b (from typeref, class/assembly rjw.HediffDef_SexPart, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null) assembly:RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null type:rjw.HediffDef_SexPart member:(null) signature:<none>
[Ref A0449962] Duplicate stacktrace, see ref for original
XML:
<modExtensions><li MayRequire="OskarPotocki.VanillaFactionsExpanded.Core" Class="VanillaGenesExpanded.GeneExtension"><backgroundPathEndogenes>Genes/Icons/RJW_Genes_Endogene_Background</backgroundPathEndogenes><backgroundPathXenogenes>Genes/Icons/RJW_Genes_Xenogene_Background</backgroundPathXenogenes></li><li Class="RJW_Genes.GenitaliaTypeExtension"><penis>HorsePenis</penis><vagina>HorseVagina</vagina><anus>GenericAnus</anus></li></modExtensions>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.DirectXmlToObject:ListFromXml<Verse.DefModExtension> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ListFromXmlReflection<Verse.DefModExtension> (System.Xml.XmlNode)
Verse.DirectXmlToObject:ObjectFromXml<System.Collections.Generic.List`1<Verse.DefModExtension>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<System.Collections.Generic.List`1<Verse.DefModExtension>> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXml<Verse.GeneDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlToObject:ObjectFromXmlReflection<Verse.GeneDef> (System.Xml.XmlNode,bool)
Verse.DirectXmlLoader:DefFromNode (System.Xml.XmlNode,Verse.LoadableXmlAsset)
Verse.LoadedModManager:ParseAndProcessXML (System.Xml.XmlDocument,System.Collections.Generic.Dictionary`2<System.Xml.XmlNode, Verse.LoadableXmlAsset>,bool)
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_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 ()
Error in static constructor of RJW_Genes.HarmonyInit: System.TypeInitializationException: The type initializer for 'RJW_Genes.HarmonyInit' threw an exception. ---> System.TypeLoadException: Could not resolve type with token 01000057 (from typeref, class/assembly rjw.SexFluidDef, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null)
[Ref D0826DE2]
 at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
 at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Reflection.MonoMethod.GetPseudoCustomAttributes () [0x00002] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.MonoCustomAttrs.GetPseudoCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType) [0x0000a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x0001f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) [0x00037] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Boolean inherit) [0x00024] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Reflection.MonoMethod.GetCustomAttributes (System.Boolean inherit) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at HarmonyLib.PatchTools+<>c__DisplayClass11_0.<GetPatchMethod>b__0 (System.Reflection.MethodInfo m) [0x00000] in <abec11463bc04855a5322a0a868aeb22>:0 
 at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
 at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
 at HarmonyLib.PatchTools.GetPatchMethod (System.Type patchType, System.String attributeName) [0x00018] in <abec11463bc04855a5322a0a868aeb22>:0 
 at <0x2389c97daf0 + 0x00262> <unknown method>
 at HarmonyLib.Harmony.CreateClassProcessor (System.Type type) [0x00000] in <abec11463bc04855a5322a0a868aeb22>:0 
 at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00000] in <abec11463bc04855a5322a0a868aeb22>:0 
 at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <abec11463bc04855a5322a0a868aeb22>:0 
 at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <abec11463bc04855a5322a0a868aeb22>:0 
 at HarmonyLib.Harmony.PatchAll () [0x0001d] in <abec11463bc04855a5322a0a868aeb22>:0 
 at <0x2392817cf10 + 0x0010a> <unknown method>
   --- End of inner exception stack trace ---
[Ref 405BE631]
 at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
 at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00025] in <2a40c3593b334f29ac3cb3d32d652351>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.StaticConstructorOnStartupUtility:CallAll ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_4 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()
Could not execute post-long-event action. Exception: System.AggregateException: One or more errors occurred. ---> System.TypeLoadException: Could not load type of field 'RJW_Genes.GenitaliaFluidChangeExtension:penisFluidReplacement' (0) due to: Could not resolve type with token 01000057 (from typeref, class/assembly rjw.SexFluidDef, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null) assembly:RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null type:rjw.SexFluidDef member:(null) signature:<none>
[Ref 2885FBEB]
 at (wrapper managed-to-native) System.RuntimeType.GetFields_native(System.RuntimeType,intptr,System.Reflection.BindingFlags)
 at System.RuntimeType.GetFields_internal (System.String name, System.Reflection.BindingFlags bindingAttr, System.RuntimeType reflectedType) [0x0001a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.RuntimeType.GetFieldCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Boolean allowPrefixLookup) [0x0000f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.RuntimeType.GetFields (System.Reflection.BindingFlags bindingAttr) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at Verse.StaticConstructorOnStartupUtility+<>c__DisplayClass2_0.<ReportProbablyMissingAttributes>b__0 (System.Type t) [0x00009] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at System.Threading.Tasks.Parallel+<>c__DisplayClass31_0`2[TSource,TLocal].<ForEachWorker>b__0 (System.Int32 i) [0x00012] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Parallel+<>c__DisplayClass17_0`1[TLocal].<ForWorker>b__1 () [0x0020b] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Task.InnerInvokeWithArg (System.Threading.Tasks.Task childTask) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Task+<>c__DisplayClass178_0.<ExecuteSelfReplicating>b__0 (System.Object <p0>) [0x00086] in <eae584ce26bc40229c1b1aa476bfa589>:0 
   --- End of inner exception stack trace ---
[Ref 1EA78FBF]
 at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Task.Wait () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Parallel.ForWorker[TLocal] (System.Int32 fromInclusive, System.Int32 toExclusive, System.Threading.Tasks.ParallelOptions parallelOptions, System.Action`1[T] body, System.Action`2[T1,T2] bodyWithState, System.Func`4[T1,T2,T3,TResult] bodyWithLocal, System.Func`1[TResult] localInit, System.Action`1[T] localFinally) [0x001ab] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal] (System.Collections.Generic.IList`1[T] list, System.Threading.Tasks.ParallelOptions parallelOptions, System.Action`1[T] body, System.Action`2[T1,T2] bodyWithState, System.Action`3[T1,T2,T3] bodyWithStateAndIndex, System.Func`4[T1,T2,T3,TResult] bodyWithStateAndLocal, System.Func`5[T1,T2,T3,T4,TResult] bodyWithEverything, System.Func`1[TResult] localInit, System.Action`1[T] localFinally) [0x00047] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal] (System.Collections.Generic.IEnumerable`1[T] source, System.Threading.Tasks.ParallelOptions parallelOptions, System.Action`1[T] body, System.Action`2[T1,T2] bodyWithState, System.Action`3[T1,T2,T3] bodyWithStateAndIndex, System.Func`4[T1,T2,T3,TResult] bodyWithStateAndLocal, System.Func`5[T1,T2,T3,T4,TResult] bodyWithEverything, System.Func`1[TResult] localInit, System.Action`1[T] localFinally) [0x00044] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at System.Threading.Tasks.Parallel.ForEach[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Action`1[T] body) [0x0001c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at Verse.StaticConstructorOnStartupUtility.ReportProbablyMissingAttributes () [0x00013] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PlayDataLoader+<>c.<DoPlayLoad>b__4_4 () [0x00016] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.LongEventHandler.ExecuteToExecuteWhenFinished () [0x0007c] in <2a40c3593b334f29ac3cb3d32d652351>:0 
---> (Inner Exception #0) System.TypeLoadException: Could not load type of field 'RJW_Genes.GenitaliaFluidChangeExtension:penisFluidReplacement' (0) due to: Could not resolve type with token 01000057 (from typeref, class/assembly rjw.SexFluidDef, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null) assembly:RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null type:rjw.SexFluidDef member:(null) signature:<none>
[Ref 2885FBEB] Duplicate stacktrace, see ref for original<---

UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()

Errors on World Generation:

Error while generating pawn. Rethrowing. Exception: System.TypeLoadException: Could not resolve type with token 01000062 (from typeref, class/assembly rjw.ISexPartHediff, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null)
[Ref 7D2D4A94]
 at RJW_Genes.Gene_ChangeFluidAmount.PostMake () [0x00012] in <16c85846e7bb4e9d948e5890854edb2e>:0 
 at RimWorld.GeneMaker.MakeGene (Verse.GeneDef def, Verse.Pawn pawn) [0x00029] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.Pawn_GeneTracker.AddGene (Verse.GeneDef geneDef, System.Boolean xenogene) [0x0001a] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.Pawn_GeneTracker.SetXenotype (RimWorld.XenotypeDef xenotype) [0x0004c] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PawnGenerator.GenerateGenes (Verse.Pawn pawn, RimWorld.XenotypeDef xenotype, Verse.PawnGenerationRequest request) [0x00090] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PawnGenerator.TryGenerateNewPawnInternal (Verse.PawnGenerationRequest& request, System.String& error, System.Boolean ignoreScenarioRequirements, System.Boolean ignoreValidator) [0x00409] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PawnGenerator.GenerateNewPawnInternal (Verse.PawnGenerationRequest& request) [0x000c1] in <2a40c3593b334f29ac3cb3d32d652351>:0 
     - PREFIX rjw: Void rjw.Patch_PawnGenerator:Generate_Nymph(PawnGenerationRequest& request)
     - POSTFIX rjw: Void rjw.Patch_PawnGenerator:Fix_Nymph(PawnGenerationRequest& request, Pawn& __result)
     - POSTFIX rjw: Void rjw.Patch_PawnGenerator:Sexualize_GenerateNewPawnInternal(PawnGenerationRequest& request, Pawn& __result)
     - POSTFIX rjw: Void rjw.Patch_PawnGenerator:Fix_Newborn_styles(PawnGenerationRequest& request, Pawn& __result)
 at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00136] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PawnGenerator.GeneratePawn (Verse.PawnGenerationRequest request) [0x00007] in <2a40c3593b334f29ac3cb3d32d652351>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.PawnGenerator:GeneratePawn (Verse.PawnGenerationRequest)
RimWorld.Faction:TryGenerateNewLeader ()
RimWorld.FactionGenerator:NewGeneratedFaction (RimWorld.FactionGeneratorParms)
RimWorld.FactionGenerator:CreateFactionAndAddToManager (RimWorld.FactionDef)
RimWorld.FactionGenerator:AddFactionToManager (RimWorld.FactionDef)
RimWorld.FactionGenerator:GenerateFactionsIntoWorld (System.Collections.Generic.List`1<RimWorld.FactionDef>)
RimWorld.Planet.WorldGenStep_Factions:GenerateFresh (string)
RimWorld.Planet.WorldGenerator:GenerateWorld (single,string,RimWorld.Planet.OverallRainfall,RimWorld.Planet.OverallTemperature,RimWorld.Planet.OverallPopulation,System.Collections.Generic.List`1<RimWorld.FactionDef>,single)
RimWorld.Page_CreateWorldParams:<CanDoNext>b__19_0 ()
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 ()
Error in WorldGenStep: System.TypeLoadException: Could not resolve type with token 01000062 (from typeref, class/assembly rjw.ISexPartHediff, RJW, Version=1.5.9036.32356, Culture=neutral, PublicKeyToken=null)
[Ref 7565C84E]
 at RJW_Genes.Gene_ChangeFluidAmount.PostMake () [0x00012] in <16c85846e7bb4e9d948e5890854edb2e>:0 
 at RimWorld.GeneMaker.MakeGene (Verse.GeneDef def, Verse.Pawn pawn) [0x00029] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.Pawn_GeneTracker.AddGene (Verse.GeneDef geneDef, System.Boolean xenogene) [0x0001a] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.Pawn_GeneTracker.SetXenotype (RimWorld.XenotypeDef xenotype) [0x0004c] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PawnGenerator.GenerateGenes (Verse.Pawn pawn, RimWorld.XenotypeDef xenotype, Verse.PawnGenerationRequest request) [0x00090] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PawnGenerator.TryGenerateNewPawnInternal (Verse.PawnGenerationRequest& request, System.String& error, System.Boolean ignoreScenarioRequirements, System.Boolean ignoreValidator) [0x00409] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PawnGenerator.GenerateNewPawnInternal (Verse.PawnGenerationRequest& request) [0x000c1] in <2a40c3593b334f29ac3cb3d32d652351>:0 
     - PREFIX rjw: Void rjw.Patch_PawnGenerator:Generate_Nymph(PawnGenerationRequest& request)
     - POSTFIX rjw: Void rjw.Patch_PawnGenerator:Fix_Nymph(PawnGenerationRequest& request, Pawn& __result)
     - POSTFIX rjw: Void rjw.Patch_PawnGenerator:Sexualize_GenerateNewPawnInternal(PawnGenerationRequest& request, Pawn& __result)
     - POSTFIX rjw: Void rjw.Patch_PawnGenerator:Fix_Newborn_styles(PawnGenerationRequest& request, Pawn& __result)
 at Verse.PawnGenerator.GenerateOrRedressPawnInternal (Verse.PawnGenerationRequest request) [0x00136] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at Verse.PawnGenerator.GeneratePawn (Verse.PawnGenerationRequest request) [0x00172] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.Faction.TryGenerateNewLeader () [0x00259] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.FactionGenerator.NewGeneratedFaction (RimWorld.FactionGeneratorParms parms) [0x001f0] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.FactionGenerator.CreateFactionAndAddToManager (RimWorld.FactionDef facDef) [0x0008e] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.FactionGenerator.AddFactionToManager (RimWorld.FactionDef facDef) [0x00000] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.FactionGenerator.GenerateFactionsIntoWorld (System.Collections.Generic.List`1[T] factions) [0x00013] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.Planet.WorldGenStep_Factions.GenerateFresh (System.String seed) [0x00005] in <2a40c3593b334f29ac3cb3d32d652351>:0 
 at RimWorld.Planet.WorldGenerator.GenerateWorld (System.Single planetCoverage, System.String seedString, RimWorld.Planet.OverallRainfall overallRainfall, RimWorld.Planet.OverallTemperature overallTemperature, RimWorld.Planet.OverallPopulation population, System.Collections.Generic.List`1[T] factions, System.Single pollution) [0x0010f] in <2a40c3593b334f29ac3cb3d32d652351>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
RimWorld.Planet.WorldGenerator:GenerateWorld (single,string,RimWorld.Planet.OverallRainfall,RimWorld.Planet.OverallTemperature,RimWorld.Planet.OverallPopulation,System.Collections.Generic.List`1<RimWorld.FactionDef>,single)
RimWorld.Page_CreateWorldParams:<CanDoNext>b__19_0 ()
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 ()

To Reproduce Steps to reproduce the behavior:

  1. Add mod
  2. Run
  3. Start new game
  4. Generate world
  5. See error
  6. Load succubus xenotype
  7. See error

Screenshots Image of world: image Broken character selection stage: image

Hugslog / ModList image

https://gist.github.com/HugsLibRecordKeeper/2f354b43b14e3f209af221b231dae3f9

Additional context Happens in any modlist. Same symptoms always happen, although some genes could at least be applied in my larger mod list, but only in the specific circumstance that pawns were not adult pawns. RJW Genes 2.4.1 RimJobWorld 5.4.0

hayashi-tsukigin commented 2 days ago

Same issue today then I changed RJW to 5.6.0.2 and this mod to 2.4.2 then bug fixed

MasterZak5 commented 2 days ago

That does fix it. I wonder when it got fixed, considering there were no reports like mine around the times I downloaded the versions I had before.

hayashi-tsukigin commented 2 days ago

I don't know, guess the bug caused by rimworld's nearest update(change some vanilla methods), then at 11/23 RJW updated, 11.26 this mod updated