2 posts
Posted 25 February 2012 - 03:29 PM
Sorry for my bad English, but i have an questions.
1. Can I install apps in SMP server with ComputerCraft?
2. How Can I make a login/password for my computer?
Thanks.
473 posts
Location
Poland
Posted 25 February 2012 - 03:44 PM
1. If you have access to the server's terminal jsut put the files into <savename>/computercraft/<computerID>/ folder, while savename and computerID are respectively the name of your world save and the ID of the computer you want to upload to.
2. write something like this:
local login="admin"
local password="admin"
while true do
write("Login: ")
local a=read()
write("Password: ")
local b=read()
if a==login and b==password then break
else print("Login failed!")
end
end
print("Login successful!")
return true
and save it as 'startup'
454 posts
Location
London
Posted 25 February 2012 - 04:00 PM
1) Yes, assuming HTTP is enabled.
2) You can make a startup file, that asks for a user/password, but people can boot your computer with a floppy if you're not careful. You can disable floppy booting (or modify it) by changing the Lua scripts on the server's "mods/ComputerCraft/lua/"directory, though.