This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
How to stop CTRL-R and CTRL-S
Started by Pedroc1999, 31 October 2012 - 08:49 PMPosted 31 October 2012 - 09:49 PM
I have coded my program so no one can terminate it, but i need to stop people from using CTRL-R and CTRL-S as this would have catastrophical effects on the effectiveness of my program, i have added the code for it not to be terminated but what are the others
Posted 31 October 2012 - 09:57 PM
This is in the java code and cannot be stopped with any lua code
Posted 31 October 2012 - 10:05 PM
so what you are saying that anyone that knows the shortcut can just click that and open my door(if my computer is rebooted then my door opens untill i re-close it manually)is there any way to keep the redstone live while my computer is rebooting?
Posted 31 October 2012 - 10:13 PM
R-E-D-S-T-O-N-E- -T-O-R-C-H
Posted 31 October 2012 - 10:13 PM
Nope, you would need to rebuild the logic inworld(to make it so the door is closed when there is no redstone signal).
Posted 31 October 2012 - 10:15 PM
could you rewrite in english please as i dont rly understand how to do that
Posted 31 October 2012 - 10:31 PM
Well what you could do is when it outputs a signal, make it save that into a file with 'on'. And in the start of the file make it read what is in the file to read the status.
Posted 31 October 2012 - 10:38 PM
yes but the pc would be rebooting so no programs can run then
Posted 31 October 2012 - 10:41 PM
just position the door so that it is closed by default and requires the redstone signal to open. that's the way all of mine are
Posted 31 October 2012 - 10:45 PM
but mine is a piston powered door that uses wireless redstone to activate itself, 1 outdoor switch(computer) 1indoor switch lever and 1 master switch lever, cant i just use redstone instead by using a NOT gate(inverter so if the pc was off it would enter security lock down mode and turn the no redstone signal into a 'on redtsone signal
Posted 31 October 2012 - 10:55 PM
that didnt work, all it did was turn open into close. i am thinking if i set my program to allways immit redstone in a diffrent direction and use the inverter there, when the pc turns off the redstone will too , turning the redstone on and activating my pistons, it would work. in theory
Posted 31 October 2012 - 11:00 PM
Set your program to use the opposite outputs in the code (so closed is off and open is on) and put a torch on the side of the computer instead of redstone dust leading away from it. Should be all the inversion you need.
Posted 31 October 2012 - 11:07 PM
Exactly, just because Doyle put dashes in his all caps post doesn't mean he wasn't right.
Posted 31 October 2012 - 11:40 PM
got it now, i made a redstone inverter and put a path from back of computer to it then from it into pistons(safety) and after my open command i put to turn that one(so turn safety off)so now when the computer is turned off the door locks itself, and the only way of opening it then is by turning the computer on and typing the password to open it so noone without the password can get in even if the computer is off.
btw minecraft is my first try at LUA and now when i get back to school im going to say i learned lua through a video game and see if they can buy minecraft for all the school!!!!
i am so happy i managed to accomplish this!!!!, im also going to be publishing it when ive tested this thoroughly and improved my code
btw minecraft is my first try at LUA and now when i get back to school im going to say i learned lua through a video game and see if they can buy minecraft for all the school!!!!
i am so happy i managed to accomplish this!!!!, im also going to be publishing it when ive tested this thoroughly and improved my code
Posted 01 November 2012 - 05:12 PM
CC's for all!
Posted 02 November 2012 - 02:59 AM
yes but meanwhile my world got currupt(mcedit) thank god i could just remake my door, make a computer and copy the files into that computer