11 posts
Posted 29 March 2012 - 12:12 AM
Hi,
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!
74 posts
Location
Australia
Posted 29 March 2012 - 12:57 AM
That would be cool
474 posts
Posted 29 March 2012 - 02:36 AM
I would do in a file called 'startup' on each computer, put this code:
while true do
local side = "back"
if rs.getInput(side) then
os.shutdown()
else if not rs.getInput(side) then
break
end
end
Then, if the computer got a redstone input from the back, it would not turn on, if it doesn't, it will turn on.
74 posts
Location
Australia
Posted 29 March 2012 - 04:06 AM
I would do in a file called 'startup' on each computer, put this code:
while true do
local side = "back"
if rs.getInput(side) then
os.shutdown()
else if not rs.getInput(side) then
break
end
end
Then, if the computer got a redstone input from the back, it would not turn on, if it doesn't, it will turn on.
what he said :o/>/>
378 posts
Location
In the TARDIS
Posted 29 March 2012 - 08:37 AM
I would do in a file called 'startup' on each computer, put this code:
while true do
local side = "back"
if rs.getInput(side) then
os.shutdown()
else if not rs.getInput(side) then
break
end
end
Then, if the computer got a redstone input from the back, it would not turn on, if it doesn't, it will turn on.
what he said :o/>/>
You don't have to repost his and say what he said just to increase your post counter -.-
@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
11 posts
Posted 29 March 2012 - 04:19 PM
I got the idea from this video:
http://www.youtube.com/watch?v=qFfWYbnd9A4&feature=relatedat 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
474 posts
Posted 29 March 2012 - 04:39 PM
Got it, coding it right now.
474 posts
Posted 29 March 2012 - 04:46 PM
On mother computer in a file called 'startup' (you might wanna change your password):
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()
end
On 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
11 posts
Posted 29 March 2012 - 05:18 PM
when i use this script ? can i create also a menu in the mother computer so if i press 1 then i come in a window where i have to fill in my password for activating the computers
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
378 posts
Location
In the TARDIS
Posted 29 March 2012 - 06:16 PM
when i use this script ? can i create also a menu in the mother computer so if i press 1 then i come in a window where i have to fill in my password for activating the computers
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
I think it didn't start because it checked IS REDSTONE SIGNAL THERE? NO? os.shutdown() /YES? LOGIN
And you want on your other computer that you have to menu entries? OK I write it for you
11 posts
Posted 29 March 2012 - 06:55 PM
I want on the mother computer a menu entries
[ 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
378 posts
Location
In the TARDIS
Posted 30 March 2012 - 02:21 PM
Writing it atm! Finished Client software createing host now
11 posts
Posted 30 March 2012 - 03:08 PM
thanks :o/>/>
378 posts
Location
In the TARDIS
Posted 30 March 2012 - 05:49 PM
OK Done!
I will paste it on my thread again but here it is:
Client -
Pastebin.comController -
Pastebin.comEven with integrated first time config! Just start both programs once
259 posts
Location
Australia
Posted 31 March 2012 - 02:51 PM
Nice work guys :o/>/>
378 posts
Location
In the TARDIS
Posted 01 April 2012 - 04:24 PM
thx