Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!

Sleep, Bed and Seating Mods

SCREENSHOTS
28,567 Downloads 461 Thanks  Thanks 122 Favourited 47,793 Views
Uploaded: 6th Apr 2018 at 8:51 AM
Updated: 27th Sep 2022 at 8:03 AM
Sleep in Your Own Bed Mod: Sims do not know which bed is theirs in this game, and whenever they want to sleep, they randomly choose a bed. The game does have bed ownership code: whenever a sim sleeps in a bed, their relationship with that bed increases by +5. Every 24 hours, the game decays the relationship by -2 and so on. The problem is that this feature is not used by the autonomous Sleep interaction. The game attempts to check the relationship of the sim with the bed, but fails, because the code seems to be completely non-sense. If you are curious as to what Maxis intended to do (but failed), it was this: whenever a sim decides to sleep in a particular bed, the game is supposed to check the relationship between the sim and the bed, and then add that relationship value to the Energy motive Range advertisement of the bed, so the idea is that sims would find themselves in their own beds more often. When I first started making this mod, I went ahead and fixed Maxis' own code, but then realized this was not a good idea at all, because relying on motive advertisements alone is not good enough, as sims still very regularly choose beds that are not theirs. It barely had any effect on gameplay. So, I went ahead and made this mod which fixes all of that stuff.

Here is how the mod works. Below, the term "available bed" means a bed which has at least one side available, and on which nobody is jumping. Whenever a sim autonomously considers sleeping in a particular bed:
- The game checks to see if there are any other available beds on the lot. If not, the sim is allowed to sleep in that particular bed.
- If there are any other available beds, the game checks the sim's relationship with them, and if the sim has a higher relationship with any other available bed on the lot, then the sim is not allowed to sleep in that particular bed they were originally considering sleeping in. In other words, sims will choose their own beds to sleep in as long as they are available. If they are not available, then they are allowed to sleep in other beds.

