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 post
Share on other sites

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.

  • Similar Content

    • By GrantTheWizard
      Hello, I am new to LUA but not in programming. I am not understanding why my blockchain is not working.
      It is supposed to go 40 blocks down the row(Hence the for loop for count 40)
      Then when it gets to 40 come back(I need to change the 3 to a 2) but what it does right now is it digs the first wheat then stays there, then executes the turn then stops. Any ideas on how to fix?

    • By ExcitedGamerDud
      Hello, I am using the current Email I have requested a passwored reset to be sent to but for some reason it's not working. I have checked my Inbox and Junk Email and nothing has been sent. I'm needing to reset my password Could you please help me out. Username on the account xxmobkiller : Email : Not displayed. Must PM User to see the Email.
    • By GhostMerchant
      Can't log in, it says I have invalid credentials.
      It might be because I migrated my account.
      I've read it says I should try to give it permission from my anti-virus but I don't know how....help!
    • By Travis699
      Error: could not open 'C:/program Files/Java/jre1.8.0_60/lib/amd64/jvm.cfg'
    • By njava
      I cant log in to launcher. I tried many times but it always tells me that username or password are incorrect. Can someone help me? I'm sorry for my english
×
×
  • Create New...