RimWorld

RimWorld

68 ratings
Variety Matters Improved (Continued)
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3
File Size
Posted
Updated
135.009 KB
26 Aug, 2021 @ 1:18pm
24 Oct, 2021 @ 11:46pm
6 Change Notes ( view )

Subscribe to download
Variety Matters Improved (Continued)

In 1 collection by Mlie
Mlie's resurrected mods
845 items
Description

Update of Cozarkians mod
https://steamproxy.net/sharedfiles/filedetails/?id=2353847457

- Added french translation, thanks qux!
- Set a maximum of low variety for prisoners, slaves and ascetic pawns



[invite.gg]
[github.com]


What Does This Mod Do?

Pawns now have a variety need. Pawns satisfy the need by eating different varieties of foods.

Basic Guide
Open a pawn's need tab and hover over variety. The tooltip will display Varieties Expected and Recent Varieties. Every time your pawn eats, these numbers change and you gain/lose variety.

Recent Expected = Gain variety
Recent Expected = Lose variety
Recent = Expected = Move toward 50%

What Counts as a Variety?

To count as a variety, a food must provide nutrition. Thus, for example, ambrosia is a variety while other drugs are not. Second, a food must either provide joy or be at least raw tasty. Thus, beer, chocolate, berries, and cooked meat are varieties, raw meat is not. Unless your pawn happens to be a cannibal, in which case they will treat raw humanlike flesh (and corpses!) as a variety. Finally, rotten foods do not provide variety.

A food's variety is based on its display name (label), not its defName, so "apples" added by two different mods will only provide a single "apples" variety.

The above rules always apply. However, there are three options for how to handle meals (foods that display ingredients):

Option 1: Ingredients Only

By default, ingredients are varieties, not the meals themselves. Grow different crops and hunt different animals and you'll have happy pawns. Feed your pawns nothing but rice, corn, and raiders, and you'll have unhappy pawns. There is NO benefit to providing a mix of pemmican/survival/nutrient paste/simple/fine/lavish meals. However, lavish meals provide an extra "lavishly-prepared" variety as well as the basic variety. Therefore, an all-lavish meal diet will provide twice the variety of a diet without lavish meals.

Meals that can have ingredients but don't (e.g. bought from traders, Replimat meals) are assigned a random "mystery-ingredient" variety when eaten. Fine and lavish meals also provide a mystery meat, and lavish meals provide a mystery lavish ingredient. The number of available mystery varieties depend on current expectations. It is balanced so a diet of all-fine mystery meals should approach a neutral (50%) variety need, while a diet of all-lavish mystery meals will slowly increase variety, but there is RNG involved.

Option 2: Ignore Ingredients

If you choose to enable the option to ignore ingredients then varieties will be based solely on the final product consumed, ignoring ingredients. Your pawns will want a mix of simple, fine, and lavish meals, pemmican and nutrient paste, but won't care if they are made entirely from corn and chicken.

This option is recommended only if you use mods with lots of new meals such as the Vanilla Cooking Expanded series or VGP Gourment Garden.

Option 3: Track Ingredients and Meals

This option causes pawns to track both the name of the meal and its ingredients. With this option you will need to both provide a variety of ingredients and a variety of meals. If, for example, you feed your pawns simple chicken meal and fine chicken/corn meal, you will have 4 varieties (rat, corn, simple meal, fine meal) compared to two varieties (rat/corn) with option 1 or two varieties (simple/fine meal) with option 2.

How Much Variety Do Pawns Need?

The base variety expectation depends on a pawn's current thought expectation and is adjustable in settings.

The expectation is then modified based on a pawn's current variety level. The closer a pawn is to 100% variety, the harder it is to stay there. The variety expectation will also change based on the number of mod-added varieties available at load-time and slightly decrease when the weather isn't suitable for growing crops.

How do Pawns Track Varieties?

Pawns remember the foods they've eaten up to 2x their current variety expectation. That means half of a pawn's diet needs to be new varieties in order to meet their expectation. The other half can be anything. For example, a pawn with an expectation of 10 that eats 10 fine rice bowls, each with a unique type of meat, will have 11 varieties (rice + 10 meats).

