Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • Announcements

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7 for MC 1.7.10, 1.8.9, 1.9.4, 1.10.2, 1.11.2 & 1.12.1. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)

deace_nuts

Members
  • Content count

    10
  • Joined

  • Last visited

About deace_nuts

  • Rank
    Junior Member

Contact Methods

  • Minecraft
    deace_nuts
  1. Can I autorun a program?

    So if my program is named door.lua and it's located in /home, I would do... Edit /etc/rc.d -> enabled = {} -> enabled = {"door.lua"} Is that correct? If so it's not working, so I must have done something wrong.
  2. Can I autorun a program?

    I've got a door control that I'd like one computer to run on startup, is there anyway of doing this?
  3. Autorun?

    I've got a door control that I'd like one computer to run on startup, is there anyway of doing this?
  4. Motion sensor isn't working

    That works fantastic, thank you!
  5. Motion sensor isn't working

    Open and quit still don't do anything.
  6. Motion sensor isn't working

    I see, I've noticed that the motion sensor works, but neither Open nor Quit does anything.
  7. Motion sensor isn't working

    Wow, thank you so much for doing this! Though it looks like for some reason it can't find the thread library, is that a non-included library?
  8. Motion sensor isn't working

    I replaced io.read() with event.pull() and now the motion sensor works perfectly. Though now I can't enter anything to open the door, so clearly I used the wrong call, right?
  9. Motion sensor isn't working

    hmm, then maybe the sensitivity is too low? How can I change that? The sensitivity is fine actually. I don't know what's up with it. I ran it as it's own script and it worked (mind you it didn't keep a solid redstone output, so the piston kept moving.) so maybe it has something to do with how I structured it. Is it my "While true do"?
  10. Motion sensor isn't working

    I have this script that I wrote to control a piston door via redstone and on the other side of the door I have a motion sensor to open the piston door (toggle the redstone signal on). For some reason the motion sensor isn't doing anything, though. I know it's something I did, I'm new to LUA. local component = require("component") local sides = require("sides") local event = require("event") local gpu = component.gpu local term = require("term") local rs = component.redstone -- Config local delay = 5 while true do -- GUI term.clear() gpu.setForeground(0x00FF00) print("--------------------------- ToNELvision MICROSYTEMS ---------------------------\n") gpu.setForeground(0xFFFFFF) print("Welcome. Please enter one of the displayed commands. It may take a few seconds for the command to be interpreted.\n") gpu.setForeground(0xE6AB38) print("Open") print("Close") gpu.setForeground(0xFFFFFF) term.setCursor(1,9) local input=io.read() if input == "Open" then rs.setOutput(side.right, 15) os.sleep(delay) rs.setOutput(side.right, 0) else wrong = true end -- Motion Sensor local id, _, x, y, entityName = event.pull("motion") rs.setOutput(sides.right, 15) os.sleep(delay) rs.setOutput(sides.right, 0) end
×