Leftovers Overhaul

Two mods affecting how leftovers are handled - "Per-Fridge Leftovers" and "Closest Fridge For Leftovers Fix".


Per-Fridge Leftovers

This mod removes F-Space, ie. all fridges on a lot being inter-dimensionally connected!

Leftovers are now stored per fridge, no more putting leftovers away in the main kitchen's fridge and getting them out of the granny annex fridge!

Needs to be enabled on a per-lot basis.


Closest Fridge For Leftovers Fix

The standard "put away leftovers" behaviour is for the Sim to use the closest fridge to themselves. In the scene below, when the Sim is directed to put away the leftovers, they will walk to the table, pick up the leftovers and walk all the way back to use the red fridge, completely ignoring the orange fridge.

This mod changes the choice of fridge to be that nearest to the leftovers, favouring any fridges in the same room. So now the Sim will walk to the plate and put them into the orange fridge.

In the scene below, a Sim directed to put away leftovers that were on the counter next to the (dirty) cooker would place them into the pink fridge as it is in the same room even though the purple fridge is physically closer to the leftovers.


Installation - Closest Fridge

Copy the "WH_ClosestFridgeForLeftoversFix.package" file into your downloads folder.


Installation - Per-Fridge

Copy the "WH_PerFridgeLeftovers.package" file into your downloads folder.

If using my "Autonomously Eat Leftovers" mod, also copy the "WH_PerFridgeLeftovers_AutonomouslyEatLeftovers.package" file into your downloads folder.

If using MogHughson's "Simply Leftovers" mod, also copy the "WH_PerFridgeLeftovers_simply-leftovers.package" file into your downloads folder.

With the required .package files installed, start the game and enter a multi-fridge lot. From the buy screen, place a "Leftovers Controller" somewhere - it's the $0 condiments look-a-like set under Misc/Misc.

Click on Leftovers Controller and select "Enable". Now send a Sim to the main fridge in the house, select "Get Leftovers" and then cancel the pop-up dialog. All existing leftovers are now allocated to that fridge.


Uninstallation - Per-Fridge

Enter each lot that per-fridge leftovers have been enabled for and place a "Leftovers Controller" somewhere - it's the $0 condiments look-a-like set under Misc/Misc - if need be.

Click on the Leftovers Controller and select "Disable". All leftovers will now be available from any fridge.

Repeat for each lot that was enabled. When all lots have been disabled, delete the package file(s).

Note: If you forget to disable per-fridge leftovers for a lot before deleting the .package files, existing leftovers in that lot won't be accessible from any fridge. You can always put the mod back in, disable it, and then remove it again.


Conflicts

The closest fridge mod changes the BHAV "Find - Closest Refrigerator" (0x2097) in the food dish semi-globals (group 0x7F8834C8) so will conflict with any other mod that changes this BHAV.

The per-fridge mod changes the BHAV "Interaction - Store LeftOvers" (0x2095) in the food dish semi-globals (group 0x7F8834C8) and the BHAVs "Interaction - Get Leftovers" (0x208B) and "Interaction - Get Leftovers TEST" (0x208C) in the fridge semi-globals (group 0x7F9A5330), it also adds to the STR# 0x0130 (lua scripts) in both of these groups, so will conflict with any other mod that changes these BHAVs.

  • Known NOT to conflict with Boiling Oil's fridge mod.
  • Known to CONFLICT with my "Autonomously Eat Leftovers", but OK if loads after and "WH_PerFridgeLeftovers_AutonomouslyEatLeftovers-leftovers.package" is installed.
  • Known to CONFLICT with MogHughson's "Simply Leftovers", but OK if loads after and "WH_PerFridgeLeftovers_simply-leftovers.package" is installed.
  • Known to CONFLICT with LazyDuchess's "Fridge Leftovers Reworked", I will not be resolving these conflicts.
  • Probably CONFLICTS with the two mods mentioned by Boiling Oil in the intro to his mod.

Techy Stuff

All the complex stuff is in Lua. The BHAV changes are to call the Lua scripts. As such, it should be easy for other authors to merge these changes into their own code.


Simblr Links


Credits


Files