Stormworks: Build and Rescue

Stormworks: Build and Rescue

ACI Keypad Lock Microcontroller MK1
43 kommentarer
sharkboy7 6. juli 2022 kl. 9:23 
k thx
Peekofwar  [ophavsmand] 5. juli 2022 kl. 19: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 5. juli 2022 kl. 14: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  [ophavsmand] 20. feb. 2021 kl. 17: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  [ophavsmand] 25. jan. 2021 kl. 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  [ophavsmand] 24. jan. 2021 kl. 19: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 24. jan. 2021 kl. 17:47 
Thanks bud. Much appreciated. Awesome work :steamthumbsup:
Peekofwar  [ophavsmand] 24. jan. 2021 kl. 14:01 
I've started work in a new keypad controller that I'm making from the ground-up.
Peekofwar  [ophavsmand] 23. nov. 2020 kl. 18:28 
@Sol
Pretty sure I used my Single Hinged Door Microcontroller to control the door.
Sol 12. nov. 2020 kl. 20:39 
Can you upload the design of the door setup pre made please.
Peekofwar  [ophavsmand] 21. sep. 2020 kl. 14:37 
Might do a little bit of reprogramming/wiring...
BobKlobb 20. sep. 2020 kl. 22:35 
Did you get a chance to get the guide for the override button done yet?
Peekofwar  [ophavsmand] 30. aug. 2020 kl. 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 29. aug. 2020 kl. 22:18 
what are the default codes?
Peekofwar  [ophavsmand] 14. maj 2020 kl. 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 14. maj 2020 kl. 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  [ophavsmand] 17. apr. 2020 kl. 14: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  [ophavsmand] 17. apr. 2020 kl. 14: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 17. apr. 2020 kl. 13: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  [ophavsmand] 17. apr. 2020 kl. 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 17. apr. 2020 kl. 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  [ophavsmand] 15. apr. 2020 kl. 16: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 15. apr. 2020 kl. 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 4. apr. 2020 kl. 8:16 
wait nvm
Voriaxly 4. apr. 2020 kl. 8:15 
how do you change the code?
Peekofwar  [ophavsmand] 24. dec. 2019 kl. 18: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 23. dec. 2019 kl. 22:28 
still works right? is the 5 digit around?
Peekofwar  [ophavsmand] 24. nov. 2019 kl. 20:37 
@duckson1124 OR gate for what? Pretty sure most of the logic is handled in the script(s).
Duckson1124 24. nov. 2019 kl. 17:44 
XD
where is the or gate
Duckson1124 24. nov. 2019 kl. 17:44 
has anyone forgot about a or connected to door
maaxbooth 29. sep. 2019 kl. 1:56 
Thanks
Peekofwar  [ophavsmand] 28. sep. 2019 kl. 14: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 28. sep. 2019 kl. 10:47 
and how do you add the override button? Thanks
maaxbooth 28. sep. 2019 kl. 10:44 
How do you shut the door from the inside?
Peekofwar  [ophavsmand] 22. aug. 2019 kl. 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 21. aug. 2019 kl. 18:37 
This is so [RETRACTED]!
Peekofwar  [ophavsmand] 11. juli 2019 kl. 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  [ophavsmand] 11. juli 2019 kl. 7:16 
It looks better with the contrast change.
Gardiner 10. juli 2019 kl. 13:23 
just suggestions man looks good
Peekofwar  [ophavsmand] 9. juli 2019 kl. 19:40 
Okay, I'm pushing a button color contrast update.
Peekofwar  [ophavsmand] 9. juli 2019 kl. 19: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  [ophavsmand] 9. juli 2019 kl. 13:13 
I'm considering adding support for a fifth digit.
Gardiner 9. juli 2019 kl. 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