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

Continue where it left off after Reboot w/o editing startup

Started by Fish_tacoz, 30 December 2012 - 03:39 PM
Fish_tacoz #1
Posted 30 December 2012 - 04:39 PM
My server has restarts at times, and whenever it does, my computer reboots. Mainly, the redstone signal that I turned on using redstone.setOutput("back",true) turns off. I would like to keep this redstone signal constantly on, unless if it is toggle off by me, if possible
Note: I would prefer to not move my code to startup.
Thank you.
snoble2022 #2
Posted 30 December 2012 - 05:05 PM
Theres no other way. If your worried about your code being overridden via disk then just get the server admin to install my boot-order program (He can find it in my posts)

EDIT: You have to have a startup file
ChunLing #3
Posted 30 December 2012 - 07:50 PM
Use a redstone torch, turn it off with an output from your computer.
remiX #4
Posted 30 December 2012 - 10:04 PM
You can save the state of the redstone signal inside a file and then it can retrieve what it was last and then set the state back to that, but you will still need to re-open the file all the time after each restart.
Fish_tacoz #5
Posted 31 December 2012 - 05:33 AM
oh, ok Thank you everyone