Jump to content
Sign in to follow this  
KhaineGB

Lockpicking Modlet

Recommended Posts

This wasn't a quick one. This took most of the night for me to get working. :)

 

This modlet adds a lockpick (using bone shiv model for now) to the game. It can be found (Nightstands, Medicine Cabinets, Kitchen Cabinets, Backpacks, Suitcases, Lockers, Filing Cabinets, Purses, Cash Registers) or crafted after purchasing level 2 of the Lockpicking perk. The lockpick is used by holding the right mouse button while hovering over a safe or door.

 

The perk reduces the amount of noise you make while lockpicking. Haven't found a way to increase speed yet, but I will continue to look into it. Lockpicks only work on NON-PLAYER CRAFTED doors (house doors and the blue commercial doors) and the 5 safes in the game. The lockpick is consumed on use, as that's currently the only way I can do it.

 

Download the zip file and unzip the KHLockpicks folder into your 7 Days to Die\Mods folder.

 

That's it! Have fun. :)

Edited by KhaineGB (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
This wasn't a quick one. This took most of the night for me to get working. :)

 

This modlet adds a lockpick (using bone shiv model for now) to the game. It can be found (Nightstands, Medicine Cabinets, Kitchen Cabinets, Backpacks, Suitcases, Lockers, Filing Cabinets, Purses, Cash Registers) or crafted after purchasing level 2 of the Lockpicking perk.

 

The perk reduces the amount of noise you make while lockpicking. Haven't found a way to increase speed yet, but I will continue to look into it. Lockpicks only work on NON-PLAYER CRAFTED doors (house doors and the blue commercial doors) and the 5 safes in the game. The lockpick is consumed on use, as that's currently the only way I can do it. Also, it doesn't stack because A17 apparently doesn't let us have items without durability that the player can actually use on Mouse1 or Mouse2 (wasn't an issue in A16).

 

Download the zip file and unzip the KHLockpicks folder into your 7 Days to Die\Mods folder.

 

That's it! Have fun. :)

 

Keep it up Khaine already using you mods on my server lol

Share this post


Link to post
Share on other sites

Important note.

 

You can't lockpick a damaged door or safe because we're hijacking the upgrade method. So if you get an error about needing forged iron, the block is probably damaged.

Share this post


Link to post
Share on other sites

Got stacking lockpicks working!

 

This makes them like the used to be in A16 if you played anything like Valmod or War of the Walkers. :) I've set stack size to 20 as I figure that should be more than enough.

 

Already uploaded to github, so have fun!

Share this post


Link to post
Share on other sites

Hello, i can see and learn perk lockpicking, also i can see and craft and loot lockpick everywhere, but when i select lockpick and want to try unlock something console pops up with red warnings Nullreferenceexception:Object reference not set to an instance of an object .. and i can only exit the game. Some thoughts? :)

Share this post


Link to post
Share on other sites
Hello, i can see and learn perk lockpicking, also i can see and craft and loot lockpick everywhere, but when i select lockpick and want to try unlock something console pops up with red warnings Nullreferenceexception:Object reference not set to an instance of an object .. and i can only exit the game. Some thoughts? :)

 

If there is damage on door or safe it wont work. If it's a player made item it wont work and will result in nres in console

Share this post


Link to post
Share on other sites

It was ordinary safe in original map, and i used it immidiatly after i open that safe room, also tried it multiple times with same result

Share this post


Link to post
Share on other sites
It was ordinary safe in original map, and i used it immidiatly after i open that safe room, also tried it multiple times with same result

 

you are using this in the A17exp yes?

Share this post


Link to post
Share on other sites

Alright, I'm gonna be very blunt here, so if I come across as harsh then it's not intentional.

 

If you're posting saying "I got NRE's" then I need the error. Telling me that doesn't help. I need to know exactly WHY it's giving an NRE, so you need to find your output_log. The problem with that is the game seems to like putting the output_log in different places depending on how you boot the game. For some people, it's in 7 Days to Die\7DaystoDie_Data and for others it's in %AppData%\LocalLow\The Fun Pimps\7 Days to Die.

 

I'll give it another test but it was working fine for me.

Share this post


Link to post
Share on other sites

Been flying around navezgane for about 40 mins... tried lockpicks on about 6 different doors (reinforced and non-reinforced house doors and commercial doors), wall safe, desk safe and gun safe.

 

No NRE's on this end, they unlock and the safes provide loot. So I've no idea what the issue is.

Share this post


Link to post
Share on other sites

I have also been getting the same NullReferenceException error when moving the cross hair over a wall safe in the default map while having a lock pick selected on my hot bar. This is probably way more info than you need but here is a copy of the log file where I attempted to use a lock pick three different times with the first error starting on line 604 of the log file (Filename: Line: 1352) and repeating until line 13373 when I managed to quit the the main menu and then started the file up once more and had the same error starting at line 13654 of the log file and repeating once again util line 20082 where I quit to the main menu and loaded the save file a third time and had the error starting again at line 21461 and repeating the same message until line 42015 when I finally gave up on trying to use the lock pick and dropped them from my inventory and went on about the game.

output_log__2018-11-25__13-45-01.zip

Share this post


Link to post
Share on other sites

Ok, that's actually handy...

 

NullReferenceException: Object reference not set to an instance of an object
 at XUiC_HUDStatBar.SetupActiveItemEntry () [0x00000] in <filename unknown>:0 

 

So I'm gonna guess it's because I changed the method used for the lockpick so it's stackable.

 

Can you do me a favour and see if it still happens on a new save? It's been working fine for me on new saves so I'm wondering if it's keeping the old item data and that's the issue.

Share this post


Link to post
Share on other sites

Ok so I started up a new save file and spawned them into my inventory, and as soon as I selected the lock pick on my hot bar I got the NullReferenceException error. I have included the log file and hope that this may shed some light on the problem though if push comes to shove I will just do without.

output_log__2018-11-27__02-06-38.zip

Share this post


Link to post
Share on other sites

I sort-of see the problem.

 

NullReferenceException: Object reference not set to an instance of an object
 at XUiC_HUDStatBar.SetupActiveItemEntry () [0x00000] in <filename unknown>:0 
 at XUiC_HUDStatBar.Update (Single _dt) [0x00000] in <filename unknown>:0 

 

Your log file says you're using a mod for the left HUD bars. I'm gonna have to see about getting that mod and trying it out with this one.

 

But I do know it's working fine with a 100% vanilla UI.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...