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

How to keep a door locked ?

Started by Mordocai, 11 November 2012 - 05:26 AM
Mordocai #1
Posted 11 November 2012 - 06:26 AM
Hi everyone,

A small question :

I made a program that password protects a reinforced door.

I used the pullEventRaw code to prevent anyone from terminating it, so it's "hack-proof"
But now I find out, that when I leave the server and come back, the PC is back to normal and the program is not running anymore, making the program available to look at the code.

Does anyone have a clue on what I do wrong ?

Do I add a special code to prevent this, or is there a server setting that I'm overlooking ?


Thank you beforehand for the help
Kingdaro #2
Posted 11 November 2012 - 07:07 AM
If you rename the program to "startup", the program will start once the world/server is loaded. So all you have to do is rename your program to startup.
Mordocai #3
Posted 11 November 2012 - 10:18 AM
thank you, I will try this.

I was using a disk and diskdrive to keep my program separate, incase i wanted to relocate the computer.
I'll copy the program to the computer then
robhol #4
Posted 11 November 2012 - 10:55 AM
If the computer is labelled, programs on it will be stored.