tk421storm / masksWithHats

Rimworld Mod - allow masks with hats (that dont cover face)
1 stars 0 forks source link

bug report #1

Open instawkward opened 1 year ago

instawkward commented 1 year ago

I'm getting this error in Hugslib:

Error in static constructor of TKS_MasksWithHats.InsertHarmony: System.TypeInitializationException: The type initializer for 'TKS_MasksWithHats.InsertHarmony' threw an exception. ---> HarmonyLib.HarmonyException: IL Compile Error ---> System.FormatException: Method System.Void Verse.PawnRenderer::DrawHeadHair(UnityEngine.Vector3 rootLoc, UnityEngine.Vector3 headOffset, System.Single angle, Verse.Rot4 bodyFacing, Verse.Rot4 headFacing, Verse.RotDrawMode bodyDrawType, Verse.PawnRenderFlags flags, System.Boolean bodyDrawn) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) Verse.PawnRenderer:Verse.PawnRenderer.DrawHeadHair_Patch0 (Verse.PawnRenderer,UnityEngine.Vector3,UnityEngine.Vector3,single,Verse.Rot4,Verse.Rot4,Verse.RotDrawMode,Verse.PawnRenderFlags,bool): IL_0958: callvirt 0x00000273

My log is here

tk421storm commented 1 year ago

thanks for the report! I imagine it's an incompatibility with the mod "Easy Extra Apparel Layers". Both that mod and mine modify the DrawHeadHair function so I'd have to write some compatibility stuff.

That mod is listed as "mod resource only" - do you know which mod required you to download "Easy Extra Apparel Layers"?