Sorry for my delay in getting back to you! This took awhile to troubleshoot and real life intervened.
Okay, here we go:
Overview
The fact that the group and instance numbers for your custom Sim Data file matched the group and instance numbers of the original Quick Meals pie menu category is why your custom Grab a Drink pie menu overrode the the Quick Meals pie menu category, causing it to disappear.
But the fact that your Grab a Drink pie menu disappeared, once you fixed that issue, indicates that there is at least one other problem with this file.
I took another look and after troubleshooting, I found a couple of issues.
Before I begin, I want to emphasize that the problems below generally were not immediately obvious (at least to an amateur like me), so I understand your frustration in trying to get this file to behave.
Step One
Since your Pie Category Tuning file and Interaction Tuning file are both custom files, change their group numbers to 80000000.
Step Two
The fifth line of your Pie Menu Category Tuning file reads _collapsible with the value of true. As MizoreYukii indicated in
this thread, if collapsible isn't set to false, your pie menu might not show up.
Change the value of collapsible in your corresponding Sim Data file from 1 to 0, which is the value that corresponds to false.
Step Three
The line of code linking your Interaction Tuning file to the Pie Menu Category Tuning file likely isn’t being read by the game.
In the tutorial that you linked, the example used was for creating a new pie menu category that appears when you click on a Sim or on a Sim’s pet. You’re trying to insert a pie menu category onto a fridge object to begin crafting another object.
Here, it is not an apples-to-apples comparison. MizoreYukii flagged this in the original tutorial by noting that usually/generally, the pie menu category is somewhere around the place of the screenshot, but she also indicated that one should read the TDESCs or look at similar interactions to find out where it’s located in the interaction tuning file.
As it happens, in this case, the pie menu category is stored in a different place in this type of interaction tuning file.
Let’s look at the interaction tuning file that you modeled your interaction on: fridge_GrabSnack_PieMenu. If you look at lines 12-25 of that file, you see that there’s no line of code that resembles what's in Line 13 of your interacting tuning file.
Your interaction:
fridge_GrabSnack_PieMenu interaction:
Now ctrl-F for “category” in the fridge_GrabSnack_PieMenu interaction tuning file. There are two results.
And if you go to the second result, on lines 74-80, there’s the pie menu category tuning.
Now toggle over to your interaction tuning, and scroll down to Line 77.
It’s still set to the old pie menu category: fridge_GrabSnack and the old pie menu category name.
To resolve this:
- Delete Line 13 from your Interaction Tuning File.
- Paste the tuning ID of your pie menu category to replace 74277 in line 77 in the Interaction Tuning File.
- Paste your interaction name to replace fridge_GrabSnack in line 77 of the Interaction Tuning File (the latter is not necessary to get the text to show up in game but makes your life easier if you have to come back to this tuning file later).
Step Four
The tuning ID and name for your interaction tuning file, not your pie menu category tuning file, are what need to be added to each super-affordance list in the fridge object tuning files. If you look directly above what you’ve added, you’ll see that it’s the interaction tuning file for Grab Snack, which you modeled your own interaction tuning file on, that’s included here. (The fact that the name of the file ends in "pie menu" really confuses the issue).
Note: You'll need to check every object tuning file for this; I just looked at object_fridgeMED_01.
Step Five
Steps 1-4 above should make the pie menu category show up in game. Step 5 is to fix another issue I found when testing the file.
Go back to Line 78 in the screenshot above. It looks like you inserted the key corresponding to your “Grab a Drink” string.
The problem is, this line item (pie menu name) actually controls what shows up in the options once you’ve clicked on the initial pie menu, Grab a Drink. Since you’ve copied the recipes from Quick Meals, in game, you should be seeing options like Applesauce and Edamame, which correspond to the Quick Meal options. But because you changed the value here to your string, every option (from Applesauce to Off-Brand Soda) is labeled as “Grab a Drink.”
Revert it back to 0x7F13707D, and you’ll see the recipe names show up again in game.
Additional Note
You might want to consider using
Scumbumbo’s XML Injector and creating a snippet tuning file that injects your new interaction into specific fridges, instead of modifying the object tuning files of the fridges as you did here.
The problem with directly modifying game resources, like object tuning files, is that it means that your mod will conflict with any other mod that modifies the same game resources and will likely cause errors.
The benefit to using the XML injector is avoiding this problem altogether, and it means you don’t have to make edits to 15 object tuning files, just 1 snippet file.
The Modders’ Documentation provides a guide on how to inject interactions into objects on pages 4-6.
Let me know if you have any questions!