{1.2} babies and children mod non steam incorrect load order?

Started by osmanli, May 12, 2021, 08:40:32 AM

Previous topic - Next topic

osmanli

Hey Guys,

First time posting, intimidated by how to follow the rules and not upset anyone so I hope I have achieved that.

I have a lot of mods loaded, didn't count, using the mod manager to make sure all are fine I have 1 red error and I can't figure out how to fix it, I am actively removing mods to make the game work better and have worked on my mod list for about 2 whole days (no exaggeration) wouldn't mind sharing the load order mod list but I don't know how to, any way to the topic at hand.

My error is:

[Kingdoms][ERR] Failed to apply Harmony patches for babies.and.children.atfix_copy. Exception was: System.TypeLoadException: Could not load type RimWorldChildren.ChildrenUtility, RimWorldChildren, Version=1.0.7503.35741, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null)
  at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesInternal(System.Reflection.ICustomAttributeProvider,System.Type,bool)
  at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x00013] in <567df3e0919241ba98db88bec4c6696f>:0
  at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) [0x00037] in <567df3e0919241ba98db88bec4c6696f>:0
  at System.RuntimeType.GetCustomAttributes (System.Boolean inherit) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
  at HarmonyLib.HarmonyMethodExtensions.GetFromType (System.Type type) [0x00000] in <20181e2d55204880a56a9120ef04a53d>:0
  at HarmonyLib.PatchClassProcessor..ctor (HarmonyLib.Harmony instance, System.Type type) [0x00036] in <20181e2d55204880a56a9120ef04a53d>:0
  at HarmonyLib.Harmony.CreateClassProcessor (System.Type type) [0x00000] in <20181e2d55204880a56a9120ef04a53d>:0
  at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00000] in <20181e2d55204880a56a9120ef04a53d>:0
  at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <20181e2d55204880a56a9120ef04a53d>:0
  at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <20181e2d55204880a56a9120ef04a53d>:0
  at HugsLib.ModBase.ApplyHarmonyPatches () [0x0009a] in <e4b32d84f714481f906e5eea5e560e3b>:0
Verse.Log:Error(String, Boolean)
HugsLib.Utils.ModLogger:Error(String, Object[])
HugsLib.ModBase:ApplyHarmonyPatches()
HugsLib.HugsLibController:HugsLib.HugsLibController.EnumerateChildMods_Patch1(HugsLibController, Boolean)
HugsLib.HugsLibController:HugsLib.HugsLibController.LoadReloadInitialize_Patch1(HugsLibController)
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.<>c:<UpdateCurrentAsynchronousEvent>b__27_0()
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart()

also, in-game some colonists are invisible (mainly younger)

If you guys can help and in all honesty bare with me (super beginner) I'd really appreciate it, if this topic gets lost in the deep end of the web oh well

:D

All the best guys

Canute

Hi,
i interprete these are
A mod Kingdoms try to patch a babies.and.children mod and failed by doing this.
Maybe the babies.and.children mod isn't loaded before or it is maybe the wrong version.

Since so many Kingdoms mod's are at the workshop i can't say anything more.
You should check the mod description/discussion of that Kingdoms mod and if you don't find anything try to contact the author.

But when you don't use any babies.and.children, these error has no effect at the game, then the mod author just forget to add a check if such a mod is active before he apply the patch.

osmanli

really appreciate your response Canute

the babies and children mod is the latest version from GitHub, it loaded at the top as the 4th mod in order.

I had a look the only mod I had with king in it was a slave mod

can't think what could be causing it,

any further help from anyone would be greatly appreciated.

Canute

You can try to search for the phrase "babies.and.children" or just "babies" inside you mods folder.
More useful keywords you can use to search i don't see at the error msg.
Results that lead to the babies.and.children mod you can ignore, but other results should lead you to the Kingdoms mod which cause the error.

Alternative, deactivate 50% of your mods check if the error is gone.
When the error is still there, deactivate 50% of the remaining active mods.
When the error is gone, reactivate 50% of the deactivated mods.
And find the mod which cause the error at this way.
But that is very annoying methode.

osmanli

appreciate the help, Canute,

But I need specific help someone to help me identify the error, maybe even help me fine-tune it... we're talking about almost 1000 mods

I have carefully laid it out and only have raw tomatoes and the babies and children mod giving me errors, there are no kingdom mods,

it would throw my whole game into chaos removing half the mods :D


Canute

I allready told you what that error means, a mod try to patch another mod, but the patch failed because of the wrong version (Could not load type RimWorldChildren.ChildrenUtility, RimWorldChildren, Version=1.0.7503.35741)
But the error don't tell you want mod does the patch.