Survivalist: Invisible Strain

Survivalist: Invisible Strain

SIS Livestock Control
20 Comments
SweetCaptn  [author] 29 May @ 8:02am 
Haha that message was meant for another user, but they deleted their message. I would avoid playing with it until I fix the crash Bob reported
A Tutorial Boss 29 May @ 7:34am 
lol are you responding to Bob from January, haha, what a gap, and completely unrelated. Also does this mod still work with the current beta version?
Bob  [developer] 20 Jan @ 6:26pm 
Heya, I've had a crash report for this mod with the same callstack as below. I think I know what's happening - it runs my GetNextSubGoal code and doesn't find any animal feeder or drinker props that need filling. So it calls OnFailed and returns null. Your Postfix code then takes over and decides to return new FindGoal to go looking for a knife.

The problem is that OnFailed has called SetRoleFailedRecently and also set LastAttemptedTime, both of these would cause IsPossible to return false. Hence the assert that the subgoal is "Not Possible".

You need to find a way of ensuring that OnFailed is only called when GetNextSubGoal will actually return null. Maybe you just use Prefix to override the whole function and duplicate my code?
SweetCaptn  [author] 11 Nov, 2024 @ 10:32am 
I'll take a look tonight, thank you
Looni 11 Nov, 2024 @ 9:24am 
Maybe limited to public version 217 and not affecting the beta 219. Dunno. I assume it's from this mod anyway.
Looni 11 Nov, 2024 @ 9:19am 
Error (v217): Lydia Russo (SurvivorGoal : AnimalFeederGoal : FindGoal (HuntingKnife)) activating a SubGoal that is Not Possible (old = SatisfyHunger, new = AnimalFeederGoal : FindGoal (HuntingKnife)) UnityEngine.Debug:LogError (object)
StateMachineGoal:CheckForSubGoalFinished (Character,Goal,bool) (at C:/Survivalist2/Assets/Scripts/Goal/Goal.cs:1036)
PrioritiserGoal:Update (Character,Goal) (at C:/Survivalist2/Assets/Scripts/Goal/Goal.cs:1310)
SurvivorGoal:Update (Character,Goal) (at C:/Survivalist2/Assets/Scripts/Goal/SurvivorGoal.cs:177)
Character:Think () (at C:/Survivalist2/Assets/Scripts/Character/Character.cs:22991)
SweetCaptn  [author] 11 Nov, 2024 @ 8:41am 
Awesome! thanks
Looni 11 Nov, 2024 @ 7:26am 
Could've been the game being the game. So far it's working fine even right before the earlier crash. Disregard for now =D
Looni 11 Nov, 2024 @ 7:23am 
I'll try to replicate it again with the same save.
SweetCaptn  [author] 11 Nov, 2024 @ 7:18am 
Is it the exact same error? I remember not having any crashes after posting the fix. Try ubsubscribing / subscribing to the mod again, perhaps it's not updated. Otherwise send me the log and I'll look into it
Looni 11 Nov, 2024 @ 7:07am 
Encountered the same error and crash as Padoru when spawning chickens via f8 and picking them up and dropping to claim ownership.
Padoru 4 Nov, 2024 @ 5:58am 
thanks! its fixed now :steamthumbsup:
SweetCaptn  [author] 3 Nov, 2024 @ 2:27pm 
Uploaded a patch fixing another crash that happened when loading the game
SweetCaptn  [author] 3 Nov, 2024 @ 10:41am 
Uploaded a fix for a crash and I think your error might be fixed too. Let me know if it keeps happening
SweetCaptn  [author] 3 Nov, 2024 @ 10:03am 
Thanks for reporting it, I should be able to get it fixed by this evening
Padoru 3 Nov, 2024 @ 9:45am 
can anyone help me with this error?

Exception (v219): MissingMethodException: Method not found: GenderType .BaseObject.GetGender() AnimalFeederGoal_GetNextSubGoal__Patch.Postfix (Goal& __result, AnimalFeederGoal __instance, Character character, Goal parent) (at <8885d530d99d4194bf04329aa4cb6d9d>:0)
(wrapper dynamic-method) AnimalFeederGoal.AnimalFeederGoal.GetNextSubGoal_Patch2(AnimalFeederGoal,Character,Goal)
StateMachineGoal.CheckForSubGoalFinished (Character character, Goal parent, System.Boolean hasCalculatedTargetAlready) (at C:/Survivalist2/Assets/Scripts/Goal/Goal.cs:1009)
StateMachineGoal.Update (Character character, Goal parent) (at C:/Survivalist2/Assets/Scripts/Goal/Goal.cs:985)
(FLAH) Ken 29 Oct, 2024 @ 6:21pm 
NBice
Bonelancer 8 Sep, 2024 @ 8:38am 
cant wait to test this out
SweetCaptn  [author] 27 Aug, 2024 @ 9:58am 
Lol, I see it now. Could've chosen a better name haha
⚡Electro Javaboy⚡ 27 Aug, 2024 @ 6:55am 
I don't know why but my first thought was this mod allows you to play as chicken, lol.