RimWorld

RimWorld

Cats Hunt For Fun
54 Comments
Mlie  [author] Apr 22 @ 11:42am 
@sleepingpiranha You choose it in the mod-settings
sleepingpiranha Apr 22 @ 11:12am 
What IS a cat?
Nim Apr 14 @ 7:25pm 
I love this mod. I encountered a possibly unintentional albeit funny behaviour where puppies started going after animals way too big for their size. Is the size ratio based on their adult size? Maybe hunting should be gated to adults.
Mlie  [author] Dec 4, 2024 @ 1:52am 
@Cortec Dont know, never tried that mod
Cortec Dec 4, 2024 @ 1:28am 
Looks like a fun mod, does this work with multiplayer by zetrith?
Mlie  [author] Aug 31, 2024 @ 10:04pm 
@flyons_gary 1. Yes
2. No cooldown, as long as they are not doing any specific job they have that chance of hunting if possible.
3. They attack a nearby valid animal and may or may not kill it. They may bring it to their owners bed if selected. Generally, nothing is certain. They are cats.
flyons_gary Aug 31, 2024 @ 7:30pm 
So clarifying questions since I wanted to apply the category of Cats to the owlcats from Alpha Animals.
1) Would changes to category work midsave?
2) How common exactly is hunting supposed to be? I know I can set a percentage chance, but is there a cooldown?
3) Do they do the actual hunting behavior and then basically have a chance to return with the given prey item?

So far they dont seem to do it at all so trying to figure stuff out
Church.exe Aug 14, 2024 @ 10:52am 
Ah, so a bit of both, it is pre-calculated but it's done at launch rather than being hardcoded. Sure enough RIMMSqol was sorted to load after this mod, which would explain why the change wasn't showing up. I tested using a % (slightly) below where rats showed up in the text and they were still being hunted so it was definitely working, it was just that the numbers for that text preview were pre-calculated so the preview prompt made it look like it wasn't working properly.
Mlie  [author] Aug 14, 2024 @ 10:09am 
@Church.exe I dont know when rimmsqol changes the values. If its after this mod then it will bot see the changed values. I think patching the sizes would be the best way to fix it as its done before any of the assemblies are loaded
Church.exe Aug 14, 2024 @ 6:52am 
I mean is the information on the animals hard-coded. In other words, if another mod (namely RIMMSqol) changes the size of a rat, would the prompt recognize that and behave differently, or does it have a static internal measure of how large various animals should be?
Mlie  [author] Aug 14, 2024 @ 2:57am 
@Church.exe No, the text is depending on your mod-settings and changes based on what percent you set it to
Church.exe Aug 14, 2024 @ 1:47am 
Is the "A standard cat would attack: " text hardcoded? I'm trying to use RIMMSqol to make it so that cats will hunt rats (from the Rats mod that makes them spawn in on meat and such) but not try to 1v1 a megascarab but I've tried tweaking both "mass" and "Base Body Size" in RIMMSqol and for some reason the rats and megascarabs still show up at the same relative size %.
nukestar Mar 16, 2024 @ 4:59pm 
lol, next time I play Rimworld, I am going to make all the many species of dragons in my game count as cats. I fear the ecology may not survive.
Mlie  [author] Feb 20, 2024 @ 3:00pm 
@larry.rathbun The cats should only hunt within their bodysize limits in the options, anything else is unintended
larry.rathbun Feb 20, 2024 @ 2:56pm 
@Mlie I appreciate your response. If you saw my earlier one I deleted, apologies, I was in a pissy mood due to work.

I was more looking for the short answer of "that's intended behavior" or "maybe adjust setting x". If your response indicates an actual issue, I am just not going to worry about it. I have way too many mods and too much time invested in the save.
Mlie  [author] Feb 20, 2024 @ 7:18am 
@larry.rathbun Please see the Reporting Issues section described above
larry.rathbun Feb 20, 2024 @ 5:32am 
My cats keep trying to hunt a herd of Gazelle. I have them set to hunt about 80% body size (chosen to get rat in the displayed list) Gazelle is not in the list, yet all they do is try to hunt gazelle, even the kittens - born today - are fanatic gazelle hunters. Any ideas?
Mlie  [author] Jan 1, 2024 @ 1:49pm 
@VISilt They will defend themselves, but they should get stunned at the first attack so it would be a unlucky cat that fails to defend itself
Asiltic Jan 1, 2024 @ 1:06pm 
Is there a way to prevent the rats from biting my cats limbs off while they play together?
Sopel Nov 14, 2023 @ 5:36pm 
I had the exact same issue (log spam) as the poster below. I know my log is long, I'll try to investigate best to my abilites.

