Stormworks: Build and Rescue

Stormworks: Build and Rescue

ACI Keypad Lock Microcontroller MK1
43 Comments
sharkboy7 6 Jul, 2022 @ 9:23am 
k thx
Peekofwar  [author] 5 Jul, 2022 @ 7:48pm 
@sharkboy7
The override functions are for the interior button panel so that you can lock and unlock the door from the secure side (e.g.: the inside of a vault).

There's a video attached above that shows the buttons on the other side of a door frame being used.

Also, there's a MK2 version , which might have better instructions, or better node descriptions.
sharkboy7 5 Jul, 2022 @ 2:14pm 
what do i do for the "override button input boolean 1 and 2" what the heck does that mean what do i do
Peekofwar  [author] 20 Feb, 2021 @ 5:56pm 
As of now, the controller will not be getting a five-digit update. If you want five digits, please consider using the MK2 version instead.
Peekofwar  [author] 25 Jan, 2021 @ 10:50am 
The ACI Keypad Lock Microcontroller MK2 is here! It functions more-or-less identically to this one with a couple differences. One of them being it supports up to six digits.

Instead of a reset button, there is a backspace button. When the controller is in its unlock state, the keypad disappears and a "lock" button appears.

The dimensions and nodes are identical, however making it possible to quickly swap out a MK1 with a MK2 without any rewiring.
Peekofwar  [author] 24 Jan, 2021 @ 7:19pm 
The new controller will be capable of up-to six digits. Can be configured for zero, but why?? Just need to program the ability to lock from the keypad, and program the bit that sets the PIN code, and it'll be ready.
Sol 24 Jan, 2021 @ 5:47pm 
Thanks bud. Much appreciated. Awesome work :steamthumbsup:
Peekofwar  [author] 24 Jan, 2021 @ 2:01pm 
I've started work in a new keypad controller that I'm making from the ground-up.
Peekofwar  [author] 23 Nov, 2020 @ 6:28pm 
@Sol
Pretty sure I used my Single Hinged Door Microcontroller to control the door.
Sol 12 Nov, 2020 @ 8:39pm 
Can you upload the design of the door setup pre made please.
Peekofwar  [author] 21 Sep, 2020 @ 2:37pm 
Might do a little bit of reprogramming/wiring...
BobKlobb 20 Sep, 2020 @ 10:35pm 
Did you get a chance to get the guide for the override button done yet?
Peekofwar  [author] 30 Aug, 2020 @ 6:27am 
@DokiDokiMC
The default code is 0-0-0-0 if I remember correctly. Check the microcontroller's configuration after placing a new one.
Breakdown 29 Aug, 2020 @ 10:18pm 
what are the default codes?
Peekofwar  [author] 14 May, 2020 @ 11:15am 
I did it that way because that's the only way I knew to do it at the time I suppose.

I'll look into that though...... at some point.
Erik Peter 14 May, 2020 @ 8:10am 
The Lua code is very well structured. However, I have noticed that you are storing each digit for the access code and input as an individual variable.
To shorten the code, could you not have stored the access code and current input as two strings or integers. After each keypress, you could append to the current input by *10 and adding the pressed key, or using the ".." operator if you are using strings. You can also use the "#" operator before a string variable to return the length of the string.
When you press the enter key, you simply compare the two variables rather than comparing eight. This would mean that the access code can be as many or few digits as you want.
Your code is very good and I am not trying to criticise it in any way: I'm just trying to help.
Peekofwar  [author] 17 Apr, 2020 @ 2:57pm 
It is possible that there is a bug.
Can I have steps to reproduce the bugs? Like what the PIN code is set to, and what buttons you are pressing when the error/bug occurs?
Peekofwar  [author] 17 Apr, 2020 @ 2:56pm 
The door will only open on two conditions:
Scenario A: You enter all four digits and press the green button.
Scenario B: You press the override button on the instrument panel.
GreatGizmo74 17 Apr, 2020 @ 1:16pm 
im very new to stormworks and still learning things and i just needed some help i understand the touch screen and the video but how do you connect it to the door because when i just put in the first number the door opens
Peekofwar  [author] 17 Apr, 2020 @ 11:00am 
Which part of the logic are you confused about? This controller only has four nodes. One video output, one touch input, one override button input, and one boolean output.
GreatGizmo74 17 Apr, 2020 @ 9:36am 
OK but how do you use logic to make it work please if you could send screen shot of all the logic that could realy help
Peekofwar  [author] 15 Apr, 2020 @ 4:54pm 
You type all four digits, then you press the green button to submit. The red button resets and closes the door.

