边缘世界 RimWorld

边缘世界 RimWorld

322 个评价
Sensible Bed Ownership
4
2
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.5, 1.6
文件大小
发表于
更新日期
497.416 KB
2024 年 9 月 10 日 上午 10:00
9 月 3 日 下午 5:08
11 项改动说明 ( 查看 )

订阅以下载
Sensible Bed Ownership

描述
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.
126 条留言
WarKittyKat 9 月 22 日 下午 1:02 
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 9 月 8 日 下午 12:11 
seems to be the other mods fault, removed this and still get the error
Geojak 9 月 8 日 下午 12:09 
seems to be some weird bug incompability with the poly bed mod
Geojak 9 月 8 日 下午 12:09 
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 9 月 3 日 下午 6:44 
Really good mod. Thank you
1trickPwnyta  [作者] 9 月 3 日 下午 5:10 
@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 9 月 2 日 下午 10:39 
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.
Kerpi 9 月 2 日 下午 3:04 
I was unable to land my gravship after takeoff and we identified this mod as the problem. Someone said it might be a "conflict between loft bed, bed ownership and odyssey". I removed this mod and the ship was able to land again. Here are my logs in case they can help!
https://gist.github.com/Kerpimon/9b3df053aede0f24a06a4d7434046620
horologium 8 月 28 日 下午 11:20 
can't you just recreate the issue and get that log if its causing problems?
raz334 8 月 28 日 下午 10:32 
* i no longer have the logs, but i gave them to Grok and had it examine them after i experienced a > Game Freeze < , and it identified this mod alone and very sure of itself despite a long list of nearly 500 mods. I removed and tested, it was right. Game worked fine after that.

It occurred when my GravShip was coming in to land, as it said "preparing to land" then it froze.
Just letting you know. Sorry i don't have the logs anymore, they tend to get overwritten quickly..