Current Version: 1.0
IDLock is a ComputerCraft Security System, But With Cards!
IDLock has a few features, and has many more to come. This is also an application which requires that HTTP is enabled to work. If you do not know how to enable HTTP, there is a tutorial under How To Install This Program. Tell me what you think, and what I could add or improve on. Enjoy!
Program Features:
Spoiler
- Has configurable output side for correct authentication.- Has an option to play a noteblock on alternate side for correct authentication.
- Multi-User Support.
- Easy Key Interactions.
- Automatic Updater.
Planned Features:
Spoiler
- Ability To Input Username & Password Without Card.- Ability To Have Multi-User Configurable Output Side. (2 Users = 2 Output Sides)
- Improve Updater.
- Improve Overall Code
- Improve Security
Important Information:
Spoiler
- The ID Card is a floppy disk.- There is not a fix for deleting the only user.
- If you delete the only user, you cannot uninstall the program, or recreate it.
- The updater forces updates, and they're not optional, as of yet. (If I need to change it then let me know.)
- HTTP has to be enabled or the program cannot be installed, or update.
- Please report any bugs that you find.
- Please suggest anything that you think should be added.
- Don't reupload this program, or its code, as it isn't yours to reupload.
- Don't change the code, as it isn't your code.
- Don't take credit for the code, because it isn't yours.
Key Interactions (Very Important)
Spoiler
The Key Interactions Are Used For Interacting With The Computer, And Are Not Visible Ingame.Insert - Prompts To Add Another User.
Delete - Prompts To Delete User. (Don't delete the only user, there is not a fix for this yet, and it will cause BIG problems.)
End - Prompts To Uninstall Program. (Any registered user as of yet; can uninstall the program, so be aware.)
How To Install This Program:
Spoiler
Make sure HTTP is enabled, or this will not work!1. Go to a computer.
2. Insert a floppy disk in the disk drive connected to the computer.
3. On the computer, type: pastebin get RTygjhrP startup
4. Restart the computer.
How to enable HTTP:
Spoiler
1. Go to the root directory of the game, .minecraft/.techniclauncher2. Make sure that you are in the folder that contains the Saves, Bin, ect…
3. In that folder, open the Config folder.
4. Find the file that is for computercraft. Mod_Computercraft
5. Open it and change enableAPI_http=0 to enableAPI_http=1
6. Save the file, and you're done! You may need to reboot the game though!
Changelog
V1.0
Spoiler
First Release Of The Program!- Added configurable output side for correct authentication.
- Added an option to play a noteblock on alternate side for correct authentication.
- Added Multi-User Support.
- Added Easy Key Interactions.
- Added Automatic Updater.
Code:
Spoiler
term.clear()
term.setCursorPos(1,1)
print("IDLock V1.0n")
print("HTTP Must Be Enabled For Possible Installation.")
print("Would You Like To Install IDLock? Y | N")
repeat
event, key = os.pullEvent("key")
os.sleep(0.1)
until key == 21 or key == 49
if key == 21 then
textutils.slowPrint("nDownloading Installer...")
os.sleep(1)
local DownloadInstaller = http.get("http://dl.dropbox.com/u/39147094/IDLock/Installer")
f = fs.open("Installer", "w")
f.write(DownloadInstaller.readAll())
f.close()
print("nLaunching Installer")
shell.run("Installer")
elseif key == 49 then
print("nInstallation Cancelled!")
os.sleep(1)
fs.delete("startup")
os.reboot()
end