If the display flashes red, then you have entered an invalid code. If it flashes green, then you've entered the correct code and the door should open (assuming the door is connected correctly).
GreatGizmo74 15 Apr, 2020 @ 10:26am 
HEY i love it i cant get the door to open when i type the first number in the door opens? could you help please
Voriaxly 4 Apr, 2020 @ 8:16am 
wait nvm
Voriaxly 4 Apr, 2020 @ 8:15am 
how do you change the code?
Peekofwar  [author] 24 Dec, 2019 @ 6:46pm 
I haven't gotten around to programming the fifth digit, but as far as I know, this script should work fine (with four digit codes). If you encounter any problems with the script, don't hesitate to let me know.
MonkeyKing73 23 Dec, 2019 @ 10:28pm 
still works right? is the 5 digit around?
Peekofwar  [author] 24 Nov, 2019 @ 8:37pm 
@duckson1124 OR gate for what? Pretty sure most of the logic is handled in the script(s).
Duckson1124 24 Nov, 2019 @ 5:44pm 
XD
where is the or gate
Duckson1124 24 Nov, 2019 @ 5:44pm 
has anyone forgot about a or connected to door
maaxbooth 29 Sep, 2019 @ 1:56am 
Thanks
Peekofwar  [author] 28 Sep, 2019 @ 2:32pm 
To use the override controls, setup an instrument panel with two push buttons. I think the open button is Boolean 1, and the shut button is Boolean 2. The override buttons are intended to be the opposite side of the door from the keypad, to allow you to open and shut it from the other side.
maaxbooth 28 Sep, 2019 @ 10:47am 
and how do you add the override button? Thanks
maaxbooth 28 Sep, 2019 @ 10:44am 
How do you shut the door from the inside?
Peekofwar  [author] 22 Aug, 2019 @ 8:18am 
You could always use PIN [CLASSIFIED] on [REDACTED] to house in a purpose built [RETRACTED] in preparations for the [CENSORED] . [DELETED] will always [EFFACED] , and in the event that [LINE REMOVED] bring [EXPUNGED] .
ToothpasteMain 21 Aug, 2019 @ 6:37pm 
This is so [RETRACTED]!
Peekofwar  [author] 11 Jul, 2019 @ 7:18am 
I thought about sounds too, but since I don't have an empty space or a preexisting composite output, I'd have to change the physical profile on the microcontroller to allow for a couple more outputs. I just never bothered.
Peekofwar  [author] 11 Jul, 2019 @ 7:16am 
It looks better with the contrast change.
Gardiner 10 Jul, 2019 @ 1:23pm 
just suggestions man looks good
Peekofwar  [author] 9 Jul, 2019 @ 7:40pm 
Okay, I'm pushing a button color contrast update.
Peekofwar  [author] 9 Jul, 2019 @ 7:24pm 
It works fine for me, but you want to, you can change it in the video script. I believe it's just one color preceding all of the text.
Peekofwar  [author] 9 Jul, 2019 @ 1:13pm 
I'm considering adding support for a fifth digit.
Gardiner 9 Jul, 2019 @ 12:04pm 
White on Light Blue is not the best idea try black font, other then that looks great maybe sound blocks for the extra touch of keypad class