- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
41 -
Joined
-
Last visited
-
Days Won
14
Posts posted by Log
-
-
Connect it through the adapter and type in terminal this command components reactor -l, so you will get a list of methods.
for example, to obtain the temperature value, you can do this: print(component.reactor.getHeat()/component.reactor.getMaxHeat())
-
This is necessary to get one item from the list, and not the entire list, as the proxy function takes only the address.
-
Yeah, use texture picker item to get the texture name.
-
If I remember correctly, it only works on OpenOS 1.5
-
Only this way:
robot = component.proxy(component.list("robot")()) rs = component.proxy(component.list("redstone")()) function getBatteryPercent() return computer.energy() * 100 / computer.maxEnergy() end function wait(seconds) local begin = os.time() repeat computer.pullSignal(0.05) until os.time() - begin >= seconds end while true do robot.turn(true) robot.turn(true) robot.move(1) while not robot.compare(3) do robot.move(3) robot.turn(false) robot.swing(3) robot.turn(true) robot.turn(true) robot.swing(3) robot.turn(false) end robot.turn(true) robot.move(0) robot.turn(true) while true do if rs.getInput(1) > 0 then if getBatteryPercent() < 20 then rs.setOutput(0, 15) else rs.setOutput(0, 0) end wait(60) else robot.move(3) end end end
-
You just have to put microcontroller and turn it on. (and necessary energy source (if necessary), although energy can be obtained by debug card)
-
You forgot to specify the direction in a functions swing() and compare()
Ðnd the robot can not move to the sides 4 and 5, for this it is necessary to turn to left/right.
-
Simple:
local debug = require("component").debug local cmd while true do io.write('Enter command: ') cmd = io.read() print(debug.runCommand(cmd)..'\n') end
Very simple:
/# lua
=component.debug.runCommand("say hello!")
-
Requirements: microcontroller with debug card and wi-fi card.
Need install this firmware: pastebin get PX0k2kb8 cube
The control is via a wireless card with standard notation UDFBLR, to invert the command, it is necessary to add an apostrophe.
Ðdditional commands:
С - reset to the initial state
S - random shuffle
-
Many answers are in [man <program_name>]
1. rm <filename>
2. cd .. or cd /
3. which path to the program when creating?
-
Why the pixels are not square?
local component = require('component') local event = require('event') local gpu = component.gpu local color = 0xFF0000 local tSize = {gpu.getResolution()} local function clear() gpu.setBackground(0x000000) gpu.setForeground(0x000000) gpu.fill(1, 1, tSize[1], tSize[2], ' ') end clear() while 1 do local e = {event.pull()} if e[1] == 'touch' or e[1] == 'drag' or e[1] == 'drop' then local pixel = {gpu.get(e[3], e[4])} if e[5] == 0 then gpu.setForeground(color) gpu.setBackground(pixel[3]) gpu.set(e[3], e[4], 'â–„') elseif e[5] == 1 then gpu.setForeground(pixel[2]) gpu.setBackground(color) gpu.set(e[3], e[4], 'â–„') end end end
Just an idea
-
Added texturepack for Computronics
-
Done!I feel I should let you know that the OpenSecurity textures are now very out of date, lots of animation, and rework, sorry about that.
-
I feel I should let you know that the OpenSecurity textures are now very out of date, lots of animation, and rework, sorry about that.
Thanks for the news!
Will soon be updated.
-
Textures is not quite ready, need small changes.
Enjoy it!
All in one: 0xD00B last update: 26.01.17
Screenshots:
Trading Upgrade Difficulties
in Programming
Posted
It's weird, try this script: pastebin get BZKLsgnD /bin/trader.lua