Ninetainedo, on 05 April 2013 - 12:59 PM, said:
- ComputerCraft | Programmable Computers for Minecraft
- → Conlan99's Content
Conlan99's Content
There have been 14 items by Conlan99 (Search limited from 29-March 23)
#106474 Getting "error ":1: "do" expected", even though "do" already exists
Posted by Conlan99 on 05 April 2013 - 12:56 PM in Ask a Pro
Essentially what this program is supposed to do is, whenever it receives a redstone signal from the front, it starts the frame motors with redstone signals.
while redstone.getInput("front") = true do redstone.setOutput("back", true) sleep(0.4) redstone.setOutput("back", false) sleep(1.44) redstone.setOutput("left", true) redstone.setOutput("right", true) sleep(1.44) redstone.setOutput("left", false) redstone.setOutput("right", false) end
#71837 [ERROR] Having a rough start with my first Computercraft program.
Posted by Conlan99 on 10 January 2013 - 09:26 AM in Ask a Pro
#71832 [ERROR] Having a rough start with my first Computercraft program.
Posted by Conlan99 on 10 January 2013 - 09:22 AM in Ask a Pro
remiX, on 10 January 2013 - 09:18 AM, said:
Conlan99, on 10 January 2013 - 08:47 AM, said:
Copying the code directly from another user and pasting it causes it to keep the html editing:
[color=#000000][size=2]input [/size][/color][color=#666600][size=2]=[/size][/color][color=#000000][size=2] read[/size][/color][color=#666600][size=2]()[/size][/color] [color=#000088]if[/color][color=#000000] input [/color][color=#666600]==[/color][color=#000000] [/color][color=#008800]"stop"[/color][color=#000000] [/color][color=#000088]or[/color][color=#000000] input [/color][color=#666600]==[/color][color=#000000] [/color][color=#008800]"Stop"[/color][color=#000000] [/color][color=#000088]or[/color][color=#000000] input [/color][color=#666600]==[/color][color=#000000] [/color][color=#008800]"exit"[/color][color=#000000] [/color][color=#000088]or[/color][color=#000000] input [/color][color=#666600]==[/color][color=#000000] [/color][color=#008800]"Exit"[/color][color=#000000] [/color][color=#000088]or[/color][color=#000000] input [/color][color=#666600]==[/color][color=#000000] [/color][color=#008800]"quit"[/color][color=#000000] [/color][color=#000088]or[/color][color=#000000] input [/color][color=#666600]==[/color][color=#000000] [/color][color=#008800]"Quit"[/color][color=#000000] [/color][color=#000088]then[/color]
#71813 [ERROR] Having a rough start with my first Computercraft program.
#71802 [ERROR] Having a rough start with my first Computercraft program.
Posted by Conlan99 on 10 January 2013 - 08:47 AM in Ask a Pro
term.clear() term.setCursorPos(1,1) textutils.slowPrint("Hello, and welcome to Conlan99's automatic miner's\nmining program.") sleep(1) print("\nThe automatic miner is starting.\nTo stop the automatic miner, please enter Stop.") repeat local input = read() redstone.setOutput("right",true) sleep(0.25) redstone.setOutput("right",false) sleep(1) redstone.setOutput("back",true) sleep(0.25) redstone.setOutput("back",false) sleep(0.25) if input ~= "stop" or input ~= "Stop" or input ~= "exit" or input ~= "Exit" or input ~= "quit" or input ~= "Quit" then print("Unrecognisable command. Please try again.") until input == "stop" or input == "Stop" or input == "exit" or input == "Exit" or input == "quit" or input == "Quit" then textutils.slowPrint("Goodbye.") sleep(0.25) os.shutdown() end
#71801 [ERROR] Having a rough start with my first Computercraft program.
Posted by Conlan99 on 10 January 2013 - 08:42 AM in Ask a Pro
remiX, on 10 January 2013 - 08:14 AM, said:
input = string.lower(read()) if input == "exit" or input == "quit" or input == "stop" then
edit: Shouldn't have copied
If you are referring to the code, I would love to know how you managed to get yours into a little white box like that.
#71790 [ERROR] Having a rough start with my first Computercraft program.
Posted by Conlan99 on 10 January 2013 - 08:12 AM in Ask a Pro
ViextraProgramming, on 10 January 2013 - 06:26 AM, said:
term.clear() term.setCursorPos(1,1) textutils.slowPrint("Hello, and welcome to Conlan99's automatic miner's\nmining program.") sleep(1) print("\nThe automatic miner is starting.\nTo stop the automatic miner, please enter Stop.") input = read() if input == "stop" or input == "Stop" or input == "exit" or input == "Exit" or input == "quit" or input == "Quit" then textutils.slowPrint("Goodbye.") sleep(0.25) os.reboot() else print("Unrecognizable command.") end
#71712 [ERROR] Having a rough start with my first Computercraft program.
Posted by Conlan99 on 10 January 2013 - 06:10 AM in Ask a Pro
ViextraProgramming, on 10 January 2013 - 05:57 AM, said:
#71694 [ERROR] Having a rough start with my first Computercraft program.
Posted by Conlan99 on 10 January 2013 - 05:48 AM in Ask a Pro
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Hello, and welcome to Conlan99's automatic miner's\nmining program.")
sleep(1)
print("\nThe automatic miner is starting.\nTo stop the automatic miner, please enter Stop.")
local input = read
if (input == stop) or (input == Stop) or (input == exit) or (input == Exit) or (input == quit) or (input == Quit) then
textutils.slowprint("Goodbye.")
sleep(0.25)
os.reboot
else
print("This input is not recognised in this program. Please try again.")
^The program ends here
NOTE: My most recent error said "bios:338: [string "Conlan99Miner"] :15: '=' expected. I have no idea what this means
Please note this is my first post on this forum, let alone any forum, so please, if I messed anything up on the post, please tell me.
- ComputerCraft | Programmable Computers for Minecraft
- → Conlan99's Content