MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Door Locks for TS4 - Version 3c

by scumbumbo Posted 7th Apr 2015 at 8:55 AM - Updated 19th Aug 2018 at 9:36 PM by scumbumbo : Updated for Dec 4, 2015 game patch
1119 Comments / replies (Who?) - 6 Feedback Posts, 19 Thanks Posts
This is a featured upload! It showcases the best talent and creativity available on MTS and in the community.
This is a completely outdated mod that is useless to anyone who doesn't run an old unpatched version of the game. Use LittleMsSam's door locks for a better door lock that works with the current game versions!

Download LittleMsSam's Unlock/Lock Doors for chosen Sims instead here!

Tags: #lockable, #doors, #locks

Type:
      Additional Functionality: Mods which add brand new functionality to the game

You must have the expansion or stuff packs listed below installed to use this custom content. Please see the post text for any exceptions.

This is a multi-part download:


Use only ONE of the mod versions available. The Bathroom Doors are an ADD-ON and requires one of the main Door Lock mods installed.
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
DoorLocks_v3c.zip | Door Locks mod for game patch 1.13.104.1010 (December 4, 2015) or later

Size: 104.2 KB · Downloads: 80,584 · 20th Jan 2016
104.2 KB 80,584 20th Jan 2016
DoorLocks_v3b.zip | **OLD VERSION** for game patch 1.9.80.1020 (July 9, 2015) or later

Size: 104.2 KB · Downloads: 31,447 · 11th Jul 2015
104.2 KB 31,447 11th Jul 2015
DoorLocks_BathroomDoors.zip | Add-On for Pre-Locked Bathroom Doors - Requires at Least Version 1b

Size: 1.08 MB · Downloads: 57,602 · 10th May 2015
1.08 MB 57,602 10th May 2015
Don't forget to Thank the creator after downloading! Use the Thanks button located above the screenshots above.
Basic Download and Install Instructions:
1. Download: Click the File tab to see the download link. Click the link to save the .rar or .zip file(s) to your computer.
Read the upload description for installation instructions. If nothing else is specified, do the following:
2. Extract: Use WinRAR (Windows) to extract the .package file(s) (if included, ts4script as well) from the .rar or .zip file(s).
3. Cut and paste the .package file(s) (if included, ts4script as well) into your Mods folder
  • Windows XP: Documents and Settings\(Current User Account)\My Documents\Electronic Arts\The Sims 4\Mods\
  • Windows Vista/7/8/8.1: Users\(Current User Account)\Documents\Electronic Arts\The Sims 4\Mods\

Need more information?
  • Anyone can use both .rar and .zip files easily! On Windows, use WinRAR.
  • If you don't have a Mods folder, just make one.
  • Mod still not working? Make sure you have script mods enabled
 
1119 Comments / Replies (Who?) - 551 Feedback Posts, 517 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 5 of 45
Deceased
Original Poster
#101 Old 7th Apr 2015 at 3:50 PM
Quote:
Originally Posted by Valdesca
spanish translation from menu on pictures.: -pic1 Enable Lock: Cerrar -Pic2 Set Lock Style: Estilo Cierre, Disable Lock: Abrir - Pic3 Lock out child sims: Cerrar a Niños, LockOut Visiting Sims: Cerrar a Visitantes, Lock out Male Sims: Cerrar a Hombres, Lock out Female Sims: Cerrar a Mujeres.
Sorry, I appreciate this but I can't really do translations from a forum post - the characters for other languages would almost certainly get altered in the process and it would come out looking incorrect and the actual meanings could be inaccurate or confusing in the game. I really need a string table like egureh uploaded earlier. I don't think there's an easy to follow tutorial for doing this, unfortunately, if someone knows of one let me know and I'll post a link.
Test Subject
THANKS POST
#102 Old 7th Apr 2015 at 3:52 PM
Bless you! The single most requested game change in the Sims 4 GTW discussion threads! Hurray!
Test Subject
THANKS POST
#103 Old 7th Apr 2015 at 3:52 PM
Thank you so much!
Test Subject
THANKS POST
#104 Old 7th Apr 2015 at 3:53 PM
oh my Thank YOu so much for this! <3
Test Subject
THANKS POST
#105 Old 7th Apr 2015 at 3:58 PM
Yes! I needed this so much! Thank you!
Lab Assistant
THANKS POST
#106 Old 7th Apr 2015 at 4:03 PM
*bows to you* I just got the base game this past week. And one thing I missed was the lock the door!! EA seem to forgot that since we don't leave our doors open neither should our sims. No wonder there is bugler yet... So... *keeps bowing to you* :D
Deceased
Original Poster
#107 Old 7th Apr 2015 at 4:15 PM
Quote:
Originally Posted by Inge Jones
Brilliant! How did you actually do it - I mean add the portal test? I didn't see any portal test hooks in the code, unless they just got added with this EP.
I figured it out from looking at how visiting sims are kept out of houses until they are greeted, which is a role. Looking at role_state_base I saw a call to _add_disallowed_portal, which led to the portals code. If you had searched for "disallowed portals" you would have found it, but someone at EA must have thought that would make things too easy to call them that! Anyway, the disallowed portals just eliminate specific doors from being considered when building the sim's pathing so that they don't even realize that a door exists there.

