Jump to content

[mod] Human Cattle - Yet Another Milk Mod


doop_lvl

Recommended Posts

Posted

@doop_lvl

 

I'm having a problem. My pawns milk someone but after the job finishes nothing happens and an "Exception in JobDriver" error pops up in the log. Happens with both machine and hand milking.

 

Error for machine:

Exception in JobDriver tick for pawn Emerald driver=JobDriver_Milk_OnMachineSupervised (toilIndex=5) driver.job=(MilkAnimal_OnMachineSupervised (Job_1167004) A = Thing_Human162421 B = Thing_HumanCattle_MilkingMachine139087 Giver = ThinkNode_QueuedJob [workGiverDef: MilkHuman])

System.NullReferenceException: Object reference not set to an instance of an object

[Ref F862D19A]

at HumanCattle.ExCattleUtils.DoMilking (Verse.Pawn target, System.Single& num, System.Single& chargeConsumed, Verse.Hediff lactatingHediff, Verse.Hediff cattleHediff, Verse.HediffComp_Lactating lactating, HumanCattle.HediffComp_MilkedTracker milkable) [0x000ec] in <0a3f94e49f1847f3ac13adfe1722e893>:0

at HumanCattle.Building_MilkingMachine.DoMilking (Verse.Pawn milkee, Verse.Pawn milker) [0x000d5] in <0a3f94e49f1847f3ac13adfe1722e893>:0

at HumanCattle.JobDriver_GatherAnimalBodyResources+<>c__DisplayClass10_0.<MakeNewToils>b__1 (System.Int32 delta) [0x000a2] in <0a3f94e49f1847f3ac13adfe1722e893>:0

at Verse.AI.JobDriver.DriverTickInterval (System.Int32 delta) [0x0009f] in <61e4173561894da49d210260257b5097>:0

 

Error for hand milking:

JobDriver threw exception in toil Do's initAction for pawn Emerald driver=JobDriver_HandmilkHuman (toilIndex=2) driver.job=(HandmilkHuman (Job_1167106) A = Thing_Human162421 Giver = ThinkNode_QueuedJob [workGiverDef: MilkHuman])
System.NullReferenceException: Object reference not set to an instance of an object
[Ref 494A43AA]
  at HumanCattle.ExCattleUtils.DoMilking (Verse.Pawn target, System.Single& num, System.Single& chargeConsumed, Verse.Hediff lactatingHediff, Verse.Hediff cattleHediff, Verse.HediffComp_Lactating lactating, HumanCattle.HediffComp_MilkedTracker milkable) [0x000ec] in <0a3f94e49f1847f3ac13adfe1722e893>:0 
  at HumanCattle.JobDriver_HandmilkHuman+<>c__DisplayClass23_0.<MakeNewToils>b__3 () [0x0003c] in <0a3f94e49f1847f3ac13adfe1722e893>:0 
  at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <61e4173561894da49d210260257b5097>:0 

 

Full Hugs log:

https://gist.github.com/HugsLibRecordKeeper/f7ebacac340664dd4e0f9ba988dc5166

Posted

hmm, the function throwing the error should already have plenty of null checks, save for mood need. does the pawn getting milked not have a mood need?

Posted

No mood need was the problem. Put the mood need back and everything started working again.

Thanks for the help. I don't think I would have figured this out on my own.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...