RimWorld

RimWorld

Expanded Materials - Stones and Mortars
This topic has been locked
Crafting Loop Bug Log
Got the crafting loop bug while filtering mud for clay at the crafting spot. Log:

JobDriver threw exception in toil FinishRecipeAndStartStoringProduct's initAction for pawn Vera driver=JobDriver_DoBill (toilIndex=31) driver.job=(DoBill (Job_158596) A=Thing_CraftingSpot47132 B=Thing_EM_Mud47121 C=(153, 0, 206))
System.TypeInitializationException: The type initializer for 'ExpandedMaterialsStones.Patch_YieldingProducts' threw an exception. ---> System.ArgumentException: method argument length mismatch
at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) [0x000ee] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Reflection.RuntimeMethodInfo.CreateDelegate (System.Type delegateType) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at ExpandedMaterialsStones.Patch_YieldingProducts..cctor () [0x00016] in <84c78031cfd44591bd5f5ab5a8ef1bac>:0
--- End of inner exception stack trace ---
at (wrapper dynamic-method) Verse.GenRecipe.Verse.GenRecipe.MakeRecipeProducts_Patch2(Verse.RecipeDef,Verse.Pawn,System.Collections.Generic.List`1<Verse.Thing>,Verse.Thing,RimWorld.IBillGiver,RimWorld.Precept_ThingStyle,Verse.ThingStyleDef,System.Nullable`1<int>)
at Verse.AI.Toils_Recipe+<>c__DisplayClass3_0.<FinishRecipeAndStartStoringProduct>b__0 () [0x0013b] in <3126aca1aad041dcbdeda807cfe004bf>:0
at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <3126aca1aad041dcbdeda807cfe004bf>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
< >
Showing 1-2 of 2 comments
Lovely 22 Dec, 2022 @ 1:18pm 
Here's mine, but with butchering.

JobDriver threw exception in toil FinishRecipeAndStartStoringProduct's initAction for pawn Bole driver=JobDriver_DoBill (toilIndex=16) driver.job=(DoBill (Job_146816) A=Thing_TableButcher110536 B=Thing_Corpse_Diplodocus110532 C=(138, 0, 149))
System.TypeInitializationException: The type initializer for 'ExpandedMaterialsStones.Patch_YieldingProducts' threw an exception. ---> System.ArgumentException: method argument length mismatch
https://youtu.be/KAnib4b0N2I

Also i experienced the bug! but for all bills...
My debug log
JobDriver threw exception in toil FinishRecipeAndStartStoringProduct's initAction for pawn Anna driver=JobDriver_DoBill (toilIndex=23) driver.job=(DoBill (Job_5310) A=Thing_SeedExtractionSpot30684 B=Thing_RawBerries30686 C=(152, 0, 101))
System.TypeInitializationException: The type initializer for 'ExpandedMaterialsStones.Patch_YieldingProducts' threw an exception. ---> System.ArgumentException: method argument length mismatch
at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) [0x000ee] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Reflection.RuntimeMethodInfo.CreateDelegate (System.Type delegateType) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at ExpandedMaterialsStones.Patch_YieldingProducts..cctor () [0x00016] in <84c78031cfd44591bd5f5ab5a8ef1bac>:0
--- End of inner exception stack trace ---
at (wrapper dynamic-method) Verse.GenRecipe.Verse.GenRecipe.MakeRecipeProducts_Patch2(Verse.RecipeDef,Verse.Pawn,System.Collections.Generic.List`1<Verse.Thing>,Verse.Thing,RimWorld.IBillGiver,RimWorld.Precept_ThingStyle,Verse.ThingStyleDef,System.Nullable`1<int>)
at Verse.AI.Toils_Recipe+<>c__DisplayClass3_0.<FinishRecipeAndStartStoringProduct>b__0 () [0x0013b] in <3126aca1aad041dcbdeda807cfe004bf>:0
at CraftWithColor.ToilsRecipe_FinishRecipeAndStartStoringProduct_Patch+<>c__DisplayClass0_0.<Postfix>b__0 () [0x00061] in <082ba2670d6c4591b21f327be7d02ae6>:0
at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <3126aca1aad041dcbdeda807cfe004bf>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.Toils_Recipe/<>c__DisplayClass2_0:<DoRecipeWork>b__1 ()
(wrapper dynamic-method) Verse.AI.JobDriver:Verse.AI.JobDriver.DriverTick_Patch0 (Verse.AI.JobDriver)
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch2 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()
< >
Showing 1-2 of 2 comments
Per page: 1530 50