[RELz / WIPz] Reneer's KeyLock Mod

Post » Sun Sep 05, 2010 3:43 pm

Note: This mod REQUIRES OBSE 18 to run.

Description:

This mod allows NPCs to upgrade the locks on their containers and doors after the player has broken into them. If the player steals the key and opens the door / container, the NPC will have a new lock set with a new key.

If you find any bugs in this mod, please send me an e-mail!

Download:
http://www.tesnexus.com/downloads/file.php?id=33630 (Version: 0.91)

Edit: Also, it is highly recommended you use a KeyRing mod alongside this one, just to clean up your Misc Items menu.
User avatar
Rodney C
 
Posts: 3520
Joined: Sat Aug 18, 2007 12:54 am

Post » Sun Sep 05, 2010 11:57 am

Sounds like an amazing idea! Will try it out...


Cheers for a relz :celebration:
User avatar
Hazel Sian ogden
 
Posts: 3425
Joined: Tue Jul 04, 2006 7:10 am

Post » Sun Sep 05, 2010 7:48 am

Sounds like an amazing idea! Will try it out...


Cheers for a relz :celebration:
Let me know how it works for you. :)
User avatar
Mark Hepworth
 
Posts: 3490
Joined: Wed Jul 11, 2007 1:51 pm

Post » Sun Sep 05, 2010 4:51 am

This is a really good idea Reneer.
User avatar
Melung Chan
 
Posts: 3340
Joined: Sun Jun 24, 2007 4:15 am

Post » Sun Sep 05, 2010 12:52 pm

Does this only work for vanilla NPC's, or does it work with any NPC, even those added by mods?
User avatar
Lawrence Armijo
 
Posts: 3446
Joined: Thu Sep 27, 2007 7:12 pm

Post » Sun Sep 05, 2010 4:57 pm

Does this only work for vanilla NPC's, or does it work with any NPC, even those added by mods?
It works for every NPC, regardless of origin.
User avatar
Crystal Birch
 
Posts: 3416
Joined: Sat Mar 03, 2007 3:34 pm

Post » Sun Sep 05, 2010 10:02 am

It works for every NPC, regardless of origin.


That.
Is.
Awesome.
User avatar
Fanny Rouyé
 
Posts: 3316
Joined: Sun Mar 25, 2007 9:47 am

Post » Sun Sep 05, 2010 10:27 am

That.
Is.
Awesome.
I try my best to please. :P

I've already got a (small) update in the pipeline for this mod - fixing some behavior issues (stealing the NPC's key will make him get a new lock / key even if the door doesn't yet require a key for entry).

And not quite on topic, but it's my thread so... a big major stupendous update to RGO is coming. Just being debugged by some amazing individuals and it's this close to being ready for release.
User avatar
kennedy
 
Posts: 3299
Joined: Mon Oct 16, 2006 1:53 am

Post » Sun Sep 05, 2010 11:33 am

Reneer's KeyLock Mod 0.91 Released!

0.91 - Fixed an issue where an NPC might not receive a new key.
User avatar
Annika Marziniak
 
Posts: 3416
Joined: Wed Apr 18, 2007 6:22 am

Post » Sun Sep 05, 2010 2:48 pm

Sounds interesting and makes sense, really you would change your locks if you found someone had broken into your home and looted all your goodies, I'll definitly give it a try :thumbsup:
User avatar
Anthony Diaz
 
Posts: 3474
Joined: Thu Aug 09, 2007 11:24 pm

Post » Sun Sep 05, 2010 1:32 pm

Posted a few days ago on the Nexus file comment page:

I keep getting a corrupted headers warning box on this esp file every time I open BAIN.

I redownloaded and installed 3 times.

*edit...just tried to download to another partition, uninstalled/deleted in bash installers, then moved new file over to bash installers, installed, could not find the name in the Mod tab list.

I opened OBMM, saw it unchecked there, checked it, closed OBMM, and got a pop up saying the esp was removed from BAIN.


I am unable to use this mod because of this.
User avatar
Petr Jordy Zugar
 
Posts: 3497
Joined: Tue Jul 03, 2007 10:10 pm

Post » Sun Sep 05, 2010 9:14 am

I am unable to use this mod because of this.
Uhhh... great? I have absolutely no idea how to fix this. Maybe I'll try uploading the mod again...?
User avatar
Neil
 
Posts: 3357
Joined: Sat Jul 14, 2007 5:08 am

Post » Sun Sep 05, 2010 11:48 am

This is an excellent idea! I'm downloading this right now, and will try it out soon. :)

EDIT: Just downloaded and went to install the mod via BAIN in Wrye Bash. When I right-click the archive and select "Install," I get a pop-up message saying: "The following mod files have corrupted headers: *ReneerKeyLockMod.esp"

