Jump to content

I am trying to help someone with ComputerCraft


Recommended Posts

As you see by the title, I am trying to help a random person on the server I play on with ComputerCraft. He made a program called LockExe and he just sells it on the server. It is very simple program. It just reads for the password and when you input it, the computer outputs a redstone signal for 5 seconds out the left side and then stops, then the computer reboots back up to the startup screen where it asks for the password again. But I just discovered the 'terminate' feature through ComputerCraft and I do not think he knows about it. So I am trying to edit his code so it disables/makes it harder to terminate the program so no-one can just steal his code. But everything that I have tried with the code keeps breaking the program. I keep using the os.pullEventRaw and that can read for the terminate event and can make it do other things besides just terminate but there are issues that I have found with using that. The first and main issue is that the os.pullEventRaw stops the programs entirely, meaning that it no longer allows me to type anything in the computer and it insteads waits for the input of the terminate event. I do the terminate event and whatever I made it do after the input happens, it does. Like if I tell it to type something out after I do ctrl + t, it tells me it. But this means that the password cannot be typed in. The second issue is after I use ctrl + t to do that terminate event, I can just do it again and it will terminate that so it will bypass it anyway. Like I said before, I am trying to help him out with his program just so no-one can steal it. Btw, he did not ask me to do any of this, I am doing it because I wanted to see if I could. But it seems I need help. This is the coding of his program just incase it helps.Capture.PNG.a3a169118ffe9fd62ccb3f4f921aae82.PNG

Edited by ZeZoBeatz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...