Survivalist: Invisible Strain

Survivalist: Invisible Strain

84 betyg
SIS Livestock Control
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Taggar: IsMod
Filstorlek
Lades upp
Uppdaterades
2.892 MB
27 aug, 2024 @ 2:20
3 nov, 2024 @ 14:26
5 ändringsnotiser ( visa )

Abonnera för att ladda ner
SIS Livestock Control

Beskrivning
What is this?
This mod adds livestock population control to the game. Characters with the Animal Feeder Role will now control the population of chickens in your community, slaughtering them when their numbers exceed a threshold and bringing them near campfires. They will need a hunting knife.

You can set whether roosters (male) or hens (female) can be slaughtered, and whether to avoid fertilized chickens. You can also set the thresholds for how many chickens you can have in your community before starting the livestock control, and whether to ignore chickens with personalized names (if you have grown attached to any).

Can be added to current saves.

Settings
The settings file can be found in the mod folder under "Settings_LivestockControl.xml"
  • CanSlaughterRoosters. Whether roosters (male chickens9 can be slaughtered to control livestock population. (default true)
  • CanSlaughterHens. Whether hens (female chickens) can be slaughtered to control livestock population. (default true)
  • CanSlaughterFertilizedChickens. Whether fertilized chickens can be slaughtered to control livestock population. (default false)
  • BringNearCampfire. Whether to bring slaughtered chickens near campfires. (default true)
  • IgnoreNamedChickens. Ignore chickens with personalized names. (default true)
  • MaxAmountHens. Maximum number of hens in community before starting to murder them. (default 5)
  • MaxAmountRoosters. Maximum number of roosters in community before starting to murder them. (default 5)

Compatibility
Shouldn't have any incompatibilities. Report any issues in the comments section!
23 kommentarer
⚡Blitzkrieg⚡ 13 sep @ 9:02 
Error (v259): Aaliyah O'Donnell (SurvivorGoal : AnimalFeederGoal : FindGoal (HuntingKnife)) activating a SubGoal that is Not Possible (old = FarmingGoal, new = AnimalFeederGoal : FindGoal (HuntingKnife))

She had a Hunting Knife in her inventory.
And as I observed the error happened when she tried to pull the Hen out of the coop/building for slicing, since chickens sleep in houses when their coops are full. And I've got 2 campfires and when they do manage to kill a chicken when it is outside the coop, then they deliver it to the Well lol..
⚡Blitzkrieg⚡ 13 sep @ 8:03 
Yup, same error still going on. I hope for a fix soon..
KnowChillx 11 aug @ 3:47 
I seem to be getting error messages whenever an NPC tries to equip a knife for slaughtering.

Error (v254): Giselle Holcomb (SurvivorGoal : AnimalFeederGoal : FindGoal (HuntingKnife)) activating a SubGoal that is Not Possible (old = AnimalFeederGoal : FindGoal (HuntingKnife), new = AnimalFeederGoal : FindGoal (HuntingKnife))
SweetCaptn  [skapare] 29 maj @ 8:02 
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 maj @ 7:34 
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  [utvecklare] 20 jan @ 18:26 
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  [skapare] 11 nov, 2024 @ 10:32 
I'll take a look tonight, thank you
Looni 11 nov, 2024 @ 9:24 
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:19 
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  [skapare] 11 nov, 2024 @ 8:41 
Awesome! thanks