RimWorld

RimWorld

Project RimFactory Revived
This topic has been locked
慕柯 Aug 9, 2024 @ 8:12pm
Bug Reports
When I use both 'MIM - WH40k Core' and 'Project RimFactory Revived' at the same time, I find that the slaughter machine is unable to produce meat. It's a very strange issue. I've included my error log below, hoping it might be helpful.
< >
Showing 1-3 of 3 comments
慕柯 Aug 9, 2024 @ 8:14pm 
ROCKETMAN:[NOTROCKETMAN] RocketMan caught an error in StatWorker.GetValueUnfinalized. RocketMan doesn't modify the inners of this method. ButcheryFleshEfficiency ButcheryFleshEfficiency with error System.NullReferenceException: Object reference not set to an instance of an object
[Ref 9BEE0846]
at MIM40kFactions.Utility_GetModExtension.GetBodySnatcherExtension (Verse.Pawn pawn) [0x0002d] in <90c22e654ef14e9b887efe4830cf1978>:0
at MIM40kFactions.EMWH_HealthScalePatch.HealthScalePostfix (Verse.Pawn __instance, System.Single& __result) [0x0002f] in <90c22e654ef14e9b887efe4830cf1978>:0
at Verse.Pawn.get_HealthScale () [0x00033] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX OskarPotocki.VFECore: Void VanillaGenesExpanded.Pawn_HealthScale:HealthScale_Postfix(Single& __result, Pawn __instance)
- POSTFIX com.vanillageneticrimexpanded: Void GeneticRim.Patch_HealthScale:Postfix(Single& __result, Pawn __instance)
- POSTFIX rimworld.emitbreaker.MIM.WH40k.Core: Void MIM40kFactions.EMWH_HealthScalePatch:HealthScalePostfix(Pawn __instance, Single& __result)
at Verse.BodyPartDef.GetMaxHealth (Verse.Pawn pawn) [0x00006] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX com.alphagenes: Void AlphaGenes.AlphaGenes_BodyPartDef_GetMaxHealth:PostFix(BodyPartDef __instance, Single& __result, Pawn pawn)
- POSTFIX V1024.EBFramework: Void EBF.Patches.PostFix_BodyPart_GetMaxHealth:CheckEbfProtocolViolation(BodyPartDef __instance, Single& __result, Pawn pawn)
- POSTFIX VREHussars.Mod: Void VREHussars.GetMaxHealth_Patch:Postfix(BodyPartDef __instance, Pawn pawn, Single& __result)
at EBF.EBFEndpoints.GetMaxHealthUnmodified (Verse.BodyPartDef def, Verse.Pawn pawn) [0x00005] in <2000e2c986464be9914c2ea409530692>:0
at EBF.EBFEndpoints.GetMaxHealthWithEBF (Verse.BodyPartRecord record, Verse.Pawn pawn, System.Boolean useCache) [0x0002e] in <2000e2c986464be9914c2ea409530692>:0
at EBF.VanillaExtender.GetMaxHealth_Cached (Verse.BodyPartDef def, Verse.Pawn pawn, Verse.BodyPartRecord record) [0x00000] in <2000e2c986464be9914c2ea409530692>:0
at Verse.HediffSet.GetPartHealth (Verse.BodyPartRecord part) [0x00010] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER V1024.EBFramework: IEnumerable`1 EBF.Transpilations.Transpiler_HediffSet_GetPartHealth:Transpiler(IEnumerable`1 instructions)
- TRANSPILER VREAndroidsMod: IEnumerable`1 VREAndroids.HediffSet_GetPartHealth_Patch:Transpiler(IEnumerable`1 codeInstructions)
at Verse.PawnCapacityUtility.CalculatePartEfficiency (Verse.HediffSet diffSet, Verse.BodyPartRecord part, System.Boolean ignoreAddedParts, System.Collections.Generic.List`1[T] impactors) [0x00206] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER V1024.EBFramework: IEnumerable`1 EBF.Transpilations.Transpiler_PawnCapacity_Calculate:Transpiler(IEnumerable`1 instructions)
at Verse.PawnCapacityUtility.CalculateTagEfficiency (Verse.HediffSet diffSet, Verse.BodyPartTagDef tag, System.Single maximum, Verse.FloatRange lerp, System.Collections.Generic.List`1[T] impactors, System.Single bestPartEfficiencySpecialWeight) [0x00038] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at RimWorld.PawnCapacityWorker_Sight.CalculateCapacityLevel (Verse.HediffSet diffSet, System.Collections.Generic.List`1[T] impactors) [0x00000] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at Verse.PawnCapacityUtility.CalculateCapacityLevel (Verse.HediffSet diffSet, Verse.PawnCapacityDef capacity, System.Collections.Generic.List`1[T] impactors, System.Boolean forTradePrice) [0x00058] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX OskarPotocki.VFECore: Void VFECore.PawnCapacityUtility_CalculateCapacityLevel:Postfix(Single& __result, HediffSet diffSet, PawnCapacityDef capacity, List`1 impactors, Boolean forTradePrice)
at Verse.PawnCapacitiesHandler.GetLevel (Verse.PawnCapacityDef capacity) [0x00061] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at RimWorld.StatWorker.GetValueUnfinalized (RimWorld.StatRequest req, System.Boolean applyPostProcess) [0x00d3e] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER OskarPotocki.VFECore: IEnumerable`1 VFECore.StatWorker_GetValueUnfinalized_Transpiler:Transpiler(IEnumerable`1 instructions)
- TRANSPILER com.vanillageneticrimexpanded: IEnumerable`1 GeneticRim.Patch_StatValueUnfinalized:Transpiler(IEnumerable`1 instructions)
- PREFIX vanillaexpanded.furniture.architect: Void VFEArchitect.ArchitectMod:StatIgnoreStuff(StatRequest& req, StatDef ___stat)
at RocketMan.Optimizations.StatWorker_Patch.UpdateCache (System.Int32 key, RimWorld.StatWorker statWorker, RimWorld.StatRequest req, System.Boolean applyPostProcess, System.Int32 tick, System.Boolean storeExists) [0x00013] in <949351c33af947369af199f234821cd7>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
RocketMan.Logger:Debug (string,System.Exception,string)
RocketMan.Optimizations.StatWorker_Patch:UpdateCache (int,RimWorld.StatWorker,RimWorld.StatRequest,bool,int,bool)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.StatWorker.GetValue_Patch0 (RimWorld.StatWorker,RimWorld.StatRequest,bool)
RimWorld.StatWorker:GetValue (Verse.Thing,bool,int)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.StatExtension.GetStatValue_Patch2 (Verse.Thing,RimWorld.StatDef,bool,int)
DMD<>?-936163072:Verse.GenRecipe+<MakeRecipeProducts>d__0.MoveNext_Patch0 (Verse.GenRecipe/<MakeRecipeProducts>d__0)
System.Collections.Generic.List`1<Verse.Thing>:.ctor (System.Collections.Generic.IEnumerable`1<Verse.Thing>)
ProjectRimFactory.Common.Patch_GenRecipe_MakeRecipeProducts_BonusYield/<Postfix>d__0:MoveNext ()
System.Collections.Generic.List`1<Verse.Thing>:.ctor (System.Collections.Generic.IEnumerable`1<Verse.Thing>)
System.Linq.Enumerable:ToList<Verse.Thing> (System.Collections.Generic.IEnumerable`1<Verse.Thing>)
VanillaAnimalsExpandedRoyal.VanillaAnimalsExpandedRoyal_GenRecipe_MakeRecipeProducts_Patch:Postfix (System.Collections.Generic.IEnumerable`1<Verse.Thing>,Verse.RecipeDef)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.GenRecipe.MakeRecipeProducts_Patch8 (Verse.RecipeDef,Verse.Pawn,System.Collections.Generic.List`1<Verse.Thing>,Verse.Thing,RimWorld.IBillGiver,RimWorld.Precept_ThingStyle,Verse.ThingStyleDef,System.Nullable`1<int>)
ProjectRimFactory.SAL3.Things.Assemblers.Building_ProgrammableAssembler:ProduceItems ()
ProjectRimFactory.SAL3.Things.Assemblers.Building_ProgrammableAssembler:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickList.Tick_Patch0 (Verse.TickList)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch7 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)
慕柯 Aug 9, 2024 @ 8:14pm 
Error producing items for Thing_PRF_MeatGrinder27485: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 45DCE11B]
at RocketMan.Optimizations.StatWorker_Patch.UpdateCache (System.Int32 key, RimWorld.StatWorker statWorker, RimWorld.StatRequest req, System.Boolean applyPostProcess, System.Int32 tick, System.Boolean storeExists) [0x00068] in <949351c33af947369af199f234821cd7>:0
at RimWorld.StatWorker.GetValue (RimWorld.StatRequest req, System.Boolean applyPostProcess) [0x00053] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER Krkr.RocketMan: IEnumerable`1 RocketMan.Optimizations.StatWorker_Patch:Transpiler(IEnumerable`1 instructions, MethodBase original)
at RimWorld.StatWorker.GetValue (Verse.Thing thing, System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks) [0x00085] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
at RimWorld.StatExtension.GetStatValue (Verse.Thing thing, RimWorld.StatDef stat, System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks) [0x0000c] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX OskarPotocki.VanillaSocialInteractionsExpanded: Void VanillaSocialInteractionsExpanded.GetStatValue_Patch:Postfix(Thing thing, StatDef stat, Boolean applyPostProcess, Single& __result)
- POSTFIX OskarPotocki.VFECore: Void VFECore.StatExtension_GetStatValue_Patch:Postfix(Thing thing, StatDef stat, Boolean applyPostProcess, Single& __result)
at Verse.GenRecipe+<MakeRecipeProducts>d__0.MoveNext () [0x0004b] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- TRANSPILER com.spdskatr.projectrimfactory: IEnumerable`1 ProjectRimFactory.Common.HarmonyPatches.Patch_GenRecipe_MakeRecipeProducts_foodPoisoning:Transpiler(IEnumerable`1 instructions)
at <0x239fc587e80 + 0x002c9> <unknown method>
at ProjectRimFactory.Common.Patch_GenRecipe_MakeRecipeProducts_BonusYield+<Postfix>d__0.MoveNext () [0x00028] in <e85aa4e119764ab3ac1cf233e1b3a454>:0
at <0x239fc587e80 + 0x002c9> <unknown method>
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00018] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at VanillaAnimalsExpandedRoyal.VanillaAnimalsExpandedRoyal_GenRecipe_MakeRecipeProducts_Patch.Postfix (System.Collections.Generic.IEnumerable`1[T] values, Verse.RecipeDef recipeDef) [0x00001] in <249dbb18ec76486cb83263a3251b7a6e>:0
at Verse.GenRecipe.MakeRecipeProducts (Verse.RecipeDef recipeDef, Verse.Pawn worker, System.Collections.Generic.List`1[T] ingredients, Verse.Thing dominantIngredient, RimWorld.IBillGiver billGiver, RimWorld.Precept_ThingStyle precept, Verse.ThingStyleDef style, System.Nullable`1[T] overrideGraphicIndex) [0x00137] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- PREFIX VanillaBooksExpandedMod: Void VanillaBooksExpanded.GenRecipe_MakeRecipeProducts_Patch:Prefix(RecipeDef recipeDef, Pawn worker)
- PREFIX com.communityframework.harmonypatches: Void CF.OutputWorkerPatch+MakeRecipeProducts:Prefix(RecipeDef recipeDef, Pawn worker, List`1 ingredients, IBillGiver billGiver, Precept_ThingStyle& precept, ThingStyleDef& style, Nullable`1& overrideGraphicIndex)
- POSTFIX com.communityframework.harmonypatches: Void CF.OutputWorkerPatch+MakeRecipeProducts:Postfix(IEnumerable`1& __result, RecipeDef recipeDef, Pawn worker, List`1 ingredients, IBillGiver billGiver, Precept_ThingStyle precept, ThingStyleDef style, Nullable`1 overrideGraphicIndex)
- POSTFIX com.spdskatr.projectrimfactory: IEnumerable`1 ProjectRimFactory.Common.Patch_GenRecipe_MakeRecipeProducts_BonusYield:Postfix(IEnumerable`1 __result, RecipeDef recipeDef, Pawn worker, List`1 ingredients, Thing dominantIngredient, IBillGiver billGiver)
- POSTFIX OskarPotocki.VanillaSocialInteractionsExpanded: Void VanillaSocialInteractionsExpanded.MakeRecipeProducts_Patch:Postfix(IEnumerable`1 __result, RecipeDef recipeDef, Pawn worker, List`1 ingredients, Thing dominantIngredient, IBillGiver billGiver)
- POSTFIX com.vanillaanimalsexpandedroyal: IEnumerable`1 VanillaAnimalsExpandedRoyal.VanillaAnimalsExpandedRoyal_GenRecipe_MakeRecipeProducts_Patch:Postfix(IEnumerable`1 values, RecipeDef recipeDef)
- POSTFIX com.vanillageneticrimexpanded: Void GeneticRim.GeneticRim_GenRecipe_MakeRecipeProducts:AddQualityToImplants(List`1 ingredients)
- POSTFIX VanillaBooksExpandedMod: IEnumerable`1 VanillaBooksExpanded.GenRecipe_MakeRecipeProducts_Patch:Postfix(IEnumerable`1 __result)
at ProjectRimFactory.SAL3.Things.Assemblers.Building_ProgrammableAssembler.ProduceItems () [0x00077] in <e85aa4e119764ab3ac1cf233e1b3a454>:0
at ProjectRimFactory.SAL3.Things.Assemblers.Building_ProgrammableAssembler.Tick () [0x000cf] in <e85aa4e119764ab3ac1cf233e1b3a454>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
ProjectRimFactory.SAL3.Things.Assemblers.Building_ProgrammableAssembler:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickList.Tick_Patch0 (Verse.TickList)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch7 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)
[IoD]Sn1p3rr3c0n  [developer] Aug 10, 2024 @ 12:55am 
The log clearly states that “MIM40kFactions.Utility_GetModExtension.GetBodySnatcherExtension” is causing the Issue. Please Report the issue to them, as they will need to resolve it.

For future reference:
  • Don’t make your own “Bug Report” thread if one already exists
  • Provide a HugsLibLog (CTRL & F12)! Nobody wants to read copy paste errors in steam comments.
< >
Showing 1-3 of 3 comments
Per page: 1530 50