apemanzilla, on 13 December 2015 - 03:48 AM, said:
The turtle can't reach the my computer. I hosted it correctly, portforward it and I checked if the server is running and it is running.
There have been 37 items by oxygencraft (Search limited from 10-February 22)
Posted by
oxygencraft
on 15 December 2015 - 10:04 AM
in
Turtle Programs
Posted by
oxygencraft
on 13 December 2015 - 03:01 AM
in
Turtle Programs
Posted by
oxygencraft
on 10 December 2015 - 05:02 AM
in
Ask a Pro
Posted by
oxygencraft
on 06 December 2015 - 12:20 AM
in
Operating Systems
DannySMc, on 05 December 2015 - 01:56 PM, said:
oxygencraft, on 05 December 2015 - 10:18 AM, said:
Posted by
oxygencraft
on 05 December 2015 - 08:40 PM
in
Programs
Posted by
oxygencraft
on 05 December 2015 - 10:18 AM
in
Operating Systems
Posted by
oxygencraft
on 05 December 2015 - 09:03 AM
in
Programs
Posted by
oxygencraft
on 04 December 2015 - 08:31 PM
in
Ask a Pro
Posted by
oxygencraft
on 03 December 2015 - 04:47 AM
in
APIs and Utilities
Posted by
oxygencraft
on 03 December 2015 - 04:39 AM
in
Ask a Pro
CloudNinja, on 02 December 2015 - 11:37 AM, said:
local event, button, x, y = os.pullEvent("mouse_click") -- pull clicks
if x >= 5 and x <= 6 and y >= 2 and y <=3 then --This checks if x is within a box of x5 to x6, and if y is no higher than 3, but no lower than 2.
print("You Clicked The Button!")
end
That's some example code.
Posted by
oxygencraft
on 02 December 2015 - 07:05 AM
in
Ask a Pro
KingofGamesYami, on 01 December 2015 - 02:49 PM, said:
term.setBackgroundColor( colors.orange )
term.setCursorPos( 1, 1 )
term.write( string.rep( " ", 8 ) )
term.setCursorPos( 1, 2 )
term.write( string.rep( " ", 8 ) )
term.setCursorPos( 1, 3 )
term.write( string.rep( " ", 8 ) )
term.setTextColor( colors.blue )
term.setCursorPos( 3, 2 )
term.write( "Button" )
while true do
local event = {os.pullEvent()}
if event[ 1 ] == "mouse_click" and event[ 3 ] >= 1 and event[ 3 ] <= 8 and event[ 4 ] >= 1 and event[ 4 ] <= 3 then
break
print( "Button was clicked!" )
end
end
Posted by
oxygencraft
on 01 December 2015 - 09:04 AM
in
Ask a Pro
valithor, on 30 November 2015 - 10:56 PM, said:
paintutils.drawBox(1,1,10,5,colors.blue) --# draws a blue box from the coordinates x = 1 to x = 10, and y = 1 to y = 5
while true do --# repeating forever
local event, button, x, y = os.pullEvent("mouse_click") --# telling the computer to listen for mouse click events, button will equal which mouse button is pressed, x is the x coord, and y is the y coord
if x>=1 and x<=10 and y>=1 and y<=5 then
--# our button was pressed, so do stuff
paintutils.drawBox(1,1,10,5,2^math.random(0,15)) --# this is just for you to be able to visually see the button do something when pressed, this will randomly change the color of the button when it is pressed
end
end
Lupus590, on 01 December 2015 - 08:19 AM, said:
Posted by
oxygencraft
on 01 December 2015 - 05:46 AM
in
Ask a Pro
valithor, on 30 November 2015 - 10:56 PM, said:
paintutils.drawBox(1,1,10,5,colors.blue) --# draws a blue box from the coordinates x = 1 to x = 10, and y = 1 to y = 5
Posted by
oxygencraft
on 30 November 2015 - 09:41 PM
in
Ask a Pro
Lupus590, on 30 November 2015 - 10:52 AM, said:
Posted by
oxygencraft
on 30 November 2015 - 08:07 AM
in
Ask a Pro
Posted by
oxygencraft
on 29 November 2015 - 09:57 AM
in
Servers
Posted by
oxygencraft
on 26 November 2015 - 08:40 AM
in
Operating Systems
Posted by
oxygencraft
on 26 November 2015 - 05:07 AM
in
Ask a Pro
Bomb Bloke, on 25 November 2015 - 09:21 AM, said:
rednet.open("bottom")
while true do
if redstone.getInput("left") then
rednet.send(16, "OPEN")
else
rednet.send(16, "CLOSE") -- I guess?
end
os.pullEvent("redstone") -- Yield until a redstone state change occurs.
endredstoneinput = redstone.getInput("left")
rednet.open("bottom")
while true do
if redstoneinput == true then
rednet.send(16, "OPEN")
end
os.pullEvent("redstone")
end
-- Simple Door Lock
-- Created by DannySMc
-- Version 1.2
-- Platform: Lua Virtual Machine
-- Security Method
oldEvent = os.pullEvent
os.pullEvent = os.pullEventRaw
-- Check for API
os.loadAPI("uapi")
rednet.open("bottom")
-- Installer for Configuration File
if fs.exists(".uLockConf") == false then
uapi.cs()
print("Running Installer...")
sleep(0.5)
term.setCursorPos(1,3)
term.write("Redstone output side: ")
strSide = read()
term.setCursorPos(1,5)
term.write("Redstone pulse time: ")
strPulse = tonumber(read())
term.setCursorPos(1,7)
term.write("Terminal Label: ")
strName = read()
term.setCursorPos(1,9)
term.write("Password for unlock: ")
strPassword = read("*")
term.setCursorPos(1,11)
print("What is the name this program is saved as?")
term.setCursorPos(1,12)
term.write("Program Name: ")
strProgName = read()
strPassword = uapi.checksum(strPassword, 1000)
-- Create Configuration File
uapi.saveConfig({['progName']=strProgName, ['terminalName']=strName, ['redSide']=strSide, ['redPulse']=strPulse, ['lockPassword']=strPassword}, ".uLockConf")
-- Startup File
term.setCursorPos(1,14)
print("Do you wish to create a startup file?")
term.setCursorPos(1,15)
repeat
term.write("YES/NO: ")
startupAnswer = read()
until ((startupAnswer == "YES") or (startupAnswer == "NO"))
if startupAnswer == "YES" then
startFile = fs.open("startup", "w")
startFile.writeLine('os.loadAPI("uapi")')
startFile.writeLine('config = uapi.loadConfig(".uLockConf")')
startFile.writeLine("shell.run(config.progName)")
startFile.close()
print("Install Complete!")
sleep(0.5)
else
print("Install Complete!")
sleep(0.5)
end
print("Rebooting the terminal...")
sleep(1)
os.reboot()
end
-- Load Configuration File
config = uapi.loadConfig(".uLockConf")
-- Password Lock Program
uapi.cs()
uapi.drawBox(1, 51, 1, 5, " ", "white", "cyan")
uapi.drawBox(2, 51, 2, 3, " ", "white", "cyan")
uapi.drawBox(3, 51, 3, 1, " ", "white", "cyan")
uapi.printC(config.terminalName, 3, false, "white", "cyan")
uapi.drawBox(1, 51, 19, 1, " ", "white", "cyan")
uapi.printC("Password Lock (Ver 1.2) -> Created By DannySMc", 19, false, "white", "cyan")
uapi.resetCol()
term.setCursorPos(1, 10)
term.write("> Password: ")
password = read("*")
password = uapi.checksum(password, 1000)
if password == config.lockPassword then
term.setCursorPos(1,11)
print("> Password Correct!")
rednet.send(16, "OPEN")
sleep(0.5)
os.reboot()
else
term.setCursorPos(1,11)
print("> Password Incorrect!")
sleep(1.5)
os.reboot()
end
rednet.open("front")
local function open()
rs.setOutput("top", true)
sleep(0.75)
rs.setOutput("right", true)
sleep(0.75)
rs.setOutput("bottom", true)
sleep(0.75)
rs.setOutput("left", true)
sleep(0.75)
rs.setOutput("left", false)
end
local function close()
rs.setOutput("bottom", false)
sleep(0.75)
rs.setOutput("right", false)
sleep(0.75)
rs.setOutput("top", false)
end
while true do
local args = { os.pullEvent("rednet_message") }
if args[3] == "OPEN" then
print(args[2]..": "..args[3])
open()
sleep(8)
close()
end
end
Posted by
oxygencraft
on 25 November 2015 - 08:38 AM
in
Ask a Pro
redstoneinput = redstone.getInput("left")
rednet.open("bottom")
while true do
if redstoneinput == true then
rednet.send(16, "OPEN")
end
end
Posted by
oxygencraft
on 22 November 2015 - 04:55 AM
in
Programs
DannySMc, on 20 November 2015 - 06:42 PM, said:
oxygencraft, on 20 November 2015 - 11:06 AM, said:
DannySMc, on 20 November 2015 - 07:37 AM, said:
oxygencraft, on 20 November 2015 - 04:41 AM, said:
DannySMc, on 19 November 2015 - 01:38 PM, said:
oxygencraft, on 19 November 2015 - 10:55 AM, said:
DannySMc, on 19 November 2015 - 09:07 AM, said:
oxygencraft, on 19 November 2015 - 05:34 AM, said:
Posted by
oxygencraft
on 20 November 2015 - 11:06 AM
in
Programs
DannySMc, on 20 November 2015 - 07:37 AM, said:
oxygencraft, on 20 November 2015 - 04:41 AM, said:
DannySMc, on 19 November 2015 - 01:38 PM, said:
oxygencraft, on 19 November 2015 - 10:55 AM, said:
DannySMc, on 19 November 2015 - 09:07 AM, said:
oxygencraft, on 19 November 2015 - 05:34 AM, said:
Posted by
oxygencraft
on 20 November 2015 - 04:49 AM
in
Tutorials
DannySMc, on 19 November 2015 - 09:55 PM, said:
oxygencraft, on 19 November 2015 - 09:45 PM, said:
DannySMc, on 19 November 2015 - 01:37 PM, said:
Posted by
oxygencraft
on 20 November 2015 - 04:41 AM
in
Programs
DannySMc, on 19 November 2015 - 01:38 PM, said:
oxygencraft, on 19 November 2015 - 10:55 AM, said:
DannySMc, on 19 November 2015 - 09:07 AM, said:
oxygencraft, on 19 November 2015 - 05:34 AM, said:
Posted by
oxygencraft
on 19 November 2015 - 09:45 PM
in
Tutorials
DannySMc, on 19 November 2015 - 01:37 PM, said:
Posted by
oxygencraft
on 19 November 2015 - 10:55 AM
in
Programs
DannySMc, on 19 November 2015 - 09:07 AM, said:
oxygencraft, on 19 November 2015 - 05:34 AM, said:
