Wima 0 Posted March 31, 2018 Share Posted March 31, 2018 Hallo every one, i have written a program to automate producing of mystical flowers, that works very well. the program is saved as autorun.lua to start automatically. My problem is that sometimes the computers run out of Energy (maybe because of unloading chunk of Energy core) and the computer shut down. is there a way to turn on the computer automatically again? I tried with a redstone signal. no success and i found this api, but i don't know how to use it, and if it works! must this be in a while loop? Quote Link to post Share on other sites
0 Molinko 43 Posted March 31, 2018 Share Posted March 31, 2018 Both the modem card and the Redstone card have wake methods. See the docs specifically for the mentioned component APIs. I believe they're redstone.setWakeThreshold(level:number) and modem.setWakeMessage(message:string). See http://ocdoc.cil.li/component:modem. Also, pretty sure the modem will still need to have a port open to receive the wake message but don't trust me on that. Test it out Quote Link to post Share on other sites
0 Wima 0 Posted April 1, 2018 Author Share Posted April 1, 2018 the Computer should start by itself, und not remotly controlled, because i will have the same problem with a second computer, wenn all shut down! Quote Link to post Share on other sites
0 Izaya 19 Posted April 1, 2018 Share Posted April 1, 2018 Using redstone should work for that - have a timer/clock hooked up to the computer, and use redstone.setWakeThreshold so that if the computer isn't turned on, it will be every x amount of time. Quote Link to post Share on other sites
0 Wima 0 Posted April 16, 2018 Author Share Posted April 16, 2018 No it doesn't! i tried that with a button on all sides! Quote Link to post Share on other sites
Hallo every one,
i have written a program to automate producing of mystical flowers, that works very well.
the program is saved as autorun.lua to start automatically.
My problem is that sometimes the computers run out of Energy (maybe because of unloading chunk of Energy core) and the computer shut down.
is there a way to turn on the computer automatically again?
I tried with a redstone signal. no success
and i found this api, but i don't know how to use it, and if it works! must this be in a while loop?
Link to post
Share on other sites