10 jobs in one tick

Started by nixtempestas, November 19, 2017, 06:42:45 PM

Previous topic - Next topic

nixtempestas

What I'm looking to do is allow a pawn to pick up another pawn and carry them to a location.

I have the JobDriver and WorkGiver setup, and the pawn I order to go to the other does, but as soon as they touch, I get the "10 jobs in one tick" error and nothing happens for a second or so, then the pawn tries again, with the same result and so on.

Basically what I want is what the TakeToBed job does, but more general. (All the good code in that class doesn't decompile nicely...)

I'm new to rimworld modding so I think this might be coming from a misunderstanding of how WorkDrivers work/assign jobs.

Any info and insight is appreciated