RimWorld

RimWorld

519 ratings
WM Smarter food selection
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.1, 1.2
File Size
Posted
Updated
1.100 MB
Mar 20, 2017 @ 7:33am
Mar 27, 2021 @ 9:05am
21 Change Notes ( view )

Subscribe to download
WM Smarter food selection

In 1 collection by Wishmaster
Must-have QoL, vanilla friendly
44 items
Description
THIS MOD IS NOW DISCONTINUED AND DOES NOT WORK PROPERLY ANYMORE.
Text me if you are interested in taking over the mod.

1.0 version here https://steamcommunity.com/sharedfiles/filedetails/?id=2015294650

Mod Website
https://github.com/juliencsharp/Smarter.food.selection

Allows you to restrict the foods of your pawns (prisoners, animals, ascetic, cannibal).

* In-game UI to individually assign food policies.
* Force your pets to eat grass, human corpses, hay....
* Better food selection algorithm.
* Upgraded and smarter nutrient paste dispenser.
* Make your pet hunt for their own food.
* Animals will now search their food all across the map.

* Use Hotkey (default "\") to display food search information. Useful to check the behavior of the mod with custom policies.

* Save compatible.

If you like this mod, please consider supporting me on
Patreon[www.patreon.com]
...or just offer me a coffee[ko-fi.com].

Previous releases.
https://github.com/Wishmaster01/Smarter.food.selection/releases

Policies and food assignment

* Assign policies individually to your pawns.
* Policies will favor or forbids some foods or hunting.
* Visitors and other friendly/neutral pawns have their own policy and you can not change it.
* Create your own policies with XML (comes with presets). Example here: https://pastebin.com/QTAbERE0

Nutrient Paste Dispenser

* Force the dispenser to output meals.
* Visitors will use the NPD instead of picking the food from hoppers.
* You can use the NPD from a prisoner's room to feed injured prisoners.
* NPD will select the best ingredients according to the eater. When possible, cannibals and animals will get human meat. It will avoid human and insect meat for others.
* (Optional). The dispenser will create a specific nutrient paste item if it contains human meat. Useful to avoid to stack with other meals and mix ingredients.
* Fixes the vanilla bug where attempting to deliver food to a prisoner room with an empty NPD produces an error.

Animals / pets / handling

* Your pets become miraculously smart even they will respect the policy you assigned to them.
* The default pets policy makes them pick food in the following order (when they can eat it):
[Grass > Hunting (predator race) > Humanlike corpse > Hay > Nutrient paste > Kibble > Human raw meat > Insect raw meat > Raw food bad > Raw food tasty* > Corpses > Insect corpses > Simple meal > Fine meal > Lavish meal]
* Avoid your pets to get hurt while hunting. You can set a maximum predator/prey strength ratio beyond which they will not target a prey. (Vanilla is 0.5, mod default is 0.25). Check mod settings, not policy.
* Colonists will prefer using the best food for taming and training.

Special traits (Ascetic, Cannibal, Incapacitated)

* All of those have their own preset policy.
* Ascetic will always prefer nutrient paste meals instead of being indifferent.
* Cannibal will prefer meals with human meat and the dispenser will give them human meat meals.
* Incap. can't go berserk right ? Just feed them like ascetic colonists or even animals. (Assign a policy).

Caravans

* Food policies are applied to your pawns in caravan.

Custom policies

* Use this example https://pastebin.com/QTAbERE0
* Place your file in Defs/Policies .
* You can also use files in Defs/Policies as examples !
* Watch out for unique label and defnames
* The mod root folder should be somewhere in \SteamLibrary\steamapps\workshop\content\294100\887716138
* To see how your policy acts, assign a pawn with your policy and select it. then press "\" (default key) to cycle through display modes.

LIMITATIONS

* You cannot customize policies in-game for now. You can only create them with XML or use presets.
* For now you CANNOT assign policies to pawn while they are traveling as a caravan. The policy in effect while traveling is the policy you have set while a map (=not traveling). Be careful.

KNOWN ISSUES

* Recruited prisoners will keep their default policy to prisoners. (seems to happen with Hospitality only).
* Colonists will not fill the hoppers to get food from the NPD.
* Taming colonists will pick unlimited quantities of food when no appropriate food is available for the tamee. ONLY when "control pets" option is disabled.
* Some performance issues when having a lot of pets eating grass.
* Some pets like cats will wrongly prefer simple and nutrient paste over kibble.
* Cannibal feeding a patient with a nutrient paste dispenser will dispense a human meat meal if possible even if the patient is NOT cannibal.
* "Cannibal nutrient paste meal" produce by dispenser can be found among traders. Those do not contain human meat however and are just like the regular paste meal.

COMPATIBILITY

Combat Extended
* trying to tame/train with hay or more will make the colonist pick up and drop hay endlessly.

* The mod should be compatible with most mods that add more foods. Such as VG (to be checked).

* SFS dynamically categories all food definitions from every mod. This affects how policies affect their selection. You can see all those information on the "compatibility report" of the mod printed in the log on start.
* If it appears that some items are not correctly classified, the mod supports XML "compatibility patches". They will force a set of foods to appear in a given category.
* Everything needed to create those patches is the Defs/Compatibility folder of the mod.

Planned features

* Better UI.
* Create custom policies in-game.
* Change taming policy.
* Complete paste dispenser rework (built-in freezer and storage tbh, pets can use it, smaller meals for small pets).
* Pets will take their dead prey to the nearest storage.
* Change caravans policies.
* Food selection depending on the rot time.

Complete description https://ludeon.com/forums/index.php?topic=30708.0

Version 2.3 B19

Credits

* UnlimitedHugs for HugsLib and for assistance.
* Pardekei for Harmony, which is an awsome library to.

* To my supporters on Patreon :) [www.patreon.com]
Popular Discussions View All (6)
144
Jul 20, 2019 @ 1:51am
PINNED: Bugs and issues report.
Wishmaster
29
Apr 9, 2019 @ 11:41am
PINNED: Suggestions
Wishmaster
17
Jul 30, 2017 @ 12:03am
Error-spamming bug (previously stuttering bug)
Gorb
< >
773 Comments
Belial03 Sep 14, 2021 @ 1:16am 
aww, discontinued mod :(
Wishmaster  [author] Sep 7, 2021 @ 11:37am 
The mod is discontinued.
If some wants to take over a messy base code, he/she's welcome
Gigi Sep 6, 2021 @ 5:15am 
hi, any update for version 1.3?
Wishmaster  [author] Sep 2, 2021 @ 1:41pm 
Steam had took the mode offline for some reasons... Now back online with no less bugs than before.

Sorry for the inconvenience
Wishmaster  [author] Mar 27, 2021 @ 9:06am 
I published the update. Thank you for the PR because I had completely forgot...
Zorgomol Mar 21, 2021 @ 8:24am 
No.

I'm not going to bother with github's asinine captcha for this.
Wishmaster  [author] Mar 21, 2021 @ 7:42am 
Can you do a pull request ? Are you sure about the side effects ?
Zorgomol Mar 21, 2021 @ 7:26am 
Here's how to fix the starving predators bug (need to modify the c# code)

Utils.cs:150 IsAnyoneCapturing()
after arg =>
insert arg.CurJob != null &&

I made my own copy, someone with github account can fix the github version if they so want.
Wishmaster  [author] Jan 29, 2021 @ 9:50am 
It's very unlikely...
Skyshadow Jan 28, 2021 @ 5:24pm 
I hope you find the motivation soon. I finally had to kill this one cause it was locking up my game. Very sad :(