Jump to content




Turn on computers via redstone power


  • You cannot reply to this topic
11 replies to this topic

#1 JJRcop

  • Members
  • 131 posts

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.

#2 crazyguymgd

  • Members
  • 139 posts
  • LocationUSA

Posted 10 January 2013 - 05:47 PM

http://computercraft...dstone.getInput

Many answers can be found on the wiki

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 10 January 2013 - 05:49 PM

View Postcrazyguymgd, on 10 January 2013 - 05:47 PM, said:

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.

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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).

#5 dissy

  • Members
  • 181 posts

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..

#6 crazyguymgd

  • Members
  • 139 posts
  • LocationUSA

Posted 10 January 2013 - 05:57 PM

View PostTheOriginalBIT, on 10 January 2013 - 05:49 PM, said:

View Postcrazyguymgd, on 10 January 2013 - 05:47 PM, said:

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.

#7 crazyguymgd

  • Members
  • 139 posts
  • LocationUSA

Posted 10 January 2013 - 06:05 PM

View PostLyqyd, on 10 January 2013 - 05:49 PM, said:

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.

#8 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

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.

#9 JJRcop

  • Members
  • 131 posts

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.

#10 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 11 January 2013 - 05:51 AM

You could have two PCs next to each other...

#11 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 11 January 2013 - 06:37 AM

View PostJJRcop, on 11 January 2013 - 05:29 AM, said:

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.

#12 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 11 January 2013 - 08:03 AM

View PostJJRcop, on 11 January 2013 - 05:29 AM, said:

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users