I got tired of finding sims in other sims' beds, cancelling the Sleep interaction and waiting for them to wake up, so that I could direct them to their own bed. This mod makes it so that you don't have to do any of that any more, as sims now know which bed is theirs.
UPDATE 1: This is a quick, but important update that covers a special situation in the game:
- Whenever the sim considers sleeping in a bed, when the game checks the other beds on the lot, now the game will consider the relationship between whoever is currently sleeping on those other beds and the sim who is considering sleeping in that bed, so that if the sim has low relationship with the other sim who is currently sleeping in that bed, they will find another bed to sleep in.
- Made an alternative version called "Lazy Version". This version is the same as the original version, but it has one additional feature: if the sim has 200 Active or less, then the mod will not affect those sims. In other words, lazy sims sleep wherever they want, whenever they want.
UPDATE 2: Fixed a small oversight. This should make the mod compatible with non-Seasons games, and with custom beds that have not been updated for Seasons.
UPDATE 3: This is an important update.
- Fixed all coffin-related issues. I didn't even think about coffins while making the mod. Thanks to bloodstained_black_lace in the comments section for telling me about this issue.
- Non-vampires will not autonomously sleep in coffins any more.
- Vampires whose favourite bed is a coffin will sleep in their favourite coffin as long as it is available. Vampires whose favourite bed is not a coffin will sleep in their favourite bed, but if there are available coffins on the lot, they may sleep in their favourite coffin from time to time. If they don't have a favourite coffin, they may randomly choose a coffin.
UPDATE 4:
- Sims will prefer relaxing in their own beds as long as their bed is available.
- Vampires will always prefer sleeping in their favourite bed even if it isn't a coffin.
UPDATE 5:
- There were a few cases in which sims could still decide to sleep in a bed other than their own. This update fixes that.
- The game seems to use a different line of code when the sim goes into Energy motive desperation, which is not modified by this mod. In other words, if a sim goes into Energy motive desperation, they are free to choose any bed on the lot. I found out about this recently, and decided to leave it like this. If the sim is that tired, they should be able to throw themselves onto any bed they want, which usually happens to be the closest bed. Energy motive desperation happens when your sim's Energy is very low and they start shouting at the camera.
UPDATE 6:
- When a sim considers sleeping or relaxing in a bed, and when the game checks all the other beds on the lot to see if the sim has a higher relationship with any of them, the game will now skip those beds that are in a room that the sim can't access. This means that sims can sleep or relax in other beds if they can't sleep or relax in their own.
- Sims will be less likely to sleep in a bed if it is daytime and if their energy motive is above -75. If the sim is a vampire, then they will be less likely to sleep in a bed if it is night time and if their energy motive is above -75. In this situation, sims will be more likely to nap, or drink hot beverages and so on.
- There is no Lazy Version any more.
UPDATE 7: I found out that Maxis made a mistake while checking the relationship that the sim has with the sim who is currently sleeping in the bed. What is supposed to happen is that when a sim considers sleeping in a double bed, if there is already a sim sleeping, the game is supposed to make it much less likely for the sim to pick that bed if the sim's STR towards the sleeping sim is lower than 50, but the game checks the sleeping sim's STR, rather than the STR of the sim who is currently considering sleeping in the bed. This update fixes that.
UPDATE 8:
- If a child sim decides to sleep in a double bed which already has someone older than child sleeping in it, and if the child has low relationship with the occupant, then the game makes the child wave at the player saying they don't like the other sim. This is how Maxis designed it. However, they didn't add these exact checks to the autonomy code which checks to see if the game should allow the child to sleep in that bed. This is why the child waves at the player even when the child autonomously considers sleeping in that bed, which shouldn't happen. This update fixes this issue and makes children very unlikely to sleep in that bed in a situation like that. I have made it so that they may still wave at the player if there are no other ways to increase energy, or if other ways of increasing energy are far away, or the bed is very close and so on.
- The game does not allow visitors to relax in beds. This update allows visitors who have been invited to stay to relax in beds. Don't forget that visitors to a party are automatically set to the "invited to stay" status for the duration of the party. I have also made it so that sims are more likely to relax in a bed if there is already an awake sim relaxing in a bed whom they find attractive. In this situation, sims may decide to relax in that bed even if they have a higher relationship with any other bed on the lot.
- The game has a feature that prevents the player from ordering their sims to sleep in beds if the sim's energy motive is high enough. Lazy sims can be ordered to sleep even if they have very high energy and so on. However, Maxis also intended to add this feature to the autonomy code, so that sims wouldn't consider sleeping in beds if they had high enough energy, but they didn't add the code. This update adds that code and prevents sims from autonomously sleeping in beds if their energy isn't below the threshold. The threshold for non-Lazy sims is -60 and Lazy sims is -50 Energy. Vampires are exempt from this check.
UPDATE 9:
- Sims could still try to autonomously sleep in a bed which already had a sim sleeping in it with whom the sim had low relationship, and then they would complain to the camera. In this update, I've made it so that sims cannot try to sleep in such beds autonomously at all, because they shouldn't.
UPDATE 10: Sims were a bit too likely to relax in beds, now they will be less likely to relax if their comfort is high enough. Also, sometimes sims would go into a loop relaxing, standing up and then relaxing again. This happens because Maxis allows sims to relax if their comfort motive is below a certain threshold, but that same threshold is also used when the game determines when sims should stop relaxing. After the sim stops relaxing, the regular comfort decay may bring their comfort below the threshold again, allowing the sim to relax right away. This update also fixes that by lowering the comfort motive threshold sims need to be able to relax.
- Sims won't try to autonomously relax if their hunger motive is below 20, because the game makes the sim stop relaxing right away if their hunger is low.
UPDATE 11: I found out that the lounge interaction on sofas suffers from the exact same problem that the bed relax interaction suffers from, in that sims may go into a loop lounging, sitting and then lounging over and over again. This update fixes the problem just like how the previous update fixes the relax interaction.
UPDATE 12: Fixed a potential error with relaxing in beds.
UPDATE 13: This update simply removes the sofa lounge fix I had added to the mod in UPDATE 11, because I added that fix and more to my new Comfort Sit Lounge Mod which I have released as a separate mod along with this update. Scroll down below to read the description for that mod.
UPDATE 14: This mod is now compatible with the Leaf Pile Bed Castaway conversion, and won't cause it to throw an error.
RESOURCES:
Interaction - Sleep - Autonomous - TEST/0x7F4437F2/0x0000209B
Interaction - Relax - TEST/0x7F4437F2/0x00002034
Privacy - Test/0x7F4437F2/0x00002021
Privacy - Test for Autonomy/0x7F4437F2/0x0000201C
Interaction - Sleep TEST/0x7FB6CAE4/0x00001008

Sleep Get Out Clothes Mod: This separate mod makes it so that when sims wake up and get out of bed, they have a chance, depending on their energy motive, personality and the time of day to switch out of their underwear into pyjamas or everyday, or from their pyjamas into everyday.
UPDATE 1: The game now checks the sim's Neat personality.
UPDATE 2: This mod already prevented sims from switching out of their underwear or pyjamas if their next interaction happened to be going to work, because the game already pushes them to switch to either their work outfit or everyday clothes, but I hadn't added a check to see if the sim's next interaction was going to school. So, children and teens whose next interaction is going to school won't be pushed to switch out of their underwear or pyjamas by the bed any more.
UPDATE 3: The mod now also prevents sims from switching clothes if the sim's next interaction in their queue happens to be on an ownable vehicle, because when the game pushes the sim to go to work, if the sim is assigned an ownable vehicle already, then the game pushes the sim to go to work by car.
RESOURCES: Sleep - Get Out - Change Clothes Back/0x7F4437F2/0x000020C3

Comfort Sit Lounge Mod: This mod fixes an issue with chairs and sofas which sometimes prevents the game from properly animating sitting sims. In addition, it also prevents sims from constantly trying to initiate the Sit and Lounge interactions on chairs and sofas if their comfort motive is fairly high.
UPDATE 1: This update also fixes similar issues with dining booths.
RESOURCES:
Interaction - Sit/0x7F0B61F3/0x00002001
Interaction - Sit - TEST/0x7F0B61F3/0x00002004
EP2 - Interaction - Sit - Booth/0x7F0B61F3/0x0000205D
EP2 - Function - Sit - Booth/0x7F0B61F3/0x00002063
EP2 - Interaction - Lounge - TEST/0x7F0B61F3/0x00002084
Interaction - Sit/0x7FAE06B0/0x00002002
Interaction - Sit - TEST/0x7FAE06B0/0x00002007
Interaction - Lounge - TEST/0x7FAE06B0/0x0000200F

Day Dream Fix: When a sim is daydreaming on a bed, they can think about random sims. However, the way the game picks the sim is not very convenient as it cycles through every sim in the game and then checks to see if the daydreaming sim has met them. This fix makes the game only cycle through those sims that the daydreaming sim has met.
RESOURCES: Shy - Think Thought/0x7FEDFE1C/0x0000100F

Dream Tracker Fix: This mod fixes certain issues with sims who are dreaming while asleep. In an unmodded game, if the player saves and exits the lot while a sim is dreaming, and if the dreaming sim is supposed to be removed from that lot for any reason by the time the player returns to the lot, the game gives an error. This is fixed. In addition, sims can dream about random sims they know, but Maxis made a little mistake in their code which prevents the game from checking the relationship properly, so this is fixed as well.
RESOURCES:
Function - Main/0x7FB09A95/0x00001001
Sub - Dream of Persons/0x7FB09A95/0x0000100B

COMPATIBILITY: I can only guarantee that these mods will work if you have Apartment Life/M&G.

You need the latest version of 7zip or WinRAR to unrar this mod.