The .esp then does not show up in the Wrye Bash mod list to be activated.
User avatar
michael danso
 
Posts: 3492
Joined: Wed Jun 13, 2007 9:21 am

Post » Sun Sep 05, 2010 10:46 pm

I opened up the mod in the CS, changed some comments and saved it again. Then I uploaded it back to TES Nexus. Hopefully that fixes the header issues. If you were experiencing any problems, please download the mod again.
User avatar
Riky Carrasco
 
Posts: 3429
Joined: Tue Nov 06, 2007 12:17 am

Post » Sun Sep 05, 2010 6:40 pm

Thanks.

I have an issue with guard overhaul. I will post it there.
User avatar
Etta Hargrave
 
Posts: 3452
Joined: Fri Sep 01, 2006 1:27 am

Post » Sun Sep 05, 2010 5:42 pm

Posted a few days ago on the Nexus file comment page:



I am unable to use this mod because of this.


7Zip is unable to extract the ESP, but WinRar or Universal Extractor works.

Reneer, any idee how your mod will work with http://tesnexus.com/downloads/file.php?id=27719
Basically it works by assigning this script to all (or at least 146) doors.

Spoiler
;**********************************************************************************
; Enhanced Key Functionality
; by Argomirr
;**********************************************************************************

Scn 0ArgEKFdoorScript

Ref DoorRef
Ref KeyRef
Ref ActionRef

Begin OnActivate

Set ActionRef to GetActionRef

If ArgEKFOBSEcheck == 1

If ActionRef == Player
If Player.IsSneaking == 1
Set DoorRef to GetSelf
If DoorRef.GetLocked == 0
Set KeyRef to DoorRef.GetOpenKey
If KeyRef != 0
If Player.GetItemCount KeyRef >= 1
If Player.GetAV Security < 15
DoorRef.Lock 7 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 15 && Player.GetAV Security < 25
DoorRef.Lock 20 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 25 && Player.GetAV Security < 50
DoorRef.Lock 40 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 50 && Player.GetAV Security < 75
DoorRef.Lock 80 1
ElseIf Player.GetAV Security >= 75
DoorRef.Lock 99 1
Message "You lock the door."
EndIf
Else
Activate
EndIf
Else
Set DoorRef to DoorRef.GetLinkedDoor
If DoorRef != 0
Set KeyRef to DoorRef.GetOpenKey
If KeyRef != 0
If Player.GetItemCount KeyRef >= 1
If Player.GetAV Security < 15
DoorRef.Lock 7 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 15 && Player.GetAV Security < 25
DoorRef.Lock 20 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 25 && Player.GetAV Security < 50
DoorRef.Lock 40 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 50 && Player.GetAV Security < 75
DoorRef.Lock 80 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 75
DoorRef.Lock 99 1
Message "You lock the door."
EndIf
Else
Activate
EndIf
Else
Activate
EndIf
Else
Activate
EndIf
EndIf
Else
Activate
EndIf
Else
Activate
EndIf
Else
Activate
EndIf

Else
Activate
EndIf

End

User avatar
Chrissie Pillinger
 
Posts: 3464
Joined: Fri Jun 16, 2006 3:26 am

Post » Sun Sep 05, 2010 1:14 pm

I came back and re-downloaded the mod, but it still give me the same error message and does not load the .esp. I am using 7zip, however. I know that isn't much to go on, but I hope it helps!

EDIT: Actually, I'm not sure exactly what it's doing. I ran BOSS, and happened to notice that it is including the .esp for this mod after the bash patch, down at the very end of the load list because it does not recognize it. However, Wrye Bash does not show the .esp existing at all, and I even went so far as to uninstall the mod completely in BAIN, and deleted the archive from my installers folder. Very odd. Now every time I run Wrye Bash, i get the missing header error when it starts up.

EDIT EDIT: Even more interesting? OBMM actually DOES show the .esp file for this mod in the load order. This was why it continued to give me the error in Wrye Bash - the .esp is actually there, it just isn't showing up for some reason for me.

I'm not exactly sure what that means, but I hope it's useful information. I can't imagine the problem is Wrye Bash not playing nicely with a .7z file, because I have several other mods installed through it that are in that format.
User avatar
Ellie English
 
Posts: 3457
Joined: Tue Jul 11, 2006 4:47 pm

Post » Sun Sep 05, 2010 11:25 pm

7Zip is unable to extract the ESP, but WinRar or Universal Extractor works.

Reneer, any idee how your mod will work with http://tesnexus.com/downloads/file.php?id=27719
Basically it works by assigning this script to all (or at least 146) doors.

Spoiler
;**********************************************************************************
; Enhanced Key Functionality
; by Argomirr
;**********************************************************************************

Scn 0ArgEKFdoorScript

Ref DoorRef
Ref KeyRef
Ref ActionRef

Begin OnActivate

