notfood / RimWorld-Outfitted

Outfit management
2 stars 9 forks source link

Conflict with Animal Gear mod #9

Open archielecroy opened 3 years ago

archielecroy commented 3 years ago

After killing and stripping my first raider, I started getting the following error repeatedly:

Exception in Verse.AI.ThinkNode_Tagger TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object at (wrapper dynamic-method) RimWorld.ThoughtUtility.RimWorld.ThoughtUtility.CanGetThought_NewTemp_Patch1(Verse.Pawn,RimWorld.ThoughtDef,bool) at Outfitted.OutfittedMod.ApparelScoreRaw (Verse.Pawn pawn, RimWorld.Apparel apparel, RimWorld.NeededWarmth neededWarmth) [0x0009b] in <44eab0fe202d47418afef805f9237400>:0

I forced my animals to sleep and the error stopped. Once they woke, the error resumed. I created an outfit for the animals with "Penalty Worn by Corpse" un-checked, and that also appears to prevent the error.

maarxx commented 3 years ago

@BryanAldrich opened a PR, possibly related, here: https://github.com/notfood/RimWorld-Outfitted/pull/7

You can get his corresponding branch, and try that, here: https://github.com/BryanAldrich/RimWorld-Outfitted

Try downloading that and installing it as a non-steam mod and see if that behaves better.

BryanAldrich commented 3 years ago

I just compiled it up if you need it. https://github.com/BryanAldrich/RimWorld-Outfitted/releases/tag/1.2-hotfix

archielecroy commented 3 years ago

So far, I haven't encountered the error when using the fix from #7