This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
JJRcop's profile picture

Turn on computers via redstone power

Started by JJRcop, 10 January 2013 - 04:15 PM
JJRcop #1
Posted 10 January 2013 - 05:15 PM
I have searched the forums and I have not found a suggestion like this one.
I am aware computers may turn on/shutdown/reboot other computers.

My suggestion is simple so it has a simple explanation.
If a computer is off and is powered with redstone, turn it on.

I do not believe any more explanation is required.
crazyguymgd #2
Posted 10 January 2013 - 05:47 PM
http://computercraft.info/wiki/Redstone.getInput

Many answers can be found on the wiki
theoriginalbit #3
Posted 10 January 2013 - 05:49 PM
http://computercraft...dstone.getInput

Many answers can be found on the wiki
Not what he meant. the rs api can't turn a computer on. sure you could have a program listen for the rs signal, but OP was about turning on a computer, not performing functions based on rs.
Lyqyd #4
Posted 10 January 2013 - 05:49 PM
Why would this be necessary? Other turtles/computers can already turn them on. I don't really see the benefit, especially when you can write a program to emulate this behavior (a startup which blanks the screen and waits for a redstone input).
dissy #5
Posted 10 January 2013 - 05:50 PM
This might be problematic while developing and debugging a program.
I frequently find myself hitting control-s and hoping it will register in time before my buggy program causes problems with the redstone contraption it's wired into. This would mean when it does manage to turn off in time, once the contraption cycles and sends a signal back it will power on the computer again.

I could see a toggle somehow, but now we're talking a larger change to things..
crazyguymgd #6
Posted 10 January 2013 - 05:57 PM
http://computercraft...dstone.getInput

Many answers can be found on the wiki
Not what he meant. the rs api can't turn a computer on. sure you could have a program listen for the rs signal, but OP was about turning on a computer, not performing functions based on rs.

I guess I saw simple so many times that I immediately thought it was a question about just getting the redstone signal. My apologies.
crazyguymgd #7
Posted 10 January 2013 - 06:05 PM
Why would this be necessary? Other turtles/computers can already turn them on. I don't really see the benefit, especially when you can write a program to emulate this behavior (a startup which blanks the screen and waits for a redstone input).

And I like the emulate solution to this.
Luanub #8
Posted 10 January 2013 - 08:08 PM
This has came up several times over the past year, its not going to happen. You will have to use another computer/turtle and connect as a peripheral to turn it on. You could add some code to your startup that checks for the signal and if not there then have it shut down the computer(not quite the same I know).

I had a need for this same type of functionality and ended up just using the peripheral method.
JJRcop #9
Posted 11 January 2013 - 05:29 AM
I was wanting this functionality to I could walk into my previously unloaded house, and all my obviously unloaded computers would turn on and start doing their stuff without requiring me to turn all of them on.

If this can't happen, I'll have a turtle I can just right-click on and it will be simply instructed to turn on all the computers.

A response from a mod/a link to a duplicate thread I have not found any of would be helpful.
Zudo #10
Posted 11 January 2013 - 05:51 AM
You could have two PCs next to each other…
Lyqyd #11
Posted 11 January 2013 - 06:37 AM
I was wanting this functionality to I could walk into my previously unloaded house, and all my obviously unloaded computers would turn on and start doing their stuff without requiring me to turn all of them on.

If this can't happen, I'll have a turtle I can just right-click on and it will be simply instructed to turn on all the computers.

A response from a mod/a link to a duplicate thread I have not found any of would be helpful.

Again, you can emulate this behavior by having your computers' startup file have this at the top:


term.clear()
term.setCursorPos(1,1)
repeat
  os.pullEvent("redstone")
until rs.getInput("back")

Obviously, change "back" to whichever side you want the redstone input to be on.
Cloudy #12
Posted 11 January 2013 - 08:03 AM
I was wanting this functionality to I could walk into my previously unloaded house, and all my obviously unloaded computers would turn on and start doing their stuff without requiring me to turn all of them on.

If this can't happen, I'll have a turtle I can just right-click on and it will be simply instructed to turn on all the computers.

A response from a mod/a link to a duplicate thread I have not found any of would be helpful.

Computers DO start when the chunk is unloaded then loaded.