RimWorld

RimWorld

72 ratings
Door Lockdown
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
8.304 MB
19 Aug, 2022 @ 5:50am
14 Jul @ 8:12am
6 Change Notes ( view )

Subscribe to download
Door Lockdown

Description
Lets you mark multiple doors to forbid them (or allow them) with one button press.

Mod adds two buttons to door menu (the thing that pops up when door object is selected). One marks door as lockdownable. Second flips global lockdown status - enabling or disabling it. When lockdown is enabled, all doors marked as lockdownable will be forbidden. Click on button again to stop lockdown and change marked doors back to allowed.



Why I created this mod?
I always make bases with multiple exits. Because of that when certain events like raids or mad animals happen I have to manually forbid all exits, one by one. Lately I lost two good colonist because I forgot about one of the exits. Well, no more. Now I can just mark those exits as lockdownable and when I want them to be forbidden I just select any random door and click Start Lockdown button. Yes, I'm that lazy.

Does this mod modify AI of Pawns?
No. Only thing that this mod does is mark doors as forbidden. The same thing you can do by clicking "Allow" button on them.

Traders/Pawns with mental breaks are still going through forbidden doors!
Of course they are, this is vanilla behaviour. Forbidden doors aren't actually closed, they just have small post-it note on them with "Don't go through, please" on it. Colonists will (usually) obey it, others won't.

If you want to stop traders and guests from going through forbidden doors use
Do Not Go There.


Mod conflicts?
Probably none. No existing code is touched.

Safe to add in the middle of the game? Safe to delete?
Should be perfectly safe. Mod is only "doing" things when one of the buttons is clicked and when game is loaded from a save, so no background processes to mess things up.
After deleting you may get an error in console when loading save. This will only happen once, is completely harmless and will go away after saving again (game is trying to set saved lockdown status but status variable no longer exists. After next save this value will not be saved to the file, so error goes away).

Does this work with modded doors?
Any mod that inherits its door class from vanilla door will work. Others, that create their own abstract door class will need to be patched. If there are some doors that do not have any lockdown buttons or throw errors when using them, write a comment and I will try to fix this (with an emphasis on TRY, as I'm not an experienced programist).



Which mods work?
Door Lockdown is confirmed to work with doors added by those mods:

• Doors Expanded (by Jecrell,lbmaian)
• Medieval Overhaul
• [JAIL] Prison Walls
• [LTS]Furnishing
• Vault Walls and Doors


Mod should always be put AFTER any modded doors.
35 Comments
poggles789 15 Jul @ 10:29pm 
Yay, thank you!
Eldiarc  [author] 14 Jul @ 8:17am 
@poggles789
I just updated the mod, should be fully compatible with things added in 1.6 such as new doors and travelling by gravship. :praisesun:

Thank you for kind words. :)
poggles789 13 Jul @ 11:11pm 
Are you planning to update this mod for 1.6? I really like it and want to keep using it.

Also while I'm here, thank you for making such a useful mod.
Eldiarc  [author] 10 Apr, 2024 @ 5:20am 
@tanitanino @Krush

Ahh, sorry for the lack of answers, I somehow missed these questions.

Anyway, yes it is possible to do it, but it is not a feature I want to add to this mod.

Opening/closing doors is done by pawns and is part of the game's difficulty level and changing this would make the game much easier.
Clicking allow/forbid on the hud is done by the player and does not take up any time in the game (it can be done during pause), so it does not make the game easier, it simply removes some monotonous clicking (and helps those who are forgetful and don't remember how many doors they have to forbid).

Theoretically, turning on the lock could generate a task for the pawn, ordering him to close the door and "enter" it so that the door activates and closes, but... it's too complicated for my level of knowledge. :P

I believe there is a mod that allows the player to close/open doors remotely using the hud button - you can always use it with my mod.
tanitanino 17 Feb, 2024 @ 5:06am 
cool mod! I second the comment below - is there a way to close all doors that were held open at the same time? Thanks
Krush 23 Sep, 2023 @ 8:58pm 
Does this also try to close doors that were held open? That'd be ideal.
Scorpio 17 Jul, 2023 @ 1:00pm 
Omg how did i miss this is exactly what i needed
Eldiarc  [author] 27 Apr, 2023 @ 6:28am 
@AerosAtar
Yep. Update is live, Vault Walls and Doors should work now.
AerosAtar 25 Apr, 2023 @ 11:49am 
@Eldiarc
Doesn't seem to work with the doors from Vault Walls & Doors , so I suspect it needs a patch or something. >.<
hottt3 16 Jan, 2023 @ 2:21am 
I was looking exactly for this. And I've found it:steamthumbsup: