Stormworks: Build and Rescue

Stormworks: Build and Rescue

ACI Keypad Lock Microcontroller MK1
43 条留言
sharkboy7 2022 年 7 月 6 日 上午 9:23 
k thx
Peekofwar  [作者] 2022 年 7 月 5 日 下午 7:48 
@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 2022 年 7 月 5 日 下午 2:14 
what do i do for the "override button input boolean 1 and 2" what the heck does that mean what do i do
Peekofwar  [作者] 2021 年 2 月 20 日 下午 5:56 
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  [作者] 2021 年 1 月 25 日 上午 10:50 
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  [作者] 2021 年 1 月 24 日 下午 7:19 
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 2021 年 1 月 24 日 下午 5:47 
Thanks bud. Much appreciated. Awesome work :steamthumbsup:
Peekofwar  [作者] 2021 年 1 月 24 日 下午 2:01 
I've started work in a new keypad controller that I'm making from the ground-up.
Peekofwar  [作者] 2020 年 11 月 23 日 下午 6:28 
@Sol
Pretty sure I used my Single Hinged Door Microcontroller to control the door.
Sol 2020 年 11 月 12 日 下午 8:39 
Can you upload the design of the door setup pre made please.
Peekofwar  [作者] 2020 年 9 月 21 日 下午 2:37 
Might do a little bit of reprogramming/wiring...
BobKlobb 2020 年 9 月 20 日 下午 10:35 
Did you get a chance to get the guide for the override button done yet?
Peekofwar  [作者] 2020 年 8 月 30 日 上午 6:27 
@DokiDokiMC
The default code is 0-0-0-0 if I remember correctly. Check the microcontroller's configuration after placing a new one.
Breakdown 2020 年 8 月 29 日 下午 10:18 
what are the default codes?
Peekofwar  [作者] 2020 年 5 月 14 日 上午 11:15 
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 2020 年 5 月 14 日 上午 8:10 
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  [作者] 2020 年 4 月 17 日 下午 2:57 
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  [作者] 2020 年 4 月 17 日 下午 2:56 
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 2020 年 4 月 17 日 下午 1:16 
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  [作者] 2020 年 4 月 17 日 上午 11:00 
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 2020 年 4 月 17 日 上午 9:36 
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  [作者] 2020 年 4 月 15 日 下午 4:54 
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 2020 年 4 月 15 日 上午 10:26 
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 2020 年 4 月 4 日 上午 8:16 
wait nvm
Voriaxly 2020 年 4 月 4 日 上午 8:15 
how do you change the code?
Peekofwar  [作者] 2019 年 12 月 24 日 下午 6:46 
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 2019 年 12 月 23 日 下午 10:28 
still works right? is the 5 digit around?
Peekofwar  [作者] 2019 年 11 月 24 日 下午 8:37 
@duckson1124 OR gate for what? Pretty sure most of the logic is handled in the script(s).
Duckson1124 2019 年 11 月 24 日 下午 5:44 
XD
where is the or gate
Duckson1124 2019 年 11 月 24 日 下午 5:44 
has anyone forgot about a or connected to door
maaxbooth 2019 年 9 月 29 日 上午 1:56 
Thanks
Peekofwar  [作者] 2019 年 9 月 28 日 下午 2:32 
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 2019 年 9 月 28 日 上午 10:47 
and how do you add the override button? Thanks
maaxbooth 2019 年 9 月 28 日 上午 10:44 
How do you shut the door from the inside?
Peekofwar  [作者] 2019 年 8 月 22 日 上午 8:18 
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 2019 年 8 月 21 日 下午 6:37 
This is so [RETRACTED]!
Peekofwar  [作者] 2019 年 7 月 11 日 上午 7:18 
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  [作者] 2019 年 7 月 11 日 上午 7:16 
It looks better with the contrast change.
Gardiner 2019 年 7 月 10 日 下午 1:23 
just suggestions man looks good
Peekofwar  [作者] 2019 年 7 月 9 日 下午 7:40 
Okay, I'm pushing a button color contrast update.
Peekofwar  [作者] 2019 年 7 月 9 日 下午 7:24 
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  [作者] 2019 年 7 月 9 日 下午 1:13 
I'm considering adding support for a fifth digit.
Gardiner 2019 年 7 月 9 日 下午 12:04 
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