Powered Computer
#1
Posted 28 March 2012 - 11:12 PM
I have made 1 board computer witch can control the computers
for example if redstone output of the boardcomputer is true than can the other computers startup
but if the restone of the boardcomputer is false then they dont start
can some one help me how to program/make this
( sorry for bad english )
Tekkitown!
#2
Posted 28 March 2012 - 11:57 PM
#3
Posted 29 March 2012 - 01:36 AM
while true do local side = "back" if rs.getInput(side) then os.shutdown() else if not rs.getInput(side) then break end endThen, if the computer got a redstone input from the back, it would not turn on, if it doesn't, it will turn on.
#4
Posted 29 March 2012 - 03:06 AM
thesbros, on 29 March 2012 - 01:36 AM, said:
while true do local side = "back" if rs.getInput(side) then os.shutdown() else if not rs.getInput(side) then break end endThen, if the computer got a redstone input from the back, it would not turn on, if it doesn't, it will turn on.
#5
Posted 29 March 2012 - 07:37 AM
hamish1001, on 29 March 2012 - 03:06 AM, said:
thesbros, on 29 March 2012 - 01:36 AM, said:
while true do local side = "back" if rs.getInput(side) then os.shutdown() else if not rs.getInput(side) then break end endThen, if the computer got a redstone input from the back, it would not turn on, if it doesn't, it will turn on.
@Tekkitown
Do you just want to unlock the PCs or really START them? Because starting via redstone isn't possible atm. Only checking if a redstone input is there
I could even program a rednet based unlock check
#6
Posted 29 March 2012 - 03:19 PM
at 1:00
he have to power his computer with a lever before he can start his pc
I have a Chest chamber in my multiplayer server and i want 1 mother computer that must be activated by password before the other computers ( for opening chests ) can boot
#7
Posted 29 March 2012 - 03:39 PM
#8
Posted 29 March 2012 - 03:46 PM
while true do sleep(0.1) pass = "passwordhere" -- Password. side = "back" -- Side of output for other computers. print("Mother Computer Security System") write("Password: ") input1 = read() if input1 == (pass) then print("Password correct!") rs.setOutput(side, true) break else print("Password incorrect!") sleep(2) os.reboot() endOn all other computers in a file called 'startup' (change the side to the side of where redstone input is gonna go in):
while true do sleep(0.1) side = "back" -- Side. if redstone.getInput(side) then break else if not redstone.getInput(side) then os.shutdown() end end
#9
Posted 29 March 2012 - 04:18 PM
and if i press 2 then i can turn the lights on in the chamber ?
and that script for the other computers do have a password to ?
thanks
#10
Posted 29 March 2012 - 05:16 PM
Tekkitown, on 29 March 2012 - 04:18 PM, said:
and if i press 2 then i can turn the lights on in the chamber ?
and that script for the other computers do have a password to ?
thanks
And you want on your other computer that you have to menu entries? OK I write it for you
#11
Posted 29 March 2012 - 05:55 PM
[ 1 ] Chest Safety Control.
[ 2 ] Light Control
for menu 1 I can write my password to unlock the chest computers
and for 2 I can put the lights on in the room ( redstone lamps from technic pack)
also i want a password on the chest computers
BTW: script from other computers dont work
error: bios:206: [string "startup"):16: 'end' expected
(to close 'while' at line 1)
but it ended with
end
end
#12
Posted 30 March 2012 - 01:21 PM
#13
Posted 30 March 2012 - 02:08 PM
#14
Posted 30 March 2012 - 04:49 PM
I will paste it on my thread again but here it is:
Client - Pastebin.com
Controller - Pastebin.com
Even with integrated first time config! Just start both programs once
#15
Posted 31 March 2012 - 01:51 PM
#16
Posted 01 April 2012 - 03:24 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users