So the basics were in there, and in fact the majority of the code is primarily involved with keeping track of which sims to disallow and making sure EA's stuff didn't unintentionally step all over the new locks. Feel free to check out the code, the source is included, and if you have any questions (or suggestions for improving the code, in places it's just nasty!) just drop me a PM or ask in the creator forums.
Test Subject
THANKS POST
#108 Old 7th Apr 2015 at 4:16 PM
Thank you so much. Now hopefully I can keep those annoying customers out of the living quarters.
Test Subject
THANKS POST
#109 Old 7th Apr 2015 at 4:21 PM
YESSSSS I've been wanting this so bad ;u; Thank youuuuuuu >u<
Field Researcher
THANKS POST
#110 Old 7th Apr 2015 at 4:24 PM
Omg, just leave a problem at doorstep of MTS and the brilliant minds will fix them! You are fantastic scumbumbo! Thank you!
Lab Assistant
THANKS POST
#111 Old 7th Apr 2015 at 4:27 PM
Yay! Scumbumbo to the rescue. Thanks so much for this. I tried it at my Sim's bakery and it worked! I only tested it like 30 minutes but it worked! Great Job a much needed mod for any retail store.
Test Subject
THANKS POST
#112 Old 7th Apr 2015 at 4:28 PM
Thanks!!!!
Deceased
Original Poster
#113 Old 7th Apr 2015 at 4:28 PM
Quote:
Originally Posted by jojobees31
I've download it correctly and when I hit lock female out she still walks in. I lock it for child sim still walks in and male too. This mod doesn't work
It sounds like the package (thats the part that contains the menus) is installed properly, but the script file that actually performs the locking, is not. Basically just put the two files contained in the zip file you downloaded into your Mods folder as is. I've added a screenshot to the description page for the mod showing the two files that need to be in your Mods folder for this to work properly. Also, make sure script mods are enabled in your game options!
One horse disagreer of the Apocalypse
#114 Old 7th Apr 2015 at 4:28 PM
Quote:
Originally Posted by scumbumbo
I figured it out from looking at how visiting sims are kept out of houses until they are greeted, which is a role. Looking at role_state_base I saw a call to _add_disallowed_portal, which led to the portals code. If you had searched for "disallowed portals" you would have found it, but someone at EA must have thought that would make things too easy to call them that! Anyway, the disallowed portals just eliminate specific doors from being considered when building the sim's pathing so that they don't even realize that a door exists there.

So the basics were in there, and in fact the majority of the code is primarily involved with keeping track of which sims to disallow and making sure EA's stuff didn't unintentionally step all over the new locks. Feel free to check out the code, the source is included, and if you have any questions (or suggestions for improving the code, in places it's just nasty!) just drop me a PM or ask in the creator forums.


It's pretty complex and convoluted then! Well done for figuring it all out!

"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Test Subject
THANKS POST
#115 Old 7th Apr 2015 at 4:32 PM
thank you, great as always,wonderful
Test Subject
THANKS POST
#116 Old 7th Apr 2015 at 4:33 PM
Oh, Scumby! This is awesome!
Lab Assistant
THANKS POST
#117 Old 7th Apr 2015 at 4:45 PM
omg I love you lol Thank you Thank you Thank you
Test Subject
THANKS POST
#118 Old 7th Apr 2015 at 4:47 PM
Thank you, thank you, thank you!! When I saw the title of this while browsing the mods I was freaking out, people have been waiting so long for this! :D
Test Subject
#119 Old 7th Apr 2015 at 4:53 PM
Do you think you could make one more like Sims 3 or some mod that would let people establish bedrooms? It's really annoying when you design a room for one sim and then someone else takes it over.
Field Researcher
THANKS POST
#120 Old 7th Apr 2015 at 5:00 PM
OMG! OMG! OMG! Love it.

Question. Can it ever, in the future be coded to lock out teen or are they only coded as adults in the games path coding, Run a Foster home and they keep sleeping in my bed and hanging out in my bedroom. LOL.

Curious. But thanks for all your mods. Could not play without.
Test Subject
THANKS POST
#121 Old 7th Apr 2015 at 5:14 PM
Is it bad I almost cried with happiness when I read the title of this mod?

THANK YOU SO MUCH <3

You are now my most favourite person in the world
Test Subject
THANKS POST
#122 Old 7th Apr 2015 at 5:15 PM
Thank you Thank You THANK YOU! i have been complaining about not having lockable doors since the beginning of time. So THANK YOU. :-D
Lab Assistant
#123 Old 7th Apr 2015 at 5:19 PM
Thank youuuuuu!!!!
Test Subject
THANKS POST
#124 Old 7th Apr 2015 at 5:32 PM
thank you so much !
Test Subject
THANKS POST
#125 Old 7th Apr 2015 at 5:35 PM
c'était vraiment nécessaire..!!
Page 5 of 45