RimWorld

RimWorld

323 ratings
Sensible Bed Ownership
4
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
497.416 KB
10 Sep, 2024 @ 10:00am
3 Sep @ 5:08pm
11 Change Notes ( view )

Subscribe to download
Sensible Bed Ownership

Description
Makes the bed ownership/assignment mechanic sensible. Specifically:
  • Everyone can have a bed assigned per map (with special rules for gravships - see 08/26/2025 update below), so beds don't get unassigned while caravaning.
  • Adds the ability to select a colonist or animal and right-click on a bed to assign. Multiple selected pawns can be assigned to a double bed at once.
  • Adds a search bar to the bed assignment dialog.
  • When assigning a second member to a double bed, brings the first member's love partners to the top of the list.
  • Adds an unassignment gizmo when you click on a bed.
  • Also applies these features to other colonist-assigned buildings, such as thrones and deathrest caskets.
  • Allows pawns to find a chair to sleep in instead of resorting to the ground when no bed is available because chairs still provide comfort when sleeping (can be turned off in settings).



Updates
09/03/2025: Add additional logging in dev mode
08/26/2025: Support for gravships by allowing one bed per pawn per map on substructure and one not on substructure. Pawns will prefer the non-gravship bed by default but this can be overriden by setting the gravship bed to their preferred bed via bed gizmo.
08/11/2025: Fix broken save files from previous bug, add additional safeguard to prevent broken saves
08/10/2025: Fix potential bug that causes errors when bed cache isn't properly cleared between loading saved games
08/08/2025: Improve performance and fix some minor UI bugs
06/12/2025: Fix error when right-clicking out of bounds with a pawn selected in certain situations
06/11/2025: Updated to 1.6, allow multiple selected pawns to be right-click assigned at once
04/18/2025: Fix bed assignment dialog incompatibility with Steam Deck
04/09/2025: Add chair-sleeping feature, prevent double bed reservations by the same pawn, use "main bed" for bed calculations instead of just whatever bed is on the current map (for lovers sharing beds or royalty bedroom requirements)
10/02/2024: Immediately unassign babies from cribs when they become children

Credits

Additionally, this mod was inspired by and includes many of the same features of the following mods:
If any of the above creators prefer I remove this mod for any reason, please feel free to contact me and I will promptly remove it.
129 Comments
1trickPwnyta  [author] 12 hours ago 
@Tekuromoto Even without this mod, I'm unable to get a menu for force sleep with Reverse Commands. Are you thinking of the Go The Fork To Sleep mod? I know that mod does that as well. However, I tested it and it seems to work fine with Sensible Bed Ownership.
1trickPwnyta  [author] 3 Oct @ 12:13pm 
@Tekuromoto I'll see what I can do. If it's not a trivial fix it might take me a while to circle back to it. Thanks!
Tekuromoto 3 Oct @ 11:53am 
Hi there. Great mod, thanks!

There seems to be an incompatibility with Reverse Commands https://steamproxy.com/sharedfiles/filedetails/?id=858744731

That mod lets you give orders in reverse by right clicking an item then selecting an action and colonist from the flyout menu. When right clicking a bed (without this mod) it gives the option to force sleep. With this mod, however, I get a red error in the log and nothing happens. The game doesn't crash or anything.

The rest of the functionality of both mods seems to be fine. So I'm avoiding right clicking on beds for the moment 😏

Any chance of a compatibility patch from your end, since Brrainz doesn't accept comments on steam so I can't notify him.
WarKittyKat 22 Sep @ 1:02pm 
Just gonna leave a comment here in case other people need it - if you have royals, make sure that their preferred bed is the one that's suitable! I had my royal bedrooms on a gravship, and they would all start complaining unless I set the bed on the gravship to preferred.
Geojak 8 Sep @ 12:11pm 
seems to be the other mods fault, removed this and still get the error
Geojak 8 Sep @ 12:09pm 
seems to be some weird bug incompability with the poly bed mod
Geojak 8 Sep @ 12:09pm 
Varon threw exception in WorkGiver DoctorRescue: System.NullReferenceException: Object reference not set to an instance of an object
[]
at RimWorld.SpouseRelationUtility.GetLoveRelations (Verse.Pawn pawn, System.Boolean includeDead, System.Boolean orderByCommitmentLevel) [ in <>:0
at OneBedToSleepWithAll.PolygamyModeUtility.CheckIsHavePartnersPolygamyBedOccupied (
at OneBedToSleepWithAll.Patch.RestUtility__FindBedFor.Postfix () [] in <49f4dbaeffe44fa6ba819cb073663d00>:0
at RimWorld.RestUtility.FindBedFor (V
- TRANSPILER sensiblebedownership.1trickPwnyta: IEnumerable`1 SensibleBedOwnership.Patch_RestUtility:Transpiler(I)
- POSTFIX densevoid.hui.personalworkcat: Void OneBedToSleepWithAll.Patch.RestUtility__FindBedFor:Postfix(Building_Bed& __result, Pawn sleeper, Pawn traveler, Boolean checkSocialProperness, Boolean ignoreOtherReservations, Nullable`1 guestStatus)
at RimWorld.WorkGiver_TakeToBed.FindBed ()
Gabe Knight 3 Sep @ 6:44pm 
Really good mod. Thank you
1trickPwnyta  [author] 3 Sep @ 5:10pm 
@Kerpi @Ted I tried the Loft Bed mod and it was working fine for me, to my surprise. I added some extra logging to help troubleshoot the issue. The extra logging will only happen with dev mode enabled, so if you could try again with dev mode enabled (and make sure the mod is updated to version 1.2.6) and send me the log when it happens, that could help. Thanks!
Ted 2 Sep @ 10:39pm 
Can confirm @Kerpi comment based off what he said. I couldnt land my gravship but once I removed this mod I could. I also have Loft Beds mod.