MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Fridge Leftovers Reworked (Updated 12/14/20)

by LazyDuchess Posted 31st Oct 2020 at 3:07 PM - Updated 14th Dec 2020 at 6:48 PM by LazyDuchess : 12/14/2020 update
18 Comments / replies (Who?) - 13 Feedback Posts, 5 Thanks Posts
12/14/20 Update: Attempt to fix errors thrown when cleaning up spoiled leftovers.
12/11/20 Update: Attempt to fix in-world plates occasionally getting stacked on the spoiled dishes when cleaning up spoiled leftovers.
11/03/20 Update: As Nopke suggested, made the clean up spoiled leftovers interaction show the actual stacked dishes you had in your fridge. Also updated the interaction name.

This mod attempts to bring the leftovers system found in TS2 more in line with those from TS3 and TS4. Keep in mind that any leftovers you already had in your save will get wiped upon loading with this mod for the first time.

Features
  • Leftovers now spoil over time while they are in the fridge, although at a slower rate (72 hours, or 3 days, by default)
  • You can't keep an unlimited amount of leftovers in the fridge anymore, now capped at 5 by default.
  • Spoiled leftovers take up space, so you should get rid of them with the new "Clean Up Spoiled Food" fridge interaction.
  • Should work on all fridges that have the Leftovers feature, including CC ones.

Conflicts
Will clash with any mod that replaces the following resources:
TypeNameInstanceIDGroupID
BHAVInteraction - Store LeftOvers0x000020950x7F8834C8
BHAVInteraction - Store LeftOvers TEST0x000020960x7F8834C8
BHAVInteraction - Get Leftovers0x0000208B0x7F8834C8
BHAVInteraction - Get Leftovers TEST0x0000208C0x7F8834C8
STR#MakeAction strings0x0000012E0x7F9A5330

Due to some limitations with managing inventories via SimAntics, it will also clash with any mod that add leftovers to the fridge on their own.
You will need Seasons or higher.

Tuning
  • You can change how long leftovers take to spoil by modifying the BCON entry in "ld_leftovers_tracker.package" with SimPe.
  • You can change how many leftovers you can keep in the fridge at once and the maximum amount of stacked spoiled dishes when cleaning up in "ld_leftovers.package".

Troubleshooting
Reloading the lot should get rid of any bugged leftovers, but please, let me know (with logs) if you get errors!

Additional Credits:
The creators of SimPe.

You must have the expansion or stuff packs listed below installed to use this custom content. Please see the post text for any exceptions.

Sims 2 Seasons
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
LeftoversRework.zip

Size: 112.5 KB · Downloads: 1,249 · 14th Dec 2020
112.5 KB 1,249 14th Dec 2020
Don't forget to Thank the creator after downloading! Use the Thanks button located above the screenshots above.
Basic Download and Install Instructions:

1. Download: Click the download link to save the .rar or .zip file(s) to your computer.

2. Extract the zip, rar, or 7z file.

3. Place in Downloads Folder: Cut and paste the .package file(s) into your Downloads folder:
  • Origin (Ultimate Collection): Users\(Current User Account)\Documents\EA Games\The Sims™ 2 Ultimate Collection\Downloads\
  • Non-Origin, Windows Vista/7/8/10: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads\
  • Non-Origin, Windows XP: Documents and Settings\(Current User Account)\My Documents\EA Games\The Sims 2\Downloads\
  • Mac: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads
  • Mac x64: /Library/Containers/com.aspyr.sims2.appstore/Data/Library/Application Support/Aspyr/The Sims 2/Downloads
Need more information?
 
18 Comments / Replies (Who?) - 12 Feedback Posts, 5 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Field Researcher
#2 Old 31st Oct 2020 at 8:06 PM
I really like this idea but… Why spoiled food is a separate object, not just the original food with spoiled state?

Trying to speak English well.
Q&A on Tumblr | Discord | Latest updates of my mods
Lab Assistant
Original Poster
#3 Old 31st Oct 2020 at 9:33 PM Last edited by LazyDuchess : 31st Oct 2020 at 10:39 PM.
Quote:
Originally Posted by Nopke
I really like this idea but… Why spoiled food is a separate object, not just the original food with spoiled state?

That's because I hadn't really looked into how to stack plates via bhav, but I should, it would def make more sense lol.
Test Subject
#4 Old 1st Nov 2020 at 2:09 PM
A clever mod that I'm honestly surprised hasn't been made before. Unfortunately, I fear it may conflict with a mod I use that allows you to split serving platters into single plates when storing them as leftovers.
Test Subject
#5 Old 2nd Nov 2020 at 8:28 AM
Quote:
Originally Posted by n8smom8496
A clever mod that I'm honestly surprised hasn't been made before. Unfortunately, I fear it may conflict with a mod I use that allows you to split serving platters into single plates when storing them as leftovers.

