swiffy's Grocery Fixes

SCREENSHOTS
Downloaded 170 times 22 Thanks 3 Favourited 1,813 Views
 Say Thanks!
Personal Picked Upload! This is a personal favourite of the creator!
This mod requires Lazy Duchess' Mono Patcher Library.

Description
This is a script mod to fix the EA oversight where a household needs to cook any recipe at least once for anything to show up in the Shop by Recipe tab of a Grocery Store. It also optionally adds Quick Meals to the Shop by Recipe tab if ani's No Fridge Shopping mod is installed. It should work with all custom recipe mods.

Installation
Place swiffyMisc.GroceryFixes-RequiresMonoPatcher-v1.0.package either in your Mods/Packages folder or Mods/Overrides folder. Both should work.
No cache deletion is required for the mod to work. To uninstall, simply remove the mod package.

Required Files, Compatibility and Conflicts
You must have the .package file for Lazy Duchess' Mono Patcher Library for this mod to work.

Optionally, you can install ani's No Fridge Shopping mod (on NRaas, not MTS!) for EA Quick Meals to also show up in the Shop by Recipe tab. This will, obviously, also remove the ability to instantly buy ingredients at cooking appliances.

No packs are required.
This mod should be compatible with all custom recipe mods. Let me know if something doesn't show up though.
It's also a non-core script mod, so it should be compatible with most other mods. It is compatible with the NRaas suite.
Still, if a core mod or Mono Patcher-dependent mod also overrides the CreateRecipeItemList method, it will conflict.

Tuning
To configure the two features of the mod, open the mod package in s3pe. Right-click the swiffyMisc.GroceryFixes.ShopByRecipeFixes _XML and either Export to file then re-import or edit in Notepad and commit the changes. Save the file to save your edits.


Changelog


Known Issues and Non-Issues
  • Where's the Grilled Cheese recipe? It's a Cooking Level 0 Recipe, right?
    Nope. For some reason, many wikis say this. It's unlocked at Cooking Level 2 in reality.
  • Some recipes with abstract, general ingredients, such as Fruit, only let me buy one version of its ingredient set, such as Apple, and only show the inventory number for that.
    I'm fairly sure this also happens with some base game recipes too. It's harmless, though. I might look into modifying it in the future.
  • My game takes a microsecond longer to load the Shop for Groceries menu now.
    I'd test what happens without the mod first. The mod does have a slight flaw in that in your household, it will check every Sim against all the recipes multiple times if none of them have the skill. This could cause lag in highly extreme cases where you have tons of Level 0 Recipes and a huge household. I might fix it in the future.

Background
Hey everyone! This is my first time ever making a proper mod. I hope you enjoy it. Whenever I loaded new households in The Sims 3, I always noticed that the Shop by Recipe menu when I Shopped for Groceries was empty at first. Especially when I had no starting ingredients and Ani's No Fridge Shopping mod, it was always a weird thing that just fixed itself. Finally, after loads of confusion and research, I realised the technical reason for this is that new Sims have no Cooking skill at all. Not even 0! It's just not been initialised yet. This means that the game doesn't give any Sims in a brand-new household (or most premade households, for that matter) any known recipes, even though they should know the Cooking Level 0 ones. This mod overrides the game method that makes this list so if the skill isn't found, the Cooking Level 0 recipes should still show up. I also realised, while doing this, that not as many recipes showed up as I expected. This is when Ani's No Fridge Shopping mod became even more helpful, because it adds recipes for Quick Meals so you need the ingredients for them. Eventually, I managed to add those too, for all households. After a lot of trial and error, I came to this result where any household, new or old, no matter the Cooking skill, should be able to see the correct recipes on the Shop by Recipe tab.

Credits
Ani's No Fridge Shopping mod, most up-to-date on NRaas
Lazy Duchess' Mono Patcher Library
s3pe
ModTheSims Modding Tutorials
EA original code
Advertisement:
Creator Recommendations:
Install ani's No Fridge Shopping mod (on NRaas, not MTS!) for EA Quick Meals to also show up in the Shop by Recipe tab. This will, obviously, also remove the ability to instantly buy ingredients at cooking appliances.
Other Download Recommendations:
More downloads by swiffy: See more