Jump to content




[Immibis Peripheral] Mag-card Password security system

peripheral utility

5 replies to this topic

#1 niccosaint

  • Members
  • 3 posts

Posted 20 August 2014 - 03:55 PM

VERSION Beta2 [WIP]

Have you ever wanted to get security system using Mag-stripe cards like in real life ?


Now you can get this HERE !!


Depencies:
  • ComputerCraft
  • Immibis Peripherals
Features:
  • Configurable passwords: User and admin
  • Configurable opening time
  • Infos on monitor: Admin entry, wrong passwords
To-do:
  • Bugfix - Passwords don't work correctly
  • Get more expirience in Lua (my first program, bugs expected no bugs here ;) )
  • Guest entry (one time entry)
  • Only chosen users can enter
  • reply if you want more
Screenshots:
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
  • Unknown user tries to enter
  • Admin entry
  • User Entry
  • Idle
  • Example mechanism
Get it Here:
CC: pastebin get EE9cw3rj magsecurity
http://pastebin.com/EE9cw3rj

Edited by niccosaint, 22 August 2014 - 11:52 AM.


#2 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 20 August 2014 - 06:49 PM

I believe that your passwords are supposed to be saved as strings and that may be why your passwords don't work correctly.
Try doing
local combo = "123" -- Can be password, level etc.
local adminCombo = "ADMIN" -- Admin password
Instead of
local combo = 123 -- Can be password, level etc.
local adminCombo = ADMIN -- Admin password

Also you're deciding that whatever they do the output is always on the back. You should add
local side = "back"
to the top and have that be able to be changed for ease of use and then use side in your rs.setOutput()'s

Edited by Dragon53535, 20 August 2014 - 06:51 PM.


#3 niccosaint

  • Members
  • 3 posts

Posted 21 August 2014 - 02:39 PM

 Dragon53535, on 20 August 2014 - 06:49 PM, said:

I believe that your passwords are supposed to be saved as strings and that may be why your passwords don't work correctly.
Thanks Dragon, but you know, this is my first program.
I'll change pastebin code due to correcting program.
When i'll have faster net i add screenshots

#4 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 21 August 2014 - 08:36 PM

 niccosaint, on 21 August 2014 - 02:39 PM, said:

Thanks Dragon, but you know, this is my first program.
And that's perfectly fine, that's why i helped out :P

Perhaps you didn't quite understand, your rs.setOutput's should be rs.setOutput(side,true) you still have to declare the side, however you have already defined at the top side = "back" which is the same as putting rs.setOutput("back",true) but it allows it to be changed only in one spot rather than many.

#5 niccosaint

  • Members
  • 3 posts

Posted 22 August 2014 - 08:47 AM

 Dragon53535, on 21 August 2014 - 08:36 PM, said:

Perhaps you didn't quite understand, your rs.setOutput's should be rs.setOutput(side,true) you still have to declare the side, however you have already defined at the top side = "back" which is the same as putting rs.setOutput("back",true) but it allows it to be changed only in one spot rather than many.

I know but yesterday i haven't net that's why i didn't update code

#6 halsey07

  • New Members
  • 1 posts

Posted 01 October 2015 - 06:28 PM

The card says Access denied when i try it how do I fix it





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users