Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
ACI Keypad Lock Microcontroller MK2
   
奖励
收藏
已收藏
取消收藏
Vehicles: Creative
Microcontrollers: Composite, Microcontroller
标签: v1.0.31
文件大小
发表于
更新日期
72.150 KB
2021 年 1 月 24 日 下午 8:38
2021 年 1 月 24 日 下午 9:14
3 项改动说明 ( 查看 )

订阅以下载
ACI Keypad Lock Microcontroller MK2

描述
A LUA based keypad lock that hides the entered digits and allows you to secure your doors, or anything else that may require a security code.

Use it for doors, use it for scuttles, or use it to launch a [RETRACTED].

Supports up to six digits! Set a digit to "-1" to disable a digit slot (note: setting a slot to "-1" will disable subsequent slots).

Setup
• Configure the desired PIN code in the controller's properties. Set a slot to "-1" to disable said slot. Note: All digits after a "-1" are ignored -- Although pointless, the PIN can be set to a length of zero digits which will require no PIN is entered to unlock else denied.
• Use the override input to configure buttons to open and close the door on the inside.
• Override composite input 1 opens the door bypassing the PIN, and input 2 resets and thus closes the door. (Note: The output can be inverted via a toggle). An instrument panel is recommended for the override buttons.

Instructions
• To unlock a door (or whatever is connected), enter the PIN code on the display, then press the "E" button to submit. The override unlock button will also unlock the system.
• To lock the door, press the "LOCK" button on the keypad when it appears. The reset override signal will also reset the keypad and lock the system.
• If the PIN flashes red and says "DENIED," then the code you entered was incorrect.
• If the PIN flashes green and says "UNLOCK," the controller has accepted the code and the boolean output is now active (or inactive if inverted).

Todo:
• Make PIN code editable in-game; a PIN edit mode
• Option to draw entered PIN centered


A complete rewrite of the ACI Keypad Lock Microcontroller MK1.
Differences:
• You can enter digits faster than the MK1 thanks to a pulse gate.
• Supports PIN codes of any length up to six digits!
• Can set master PIN to a zero-length PIN... and then question your choices...
热门讨论 查看全部(1)
1
9 月 28 日 下午 8:42
置顶: Color Themes
Peekofwar
5 条留言
Peekofwar  [作者] 9 月 28 日 下午 8:09 
SkyLiner2007
You could probably do that manually with some fancy external logic... Though I could implement an automatic lock feature that locks the door automatically after a delay.

I would have to look at the logic and programming of the microcontroller and come up with a good way to make the delay configurable.

The overrides are intended to be used from the inside of the secure area to allow the user to both lock and unlock the door from inside. They can of course also be used for remote overrides. If I do add an optional timeout feature, I would probably also consider programming it to stay unlocked while the override input is active, and only start the timeout timer once the override input has gone low.

Keep in mind though, non-electronic doors won't be able to be closed automatically.
SkyLiner2007 9 月 25 日 下午 2:08 
Could you add a time limit on the "lock" screen after you've been granted access, especially for when you have an override attached?
Peekofwar  [作者] 2021 年 3 月 1 日 下午 2:57 
PS: There is a video attached at the top. I actually hook one up in the video using an instrument panel.
Peekofwar  [作者] 2021 年 3 月 1 日 下午 2:56 
@vinceEde123
Either use an instrument panel, which can give you up to four button in one block, or use a boolean to composite adapter.
Specerijenman123 2021 年 3 月 1 日 上午 6:27 
I dont get how the override works bevause buttons have a on off signal and not a composite