Set ActionRef to GetActionRef

If ArgEKFOBSEcheck == 1

If ActionRef == Player
If Player.IsSneaking == 1
Set DoorRef to GetSelf
If DoorRef.GetLocked == 0
Set KeyRef to DoorRef.GetOpenKey
If KeyRef != 0
If Player.GetItemCount KeyRef >= 1
If Player.GetAV Security < 15
DoorRef.Lock 7 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 15 && Player.GetAV Security < 25
DoorRef.Lock 20 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 25 && Player.GetAV Security < 50
DoorRef.Lock 40 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 50 && Player.GetAV Security < 75
DoorRef.Lock 80 1
ElseIf Player.GetAV Security >= 75
DoorRef.Lock 99 1
Message "You lock the door."
EndIf
Else
Activate
EndIf
Else
Set DoorRef to DoorRef.GetLinkedDoor
If DoorRef != 0
Set KeyRef to DoorRef.GetOpenKey
If KeyRef != 0
If Player.GetItemCount KeyRef >= 1
If Player.GetAV Security < 15
DoorRef.Lock 7 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 15 && Player.GetAV Security < 25
DoorRef.Lock 20 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 25 && Player.GetAV Security < 50
DoorRef.Lock 40 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 50 && Player.GetAV Security < 75
DoorRef.Lock 80 1
Message "You lock the door."
ElseIf Player.GetAV Security >= 75
DoorRef.Lock 99 1
Message "You lock the door."
EndIf
Else
Activate
EndIf
Else
Activate
EndIf
Else
Activate
EndIf
EndIf
Else
Activate
EndIf
Else
Activate
EndIf
Else
Activate
EndIf

Else
Activate
EndIf

End
Hmmm. In theory the two will work together - but that's just from me looking over the script once. However, one the KeyLock mod changes the key, obviously it won't allow you to lock (or unlock) the door / chest anymore.
User avatar
Colton Idonthavealastna
 
Posts: 3337
Joined: Sun Sep 30, 2007 2:13 am

Post » Mon Sep 06, 2010 12:50 am

The problems is with the 7z.zip file.
I extracted the ESP using Univeral Extractor (WinRAR also works) and have no problems. Both WryeBash and TES4EDIT have no problems with it.
User avatar
Rinceoir
 
Posts: 3407
Joined: Thu Jun 29, 2006 1:54 am

Post » Sun Sep 05, 2010 7:05 pm

I'm glad this got bumped, a nice little bit of immersion. And I have to ask, does updating RGO mean we'll finally get an icon for the configuration ring? :P
User avatar
willow
 
Posts: 3414
Joined: Wed Jul 26, 2006 9:43 pm

Post » Sun Sep 05, 2010 3:57 pm

I'm glad this got bumped, a nice little bit of immersion. And I have to ask, does updating RGO mean we'll finally get an icon for the configuration ring? :P
I finally picked on a rather appropriate icon for the RGO Configuration Token (maybe I should call it the RGO Weighted Configuration Token :P)
User avatar
Hairul Hafis
 
Posts: 3516
Joined: Mon Oct 29, 2007 12:22 am

Post » Sun Sep 05, 2010 5:13 pm

Double affirmation:

Downloaded and can't use as normal. I have to use the Windows extract then install as a project folder.

Regarding the Enhanced Key Functionality, do you know if you can lock inn doors to keep NPCs from waltzing in while you stand around naked? :)
User avatar
Pawel Platek
 
Posts: 3489
Joined: Sat May 26, 2007 2:08 pm

Post » Sun Sep 05, 2010 3:56 pm

Regarding the Enhanced Key Functionality, do you know if you can lock inn doors to keep NPCs from waltzing in while you stand around naked? :)


Yes, that should be possiblem, as far as I can tell from TES4EDIT (haven't tested it-game yet). So don't worry if your bald, stocky character has just had a swim in cold water and is experiencing significant shrinkage. :D
User avatar
Rachel Tyson
 
Posts: 3434
Joined: Sat Oct 07, 2006 4:42 pm

Post » Sun Sep 05, 2010 1:37 pm

I was like...what the helllll!...people coming into my room at 3 am!
User avatar
trisha punch
 
Posts: 3410
Joined: Thu Jul 13, 2006 5:38 am

Post » Sun Sep 05, 2010 8:14 pm

Double affirmation:

Downloaded and can't use as normal. I have to use the Windows extract then install as a project folder.

Regarding the Enhanced Key Functionality, do you know if you can lock inn doors to keep NPCs from waltzing in while you stand around naked? :)
I don't know what the problem is. I've used 7zip for all my compression / extraction on ALL of my mods. Why it is asking up / causing problems I have no clue.
User avatar
Chloe :)
 
Posts: 3386
Joined: Tue Jun 13, 2006 10:00 am


Return to IV - Oblivion