RimWorld

RimWorld

67 ratings
Animals Can Forage
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5
File Size
Posted
Updated
1.346 MB
Oct 12, 2024 @ 1:04am
Dec 30, 2024 @ 11:05pm
5 Change Notes ( view )

Subscribe to download
Animals Can Forage

In 1 collection by themoistestwhale
themoistestwhale's mods
8 items
Description
Add animal foraging behavior to your saves! Or maybe don't I guess, I'm not your boss.

This mod introduces the ability for select animals to forage for food either when hungry or over set periods, adding some more depth to how animals seek out food. Of course, this does not aim to replace their original diets, which they will still have to seek out to survive!

Performance has been kept in mind and this mod should have minimal impact on your saves. Additionally, this mod allows adjusting cooldowns and more in the mod settings!

What does this mod do?
This mod allows select animals to obtain food through foraging, hunting, or scavenging for food beyond their regular diets! Some examples include chickens foraging for bugs from the ground when hungry, ducks catching fish from the water, and tamed pigs digging up the occasional mushroom from the ground.

For a majority of animals, foraging takes place on a hunger basis. By default, patched animals will try to forage for food every 18 hours when hungry upon where they stand or within arm's length, always respecting zones and boundaries. Whether or not an animal does will depend on terrain, temperature, if the animal is tame, and more.

I've added mod integration for tons of modded animals and some items such as bones, bamboo, and fish from other mods to be foraged for if they're also loaded. Feel free to suggest more patches for animal mods in the comments or on my Discord!

For modders that would like to add foraging to their own animals, see the README file in the mod folder along with the Source folder! Feel free to ask questions in my Discord as well.

What animals can forage?
So uh, I actually hit the description character limit trying to list them all. Check the README file in the mod folder for a fully comprehensive list. I've included a list of supported mods here as that is all I can fit >.<

This mod has patches to add foraging behavior to animals from the following mods:

Compatibility
  • Safe to add to save games. It's never safe to remove a mod from a save, but removing this mod should not cause significant issues.

  • Supported fishing mods include: Vanilla Fishing Expanded, [RF] Fishing, and Roo's Fishing spot.

  • Supports bamboo from VGP Vegetable Garden and bones from Rim of Madness - Bones to add to possible foraged foods.

  • It's safe to upgrade a save to this mod from the original Animals Forage mod. You can even run them alongside each other I guess, but why...?

  • There is a known rare issue where this mod may get stuck doing infinite calls due to a missing reference- often a mod conflicting with one of the items an animal is supposed to forage for. You can safely disable and re-enable this mod in a save later on to fix this issue, or remove the mod entirely if it persists. Currently balancing part time education and two jobs, will get to fixing this when I find the time!

  • Yes, it works with Combat Extended.

Thanks
Thanks to Simmin for the now-abandoned Animals Forage mod, which was the main influence on this mod. Additionally, thanks to the VE Team for their framework which made the original possible!

Thanks to Mlie for the Animal Forage - Patches mod which added numerous additional animals to the original and helped me identify what to also patch for this mod.

Thanks to #mod-development in the Rimworld discord for answering occasional, stupid questions of mine.

Rimworld is owned by Ludeon Studios.

RimworldFont used in the mod icon and preview image was created by Marnador.
Popular Discussions View All (1)
0
May 14 @ 12:50pm
Penguins fish
perl
62 Comments
rout May 2 @ 6:29am 
This is a really cool mod. Great work!
Calel200 Mar 30 @ 10:26am 
Yes all other animals are foraging fine, thanks I will be waiting for the update :krgenie:
themoistestwhale  [author] Mar 29 @ 1:28am 
@Calel200 I've been super busy IRL and I put up a hotfix on ducks foraging which disables ducks and only ducks from foraging if certain mods are in your modlist that can cause it to break. All other animals should forage just fine, though.

When I find the time I was going to revisit the issue and get a proper fix going for it, really sorry about that but I am a bit slower than other modders when working since I don't really have an optimal workflow and have to learn on the fly as a beginner, essentially doubling the amount of time it takes for me to fix shit lol
Calel200 Mar 28 @ 3:04pm 
@themoistestwhale Hey man I need help the mod is working fine but it seems for me like the ducks are not foraging for fish there is some catch that I didint got? Like my ducks have water acess but when I was searching what they can eat there is no fish on theirs menu and I have the mod vanilla fishing
themoistestwhale  [author] Mar 13 @ 1:48pm 
@Normie Thots Thank you kindly for the log, I forgot to put it in the description but this is a rare known issue with the mod that I've figured out (thanks to previous reports). I'm yet to find the time to fix it, though I'm hoping that should be soon; just been bogged down with IRL work is all.

If you are curious, the issue is pretty much that the function of this mod cannot find something it's supposed to forage for due to a mod conflict (most likely). It may clear for some if you reload your save or progress a bit in time, depends on what is causing the conflict. Regardless, you can safely remove this mod from a save at any time if it persists and this error will not cause damage to a save whatsoever.
Normie Thots Mar 13 @ 1:34pm 
I'm having a strange issue with VAE Alligators, occasionally they will spam the console with a tick error referencing the ForageIfHungry method. The only thing I noticed was the alligator eating a dead gorilla, but I haven't had this issue before so I'm not sure what else to include. I have a log here, it's towards the bottom: https://gist.github.com/HugsLibRecordKeeper/ae9e71cb11f353977e11b633228daca2
themoistestwhale  [author] Mar 2 @ 3:53pm 
@Poor Little Meow Meow Thanks for the log, I'll take a look when I get time though it'll be a minute since I've been super busy with life shit for the past month.

That is weird for sure as well, yeah. I'm pretty sure it'll be some weird mod conflict but I think I'll struggle to replicate this one. I'll still try :p
Poor Little Meow Meow Mar 2 @ 2:44pm 
Here's a log with the mod on and showing lag. Surprisingly, when I tried a slightly later save with the mod enabled, the lag wasn't present, even though I've had even more animals tamed. Weird.
https://gist.github.com/HugsLibRecordKeeper/99bf8d4d37daf837bb8aa009f41e503b
themoistestwhale  [author] Mar 2 @ 10:48am 
@Poor Little Meow Meow Never encountered or been reported that before, huh. It could be a mod conflict though there’s no way for me to know what it specifically is without a log unfortunately. If you could provide one I can look closer at the issue. Off the top of my head though I’m not sure what could be causing that.
Poor Little Meow Meow Mar 1 @ 6:38pm 
So I have a weird issue: this mod started lagging out my game like hell at some point after taming two elephants (used dubs analyzer and it's very clearly this mod eating up 90+% of the tick time. When uninstalled, tick returns to normal).
What could it be conflicting with to cause so much problems? Maybe it freaks out when in a modded biome (Alpha Biomes in this case)?