Jump to content

Recommended Posts

Posted (edited)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...