- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
Search the Community
Showing results for tags 'Program'.
-
Ok!!! Hello! So... I was going along. Coding more for the OpenComputer RFTools Dialing Program when I found out about DRONES! I immediately went and checked them out, and found out there "Basically the microcontrollers of robots." Witch I was sorta sad that you cant have a hard drive on them and so forth, Plus you only have a limited space in the bios that the drone runs on. Anyway, I wanted to find a way to run all the stuff remotely so the drone wouldn't have to do any of the processing. Like a separate computer would tell the drone what to do over a wireless network, but because I wanted i
-
I made a microcontroller program that works with computer craft, but it doesn’t work. Please help. The program is in pastebin.com/L2WBivB5 The error is: bad argument #1 (string expected, got nil). Please help! -Hakz Studioz
-
So... I'm back...you know radars are expensive... that makes radar upgrades for each drone more expensive...which defeats the purpose of having a dispensable army. This is my attempt at fixing this issue: Instead of having each of your drone fly around with equipment worth half of the US military budget, why not have a single radar and a computer to tell the swarm where to buzz around?. Here's the new stuff that you need: a Waypoint block named "yeet" -- or something else if you want, just don't forget to change it in the code Radar block --from computronics a computer
-
Hi, are you tired of your mundane minions? do you have a s@$# ton of drones and have no idea what to do with them? are you tired of havi- you know what here's the code for your Drone Army (I don't know what else to say to convince you that this is a program worth playing with): Le client.lua (this goes in your tablet): local component = require("component") local event = require("event") local serialization= require("serialization") local computer= require("computer") local modem = component.modem modem.open(2412
-
Hello, (I don't speak english very well, sorry in advance for errors) I need a program to controll an iron with the in-game time. But i d'ont know how to ask to the computer the in-game time, someone can build a simple program to turn on redstone signal at 6AM, and turn it off at 8PM ? I need the program will be easy to understand, and esay ton configure, annotations are good for this Thank you in advance, bye !
-
Hello everyone ! I would like a program that could allow a drone to walk my dog autonomously around a building for example, but i not being good at coding on opencomputer, I ask your help Thanks you for you help ^^ i wait you ^^
-
Ok!!! Hello! So... I was going along. Coding more for the OpenComputer RFTools Dialing Program when I found out about DRONES! I immediately went and checked them out, and found out there "Basically the microcontrollers of robots." Witch I was sorta sad that you cant have a hard drive on them and so forth, Plus you only have a limited space in the bios that the drone runs on. Anyway, I wanted to find a way to run all the stuff remotely so the drone wouldn't have to do any of the processing. Like a separate computer would tell the drone what to do over a wireless network, but because I wanted i
-
im making a program, but commands that work in the lua interpreter dont inside a custom program. how do i fix this?
-
I'm working on a small bit of code that reads from a IC2 power storage block and displays it's current and maximum storage. I also want it to toggle a Reactor based on either a keypress or a CLI menu option. As the code has to refresh a LOT, I think a keypress option is the easiest way, but I can't, for the life of me, figure it out. Here's what I have so far... os.execute("cls") -- Hook the component local component = require("component") local term = require("term") local side = require("sides") local keyboard = require("keyboard") local event = require("event") local rs = componen
- 13 replies
-
- coroutine
- coroutines
- (and 6 more)
-
I need to run a program on a robot using os.execute or similar and then collect a return value (a slot number). I've tried the 'return' keyword but the program just spits out the normal "true" saying the program ran, but nothing else. The code I have now is: #component declarations and requires statements for robot and inventory controller lookingFor = args[1] for i=1,robot.inventorySize()do robot.select(i) item = invcon.getStackInInternalSlot() if item ~= nil then itemName = item['label'] end if lookingFor == itemName then return i end end return 0 Anyone know if
-
This is the program. local component = require("component") local sensor = component.motion_sensor local sides = require("sides") local io = require("io") local term = require("term") local event = require("event") sensor.setSensitivity(0.2) local range=1 ------ Functions ----- function close() local rs1 = component.proxy("bebe4c8f-a23e-4e7a-baec-be0124a0b598") rs1.setOutput(sides.right,0) os.sleep(1) for address in component.list("redstone",true) do local rs = component.proxy(address) rs.setOutput(sides.top,15) end end function open() for address in c
-
I love the tape drive and .dfpwm system that comes with Computronics, however, how could you make it portable like an iPod? I've been contemplating this for a while, anyone else have an idea?
-
Get the path and filename of current executing program
ThiagoFonseca posted a question in Programming
In computercraft there is this command: shell.getRunningProgram() This command returns the path and filename of the program that executed it. I wonder if there's a command in OpenComputers that does the same -
I decided to write two programs. One to broadcast whatever you type and another to receive broadcasts. The one that broadcasts, works perfectly. But the receiving one doesn't. It gets the broadcasts, but doesn't display the how I want. Instead of saying a whole broadcast, it says "modem_message" and the code is shown below. component = require("component") event = require("event") print("Pulling broadcasts from port 25565") while true do os.sleep(.5) --To make sure it doesn't repeat single messages component.modem.open(25565) x = event.pull("modem") --Doing it like this
- 9 replies
-
- Program
- Recieving Broadcasts
-
(and 2 more)
Tagged with:
-
Wanted a good subject to learn more about OpenComputer programming, this definitely worked. CompressCobble Uses a minimal Robot to continually compress Cobblestone, up to Octouple Compressed Cobblestone. Uses about 83 cobblestone per second, or 7.2 million per day. (If you want more, put four Robots around a Charger, each with its own cobblegen.) Stores over 225 Octouple Compressed Cobblestone internally before quitting. May optionally be put in chest above Robot for extend run time. Cheap in power, up to 3 RF per tick. A couple of Solar Panel Upgrades may be enough. You can us