I have that mod too... I'm not sure if the two mods will conflict with each other
Lab Assistant
Original Poster
#6 Old 3rd Nov 2020 at 7:31 AM
Quote:
Originally Posted by cupcakescankill
I have that mod too... I'm not sure if the two mods will conflict with each other

Assuming you mean Simply Leftovers, they will unfortunately, as they override the same behaviours.
Scholar
THANKS POST
#7 Old 8th Nov 2020 at 3:24 PM
I've been using Simple Leftovers forever. And I really like it. But this idea of yours is simply awesome - leftovers finally will make sense! - so I'm ready to say goodbye to Simple Leftovers as they conflict.
And I'm grateful you included indications as how to customize it btw. Five dishes is too little for some of my families (because my family parents pixels like batch cooking, hehe) so I'm giving them fifteen. As they will now spoil, I'm sure they'll be careful and not store more than they can use up within three days!
Field Researcher
THANKS POST
#8 Old 11th Nov 2020 at 7:46 PM
Thank you so much for this! You've saved me. I've been going through a rather embarrassingly OCD rigmarole of manually cleaning out all the leftovers from my sims' fridges when they've been in there too long. I can't wait to never do that again!
Test Subject
#9 Old 10th Dec 2020 at 6:36 PM
Hello Lazy Duchess! First, thanks for your amazing mods. The Reworked Fridge Leftovers one and the Auto Engagement/Breakup, I love these kind of mods!! However, I maybe found a bug but I'm not sure if it's one. I have pictures for you to illustrate (https://imgur.com/a/rfkpJId ; btw sorry it's in French, I translated your mod! "Prendre les restes" = "Get Leftovers" and "Nettoyer la nourriture gâtée" = "Clean Up Spoiled Leftovers").

- So on my fridge, I have both the options "Get Leftovers" and "Clean Up Spoiled Leftovers" (Picture 1).
- There is only one leftover in the fridge, I take it so now it's on the counter (Picture 2).
- Now, when I click "Clean Up Spoiled Leftovers", the plate on the counter dispears to be with the other spoiled food (Picture 3).

I don't think it is supposed to do that?
Lab Assistant
Original Poster
#10 Old 11th Dec 2020 at 1:00 PM
Quote:
Originally Posted by xBoubix
Hello Lazy Duchess! First, thanks for your amazing mods. The Reworked Fridge Leftovers one and the Auto Engagement/Breakup, I love these kind of mods!! However, I maybe found a bug but I'm not sure if it's one. I have pictures for you to illustrate (https://imgur.com/a/rfkpJId ; btw sorry it's in French, I translated your mod! "Prendre les restes" = "Get Leftovers" and "Nettoyer la nourriture gâtée" = "Clean Up Spoiled Leftovers").

- So on my fridge, I have both the options "Get Leftovers" and "Clean Up Spoiled Leftovers" (Picture 1).
- There is only one leftover in the fridge, I take it so now it's on the counter (Picture 2).
- Now, when I click "Clean Up Spoiled Leftovers", the plate on the counter dispears to be with the other spoiled food (Picture 3).

I don't think it is supposed to do that?

Thank you for the report! I'll check what's up.
Lab Assistant
Original Poster
#11 Old 11th Dec 2020 at 6:35 PM
I've looked into it, and I believe the issue shouldn't happen anymore.
Test Subject
THANKS POST
#12 Old 11th Dec 2020 at 8:42 PM
Awesome, thank you so much!
Test Subject
#13 Old 13th Dec 2020 at 1:59 PM
I've got an error when I Clean Up Leftovers :/

Build: 1.17.0.66
at Oct 11 2008,15:12:07

Object id: 316
name: N005_User01359 - Quentin
Stack size: 8
Error: Reference to tree tree parameter when no parameter exists.
Iterations: 109
Frame 7:
Stack Object id: 0
Node: 6
Tree: id 8442 name 'Sub - Create spoiled leftovers stack to Temp0' version -32743
from FridgeGlobals
Prim state: 0
Params: Locals: 0 0 0 0
Frame 6:
Stack Object id: 332
Stack Object name: Fridge - Moderate - Stainless
Node: 4
Tree: id 8383 name 'Sub - Interaction - Clean Spoils' version -32743
from FridgeGlobals
Prim state: 0
Params: Locals: 332 0
Frame 5:
Stack Object id: 332
Stack Object name: Fridge - Moderate - Stainless
Node: 2
Tree: id 8331 name 'Interaction - Get Leftovers' version -32743
from FridgeGlobals
Prim state: 0
Params: 332 2 Locals:
Frame 4:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 5
Tree: id 281 name 'Wait For Notify' version 8
from global
Prim state: 1
Params: 0 1 Locals:
Frame 3:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 1
Tree: id 8282 name 'Function - Main - Check Queue' version 50
from PersonGlobals
Prim state: 0
Params: Locals: 332
Frame 2:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 2
Tree: id 8283 name 'Function - Main - Loop' version 96
from PersonGlobals
Prim state: 0
Params: 5 20 1 Locals: 0
Frame 1:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 6
Tree: id 8193 name 'Function - Main' version 118
from PersonGlobals
Prim state: 0
Params: Locals: 5 20 0
Frame 0:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 1
Tree: id 4096 name 'Function - Main' version 2
from TemplatePerson
Prim state: 0
Params: Locals:
Lab Assistant
Original Poster
#14 Old 14th Dec 2020 at 6:37 PM
Quote:
Originally Posted by xBoubix
I've got an error when I Clean Up Leftovers :/

Build: 1.17.0.66
at Oct 11 2008,15:12:07

Object id: 316
name: N005_User01359 - Quentin
Stack size: 8
Error: Reference to tree tree parameter when no parameter exists.
Iterations: 109
Frame 7:
Stack Object id: 0
Node: 6
Tree: id 8442 name 'Sub - Create spoiled leftovers stack to Temp0' version -32743
from FridgeGlobals
Prim state: 0
Params: Locals: 0 0 0 0
Frame 6:
Stack Object id: 332
Stack Object name: Fridge - Moderate - Stainless
Node: 4
Tree: id 8383 name 'Sub - Interaction - Clean Spoils' version -32743
from FridgeGlobals
Prim state: 0
Params: Locals: 332 0
Frame 5:
Stack Object id: 332
Stack Object name: Fridge - Moderate - Stainless
Node: 2
Tree: id 8331 name 'Interaction - Get Leftovers' version -32743
from FridgeGlobals
Prim state: 0
Params: 332 2 Locals:
Frame 4:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 5
Tree: id 281 name 'Wait For Notify' version 8
from global
Prim state: 1
Params: 0 1 Locals:
Frame 3:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 1
Tree: id 8282 name 'Function - Main - Check Queue' version 50
from PersonGlobals
Prim state: 0
Params: Locals: 332
Frame 2:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 2
Tree: id 8283 name 'Function - Main - Loop' version 96
from PersonGlobals
Prim state: 0
Params: 5 20 1 Locals: 0
Frame 1:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 6
Tree: id 8193 name 'Function - Main' version 118
from PersonGlobals
Prim state: 0
Params: Locals: 5 20 0
Frame 0:
Stack Object id: 316
Stack Object name: N005_User01359 - Quentin
Node: 1
Tree: id 4096 name 'Function - Main' version 2
from TemplatePerson
Prim state: 0
Params: Locals:

Got that one today myself as well, thank you for reporting. I'll look into what could be causing these errors and try to push a proper fix.
Lab Assistant
Original Poster
#15 Old 14th Dec 2020 at 6:49 PM
I believe the problem related to spoiled dishes getting deleted in ways out of my control. I've added some object verification functions so it should be okay now, hopefully, tested it and the errors don't pop up anymore.
Test Subject
THANKS POST
#16 Old 14th Dec 2020 at 7:55 PM
Thanks again!!
Test Subject
THANKS POST
#17 Old 17th Dec 2020 at 10:27 PM
First off, thank you for this mod. I came across a weird error/bug while playtesting. This happened only in apartments: when playing for a bit all the phones in the apartment will get unuseable (no error messages, just not usable anymore, the telephone receiver is missing!), until I buy a new one or I reset it with testingcheats. This bug applies to all phones and like I said only on apartment lots. I took your mod out and the problem was solved, so your mod has some sort of involvement with phones on apartment lots, I guess.
Just want to let u know this
Lab Assistant
Original Poster
#18 Old 18th Dec 2020 at 6:59 AM
Quote:
Originally Posted by datthomas
First off, thank you for this mod. I came across a weird error/bug while playtesting. This happened only in apartments: when playing for a bit all the phones in the apartment will get unuseable (no error messages, just not usable anymore, the telephone receiver is missing!), until I buy a new one or I reset it with testingcheats. This bug applies to all phones and like I said only on apartment lots. I took your mod out and the problem was solved, so your mod has some sort of involvement with phones on apartment lots, I guess.
Just want to let u know this

That's... super random. Thank you for letting me know!
Test Subject
#19 Old 21st Oct 2021 at 8:44 AM
Quote:
Originally Posted by datthomas
First off, thank you for this mod. I came across a weird error/bug while playtesting. This happened only in apartments: when playing for a bit all the phones in the apartment will get unuseable (no error messages, just not usable anymore, the telephone receiver is missing!), until I buy a new one or I reset it with testingcheats. This bug applies to all phones and like I said only on apartment lots. I took your mod out and the problem was solved, so your mod has some sort of involvement with phones on apartment lots, I guess.
Just want to let u know this

I have the same problem ???? Really weird bug.