←  Programs

ComputerCraft | Programmable Computers for Minecraft

»

Remote-Controlled Turtle

Locked

Dirkus7's Photo Dirkus7 24 Feb 2012

I made thist programs to remote-control the turtle:



Program:
Attached File  turtle.zip (1.15K)
downloads: 866 (not updated yet, please use these: )
or direct code from pastebin,
Computer:
http://pastebin.com/CUrkWiYd
Turtle:
http://pastebin.com/2Bfex1E3

Wolvan's version (my program, edited by Wolvan, there are more options in it) :
Turtle
Computer/Terminal

Have fun :huh:/>


Usage: Both the computer and the turtle will ask for the ID, you can find them by typing id when no program is loaded.

The modem is configured to be on the right of the computer, right on it. You need a turtle with modem and pickaxe!

Controls for Dirkus7's version: W, A, S, D: move
space: dig/place
Left: select digmode
Right: select placemode
Left Ctrl: enable redstone output
Up/down move/dig in vertical directions

Controls for Wolvan's version are on the computer screen.


If you have issues, please check the following things:
-The computer must have a modem on the right side,
-Turtle needs a modem to control and a pickaxe to dig.
-You must have entered the right ID, the computer's in the turtle and the turtle's in the computer. You can find it by typing ID when no program is running.
-Rednet must be on, but the programs turns it on so you don't have to BUT please make sure the modem's sides are red, if not, please run the program, or in lua prompt, type in "rednet.open('right')"
-Use the right controls, or it won't work B)/>
-Computer must look like this: Posted Image

(also: sorry for bad English if i use it, i'm not english/american, just a hard working Dutchman)
Quote

Jaan's Photo Jaan 24 Feb 2012

Sry i just got the mod :P/>

and sry for bad english

anyways, if you can make there a little camera for checking that vhere you are
Quote

VegBerg's Photo VegBerg 24 Feb 2012

Nice work!
How did you resize the console window, btw?
Quote

Dirkus7's Photo Dirkus7 24 Feb 2012

View PostVegBerg, on 24 February 2012 - 06:18 PM, said:

Nice work!
How did you resize the console window, btw?
In the .minecraftconfigmod_ComputerCraft.cfg file edit the terminal_width and the terminal_height
Quote

Dirkus7's Photo Dirkus7 24 Feb 2012

View PostJaanGamingChannel, on 24 February 2012 - 05:52 PM, said:

Sry i just got the mod :P/>

and sry for bad english

anyways, if you can make there a little camera for checking that vhere you are
Sorry, there are no cameras so I can't make that possible :(/>
Quote

MooseWithAGun's Photo MooseWithAGun 24 Feb 2012

How do I use it? I type the program name and it says the program doesn't exist
Quote

Dirkus7's Photo Dirkus7 24 Feb 2012

View PostMooseWithAGun, on 24 February 2012 - 06:36 PM, said:

How do I use it? I type the program name and it says the program doesn't exist
You put the programs in the right computer and rename it to 'startup', I'm sorry, I should've told that
Quote

GigaToni's Photo GigaToni 24 Feb 2012

My Problem:

The turtle doesn't do anything
Quote

Dirkus7's Photo Dirkus7 24 Feb 2012

View PostGigaToni, on 24 February 2012 - 06:49 PM, said:

My Problem:

Black window on the computer..
Yeah i know cause it doesn't write anything, press a button and you'll see the text
Quote

GigaToni's Photo GigaToni 24 Feb 2012

@Dirkus7

I've edited my post.. Please help me with this problem^^
Quote

MooseWithAGun's Photo MooseWithAGun 24 Feb 2012

View PostDirkus7, on 24 February 2012 - 06:40 PM, said:

View PostMooseWithAGun, on 24 February 2012 - 06:36 PM, said:

How do I use it? I type the program name and it says the program doesn't exist
You put the programs in the right computer and rename it to 'startup', I'm sorry, I should've told that
Thanks it works now but the turtle doesnt move. I setted the id to 10 the modem works on the turtle but not on the computer
Quote

Dirkus7's Photo Dirkus7 24 Feb 2012

View PostMooseWithAGun, on 24 February 2012 - 07:12 PM, said:

View PostDirkus7, on 24 February 2012 - 06:40 PM, said:

View PostMooseWithAGun, on 24 February 2012 - 06:36 PM, said:

How do I use it? I type the program name and it says the program doesn't exist
You put the programs in the right computer and rename it to 'startup', I'm sorry, I should've told that
Thanks it works now but the turtle doesnt move. I setted the id to 10 the modem works on the turtle but not on the computer
The program is configured that the modem must be on the right of the computer block, that should work. and it must have the right id inside the computer program, i will make the computer to ask for it.
Quote

Dirkus7's Photo Dirkus7 24 Feb 2012

View PostGigaToni, on 24 February 2012 - 07:02 PM, said:

@Dirkus7 I've edited my post.. Please help me with this problem^^
Hmm a few questions; Is the modem on the right of the computer? Did you change the computer id in the computer's programs? And does the turtle have a modem and pick? Try that :P/> Edit: try the new version
Quote

MooseWithAGun's Photo MooseWithAGun 24 Feb 2012

View PostDirkus7, on 24 February 2012 - 07:16 PM, said:

View PostMooseWithAGun, on 24 February 2012 - 07:12 PM, said:

View PostDirkus7, on 24 February 2012 - 06:40 PM, said:

View PostMooseWithAGun, on 24 February 2012 - 06:36 PM, said:

How do I use it? I type the program name and it says the program doesn't exist
You put the programs in the right computer and rename it to 'startup', I'm sorry, I should've told that
Thanks it works now but the turtle doesnt move. I setted the id to 10 the modem works on the turtle but not on the computer
The program is configured that the modem must be on the right of the computer block, that should work. and it must have the right id inside the computer program, i will make the computer to ask for it.
Ok ill try the program with the new code tommorow. As I saw in the video this program is indeed amazing!
Quote

Metalhawk2012's Photo Metalhawk2012 24 Feb 2012

I set it up right and the programs run but...the turtle dosent work???
Quote

Dirkus7's Photo Dirkus7 24 Feb 2012

View PostMetalhawk2012, on 24 February 2012 - 07:30 PM, said:

I set it up right and the programs run but...the turtle dosent work???
Please try the new version (pastebin link), because i think this solves the problem, if not, please tell me.
Quote

Metalhawk2012's Photo Metalhawk2012 24 Feb 2012

YES it is now working thank you very much
btw is there a program that allows me to send redstone signals to modems that arnt connected to a computer?
Quote

Dirkus7's Photo Dirkus7 24 Feb 2012

View PostMetalhawk2012, on 24 February 2012 - 08:01 PM, said:

YES it is now working thank you very much btw is there a program that allows me to send redstone signals to modems that arnt connected to a computer?
Modems are a part of the rednet API and they can only transfer rednet messages to other computers, not redstone or redpowder signals, sorry.
Quote

Metalhawk2012's Photo Metalhawk2012 24 Feb 2012

Its ok it would be great if there was though.
Thanks for the code anyway
Quote

LazerRay's Photo LazerRay 24 Feb 2012

You should add up/down controls to the system so you have full functionality to the bot, other wise this is a very intuitive system, you don't even need to make the programs a start up as long as you named them right.
Quote
Locked