Exception in Verse.AI.ThinkNode_Priority TryIssueJobPackage: System.TypeInitializationException: The type initializer for 'CatsHuntForFun.CatsHuntForFun' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].set_Item (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at CatsHuntForFun.CatsHuntForFun..cctor () [0x000b3] in <6eda34fc06ba42c9af4ab8d525cab2c5>:0
--- End of inner exception stack trace ---


https://gist.github.com/HugsLibRecordKeeper/645ac563f66a052c4b6283bed29085f5
Alexander The Great Oct 12, 2023 @ 4:41am 
imma just send the log to you in private message
steam is being demented
Mlie  [author] Oct 11, 2023 @ 10:30am 
@Alexander The Great Do you think you can post the full log? And is this with any other mod loaded?
Alexander The Great Oct 11, 2023 @ 10:22am 
imma post the lill bug report here.


ive noticed an odd little red log spam from the cats hunt for fun mod of yours suddenly, starting a new game

https://gist.github.com/Alexsys/6dbfa99a0cb62c726729f734c9392110
Mlie  [author] Apr 18, 2023 @ 9:58pm 
@roguelovex The check for prey happens as a normal check for activity as with any pawn. When checking for prey they then have a 25% chance of attack each attack
roguelovex Apr 18, 2023 @ 6:31pm 
Do the chances of them attacking prey happen only when they spot the prey? Or does it calculate at fixed times?
Like if I have it set at 25% chance to hunt prey and it failed, when will it check to see if the cat will hunt it again?
BadOaks Apr 14, 2023 @ 12:27am 
That's awesome, thank you!
Mlie  [author] Apr 12, 2023 @ 11:09am 
@BadOaks Cats should now ignore animals that have a deathaction that is harmful
BadOaks Apr 9, 2023 @ 3:48pm 
I love the idea of the mod but one of my cats just attacked a boomrat and killed itself. Would be nice if the options provided a way to avoid that scenario.
unlikeaboss Jan 3, 2023 @ 8:28pm 
this isnt just cool its just plain true
sammy2020 Oct 14, 2022 @ 11:39pm 
can you add a mod setting so the animals wont attack animals from other factions
Mlie  [author] Jul 31, 2022 @ 1:51pm 
@dragonkade333 Try and find out what mod is triggering it. Some mods that adds animals have been missing some required values in the past. If you find out what mod it is I can add a workaround for it
dragonkade333 Jul 31, 2022 @ 1:47pm 
If I open the mod settings for this mod- It crashes the GUI and I need to reset the game.
Alexander The Great Jul 20, 2022 @ 9:16am 
yeah, same odd spam that doesnt allow me to play, constantly pauses my game
Mlie  [author] Jul 10, 2022 @ 10:04am 
@Daedalus Thank you, seems that there was an issue in Advanced Biomes where the Mutant Cow used the normal Cow-racedef instead of its own. I updated that mod now and it will no longer cause issues in this (or similar mods).
Daedalus Jul 10, 2022 @ 6:49am 
Same error as @Eyelikegiants. Shows up as red error on startup and then again, when entering the options for Cats Hunt For Fun . Error happend when loaded with the mod Advanced Biomed (Continued) .

Error Log [gist.github.com]
Mlie  [author] Jul 10, 2022 @ 12:02am 
@WormGang Report back if you find out what other mod is causing it
WormGang Jul 9, 2022 @ 9:46pm 
@Mlie Removed Erin's cat overhaul and no dice, same menu closing error. this is the only problem ive noticed while using this mod, i havent had a chance to see if it causes problems elsewhere
Mlie  [author] Jul 9, 2022 @ 11:39am 
@WormGang Found a possible issue connected to populating the list of cats in the game. Can you test and see if it helped with your issue?
WormGang Jul 8, 2022 @ 7:11pm 
@Mlie yep yep, i have Erin's cat mod too so maybe that could be conflicting with something?
here is the link to the log
https://gist.github.com/f1b678e8b043f1aaeee57c874205d254
Mlie  [author] Jul 8, 2022 @ 9:56am 
@WormGang I tested the mod with Alpha animals, Pawnmorpher and all VE animal-mods with no issues. Can you follow the steps described under "Reporting Issues" above?
WormGang Jul 8, 2022 @ 5:55am 
same issue and errors as eyelikegiants, currently stuck in the mod options menu for Cats hunt for fun, i use alpha animals pawnmorpher and a bunch of VFE mods that add animals and most likely adds different cats. boo womp
Mlie  [author] Jul 7, 2022 @ 11:53am 
@Eyelikegiants Hmm, some animal added by your other mods are triggering the error when this mod is trying to save the settings. It might be an animal that do not have some of the regular properties or similar. Do you have any idea of what mod it could be?
Eyelikegiants Jul 7, 2022 @ 11:40am 
Got an error. Went to mod settings, changed and looked at several different mod settings, no problem. Arrived at Cats Hunt for Fun and instead of any options there is only text about an error and now I am stuck on the screen. My game is still chugging along just fine but when I click "close" to leave the mods settings it only changes the error text. It also changes slightly differently if I click "esc"

Otherwise love the mod.
I'm just going manually close it all and restart, but wanted to report it. <3

Error Text I am stuck on [imgur.com]
Aatxe Jul 3, 2022 @ 9:54pm 
Perfect mod to combine with the Rats! mod
Corvet Jul 3, 2022 @ 4:00pm 
Awesome man, cheers!
Mlie  [author] Jul 3, 2022 @ 2:14pm 
@Corvet Sure, should be added now
Corvet Jul 2, 2022 @ 6:15am 
Could you make it so when a cat is bonded to a pawn, there is a chance it'll haul the dead body to the pawns bedroom like cats to? Hell, if its possible, you could have the cat have a chance to grab a still alive small animal like a rat and move them?
Azurel Morningstar Jun 29, 2022 @ 12:02pm 
there's a mod called Allow Dead Animals that you can run that auto-allows corpses after a small lag upon death, i assume so your colonists dont try to take food away from wild predators *while they're still eating it*
I run it as a matter of course and on high wildlife maps the extra meat source is nice.
This mod means High Lord Floofykins can finally indulge in the wonton slaughter that is his birthright! BWAHAHAHA
Yoann Jun 29, 2022 @ 3:40am 
Thank you, I already use cats to hunt small animals by not feeding them, I only wanted to maybe see them hunt more often (not especially hunt for me, just don't let corpses everywhere).
But with your other mod it become more interesting :)
Mlie  [author] Jun 29, 2022 @ 12:20am 
@Yoann If you want a mod that lets animals hunt for you then I think the Hunt for me mod is a better choice. This is more of a way to make cats behave more like in real life and take care of pest-control in the base. Also as a companion mod to my Rats! Mod.