Once a pawn's memory is full, it will randomly forget a prior food to make room for the new meal. In the above example, if the pawn eats a simple, meatless rice bowl, there is a 50% chance it will replace one of the earlier rice meals and a 50% chance it will replace a meat memory, reducing variety to 10.

Will Pawns Look for New Varieties When Eating?

Yes! When choosing meals, pawns will prefer meals with at least one new variety. How much extra preference they assign to new varieties depends on their expectation. Thus, in the early game when expectations are low, pawns might still prefer nearby or spoiling food, but when variety expectations are high, they will put more emphasis on eating new varieties. Pawns will still generally prefer lavish to fine to simple, except at the most extreme variety expectations.

Will Pawns Use a Variety of Ingredients When Cooking?

Yes! New to this version, cooks will also look for new varieties when cooking meals. Similar to eating, cooks will base their ingredient choices on distance, variety, and (optionally) spoiling, with more emphasis on variety when expectations are high.

I didn't have performance issues during testing, but if you experience late-game issues, shrink the ingredient radius of your bills and use Variety Matters Stockpiles to ensure a variety of ingredients are available to your cooks. Alternatively, use option 2 (ignore ingredients) which disables this feature as unnecessary.

Are There Any Other Features?

There is a (recommended) option to prevent meals with different ingredients from stacking, which increases the variety of foods available. The downside is the need for extra storage space. Alternatively, you can increase the number of ingredients the game tracks when stacking meals. That option was added by request and how it affects variety has not been tested. Both of these features are unnecessary and disabled if using Option 2.

By default, sick pawns will temporarily stop caring about varieties. By request, a toggle was added to disable this feature. If I recall correctly, certain non-human race mods apply a beneficial hediff that is treated as being sick.

How is This Different than the Original Variety Matters?

The original version used a more robust tracking system with cyclical memory dumps that tried to reward pawns for eating new varieties and punish them for eating too much of the same thing


  • See if the the error persists if you just have this mod and its requirements active.
  • If not, try adding your other mods until it happens again.
  • Post your error-log using HugsLib and command Ctrl+F12
  • For best support, please use the Discord-channel for error-reporting.
  • Do not report errors by making a discussion-thread, I get no notification of that.
  • If you have the solution for a problem, please post it to the GitHub repository.

50 Comments
lintence91 28 Jun, 2023 @ 8:56pm 
That's great to hear! :)
Mlie  [author] 26 Jun, 2023 @ 1:32pm 
@lintence91 Its on the (rather long) todo-list
lintence91 26 Jun, 2023 @ 12:33pm 
Hey hey, @Mlie, any thoughts?
lintence91 16 Jun, 2023 @ 11:07pm 
Hello @Mlie, pinging you again on this. It's been about 7 months since 1.4 came out, and about 18 months since @Cozar last updated any of their mods. Would you consider re-listing this mod and updating it to 1.4? It seems unlikely @Cozar is going to return to modding anytime soon.

Thank you as always for supporting discontinued and unsupported mods!
Mlie  [author] 8 Dec, 2022 @ 10:08pm 
@lintence91 Usually mods that I have updated before and the author returned is treated as low prio. Id rather use my time to update other mods where I dont have to remove it a week later
lintence91 8 Dec, 2022 @ 9:42pm 
Hello @Mlie, how long without an update on the original mod by @Cozar would we have to wait before you considered updating this one? I'm asking for both this mod and another by @Cozar, Water is Cold (Continued).

We always appreciate your work for bringing us content so fast! Thank you!
Mlie  [author] 22 Oct, 2022 @ 5:08am 
@Max No, see the notice at the top
Max 22 Oct, 2022 @ 4:54am 
Any chance this could be updated? It's a mod I've very much enjoyed.
Mlie  [author] 23 Nov, 2021 @ 4:39am 
@Plump Pig Studios You would have to ask the author of the mod that.
Knotty Wood 23 Nov, 2021 @ 4:30am 
@Mlie does the original one show a list of foods eaten or just the last one?