RimWorld

RimWorld

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

Subscribe to download
Animals Can Forage

In 1 collection by themoistestwhale
themoistestwhale's mods
9 items
Description
Animal foraging (to some extent) is now in vanilla 1.6, and with this mod being an absolute mess inside that requires a full rewrite I'm probably not going to update this for 1.6. Sorry :I

If you'd like, feel free to continue this mod. The source folder is included, as are all the relevant art assets. Contact me on Steam or Discord for further questions, I'm willing to help!



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
14 May @ 12:50pm
Penguins fish
perl
67 Comments
o7
themoistestwhale  [author] 11 Jun @ 12:35pm 
@SirArlen Thanks, if you do I'll try to see if I can resolve it.

Lemme add that (if I even find the time, this mod is super time consuming for me to work with due to skill issue) for 1.6 I am likely to refactor this entire mod due to all the changes with wildlife, terrain, new biomes, etc. If I do, I'll try to backport what I can back to 1.5 as well including a lot more much needed error handling which should help with mod conflicts like yours.
SirArlen 11 Jun @ 12:30pm 
thanks, that's the exact error. i have a ton of mods so im not sure which but i'll try to pinpoint the mod and update you if i managed to do so
themoistestwhale  [author] 11 Jun @ 8:08am 
@SirArlen Sorry that's happening, I'm going to assume the method it's pointing to is 0 calls with infinity MS? If so (and I would be surprised if it was a different case) the call failed and essentially the mod is spamming errors in the background. This is most likely due to a mod conflict and if so I'm unaware of what it'd be, but it's probably either one that is messing with terrain or food.

You can disable this mod in your save safely and re-enable it later down the line and see if that resolves it, though it might not depending on the conflict. I need to find more time to add more to the method to catch edge cases clearly :I
SirArlen 11 Jun @ 7:48am 
hi, there seem to be a problem of some sort with this mod because performance analyzer pointed to this mod's CompForageIfHungry being a massive tps killer
Head 2 May @ 6:29am 
This is a really cool mod. Great work!
Calel200 30 Mar @ 10:26am 
Yes all other animals are foraging fine, thanks I will be waiting for the update :krgenie:
themoistestwhale  [author] 29 Mar @ 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 28 Mar @ 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] 13 Mar @ 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.