Ludeon Forums

RimWorld => Bugs => Topic started by: Britnoth on October 27, 2015, 11:50:17 AM

Title: Tamed animals do not nuzzle colonists (+ fix).
Post by: Britnoth on October 27, 2015, 11:50:17 AM
Circumstances: Every game with pets.

What happened: Pets never nuzzle the colonists.

What you expected to happen: They nuzzle colonists giving them a mood boost.

How we can reproduce the bug:

The class jobgiver_nuzzle has the line

where p.RaceProps.Humanlike && p.SpawnedInWorld && p.Position.InHorDistOf(pawn.Position, 15f) && pawn.GetRoom() == p.GetRoom() && !p.Position.IsForbidden(pawn) && !pawn.CasualInterruptibleNow()

!pawn.CasualInterruptibleNow() appears to mean it only checks for a pawn to nuzzle that is NOT in a position to be interrupted (and therefore nuzzled)?

Changing this to pawn.CasualInterruptibleNow() allows pets to nuzzle colonists as often as it seems intended.
Title: Re: Tamed animals do not nuzzle colonists (+ fix).
Post by: TLHeart on October 27, 2015, 04:28:53 PM
I take that code is in the dll?
Title: Re: Tamed animals do not nuzzle colonists (+ fix).
Post by: Britnoth on October 28, 2015, 03:20:49 AM
Assembly-CSharp.dll, yes.
Title: Re: Tamed animals do not nuzzle colonists (+ fix).
Post by: mew_the_pinkmin on November 06, 2015, 08:27:09 PM
How can i edit this file? Do i need a program i looked at it through notepad and couldnt make sence of anything. Plz help meh
Title: Re: Tamed animals do not nuzzle colonists (+ fix).
Post by: skullywag on November 09, 2015, 08:15:21 AM
The "fix" is for the devs, bar modding there isnt a way to fix this...
Title: Re: Tamed animals do not nuzzle colonists (+ fix).
Post by: Britnoth on November 10, 2015, 07:08:28 PM
I may as well post this here in case anyone else wants it?..

It only changes the animal thinktree to point to a different class with the nuzzle checking fixed.

[attachment deleted due to age]
Title: Re: Tamed animals do not nuzzle colonists (+ fix).
Post by: harpo99999 on November 11, 2015, 06:06:50 AM
thank you
Title: Re: Tamed animals do not nuzzle colonists (+ fix).
Post by: RickyMartini on November 11, 2015, 11:23:44 AM
Quote from: Britnoth on November 10, 2015, 07:08:28 PM
I may as well post this here in case anyone else wants it?..

It only changes the animal thinktree to point to a different class with the nuzzle checking fixed.

Excellent, thank you Britnoth.
Title: Re: Tamed animals do not nuzzle colonists (+ fix).
Post by: ison on February 03, 2016, 05:37:44 AM
Fixed, thanks. I appreciate the fix.