This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Dirkus7's profile picture

Remote-Controlled Turtle

Started by Dirkus7, 24 February 2012 - 04:24 PM
Dirkus7 #1
Posted 24 February 2012 - 05:24 PM
I made thist programs to remote-control the turtle:
[media]http://www.youtube.com/watch?v=TtyNAurPs7A[/media]


Program:
[attachment=35:turtle.zip] (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:

(also: sorry for bad English if i use it, i'm not english/american, just a hard working Dutchman)
Jaan #2
Posted 24 February 2012 - 05:52 PM
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
VegBerg #3
Posted 24 February 2012 - 06:18 PM
Nice work!
How did you resize the console window, btw?
Dirkus7 #4
Posted 24 February 2012 - 06:24 PM
Nice work!
How did you resize the console window, btw?
In the .minecraftconfigmod_ComputerCraft.cfg file edit the terminal_width and the terminal_height
Dirkus7 #5
Posted 24 February 2012 - 06:27 PM
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 :(/>/>
MooseWithAGun #6
Posted 24 February 2012 - 06:36 PM
How do I use it? I type the program name and it says the program doesn't exist
Dirkus7 #7
Posted 24 February 2012 - 06:40 PM
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
GigaToni #8
Posted 24 February 2012 - 06:49 PM
My Problem:

The turtle doesn't do anything
Dirkus7 #9
Posted 24 February 2012 - 06:53 PM
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
GigaToni #10
Posted 24 February 2012 - 07:02 PM
@Dirkus7

I've edited my post.. Please help me with this problem^^
MooseWithAGun #11
Posted 24 February 2012 - 07:12 PM
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
Dirkus7 #12
Posted 24 February 2012 - 07:16 PM
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.
Dirkus7 #13
Posted 24 February 2012 - 07:19 PM
@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
MooseWithAGun #14
Posted 24 February 2012 - 07:28 PM
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!
Metalhawk2012 #15
Posted 24 February 2012 - 07:30 PM
I set it up right and the programs run but…the turtle dosent work???
Dirkus7 #16
Posted 24 February 2012 - 07:48 PM
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.
Metalhawk2012 #17
Posted 24 February 2012 - 08:01 PM
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?
Dirkus7 #18
Posted 24 February 2012 - 08:03 PM
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.
Metalhawk2012 #19
Posted 24 February 2012 - 08:06 PM
Its ok it would be great if there was though.
Thanks for the code anyway
LazerRay #20
Posted 24 February 2012 - 08:14 PM
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.
Dirkus7 #21
Posted 24 February 2012 - 08:23 PM
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.
I thought of that too, I think I will add that, and you're right, it isn't needed but I thought it was easier.
GigaToni #22
Posted 24 February 2012 - 09:11 PM
@Dirkus7

I've solved the problem myself :D/>/>. And added up down and dig up down :D/>/>.. but thanks for your help :)/>/>
Dirkus7 #23
Posted 24 February 2012 - 09:21 PM
@Dirkus7 I've solved the problem myself :D/>/>. And added up down and dig up down :D/>/>.. but thanks for your help :)/>/>
Haha okay have fun playing with it, I'm still working on it and changing the controls a little.. but enjoy :D/>/>
GigaToni #24
Posted 24 February 2012 - 09:23 PM
the bad problem is with the terminal on screen you can't see ANYTHING! it's too fu*** big… a function like: term.setSize would be nice..
Dirkus7 #25
Posted 24 February 2012 - 09:35 PM
the bad problem is with the terminal on screen you can't see ANYTHING! it's too fu*** big… a function like: term.setSize would be nice..
There isn't a function inside computercraft, but you can change the GUI scale in minecraft's video settings or change the terminal_width and terminal_height in the .minecraftconfigmod_ComputerCraft.CFG file as i did making the video, try doing that :)/>/>
Dirkus7 #26
Posted 24 February 2012 - 09:37 PM
New version uploaded:

-changed controls
-added up/down movement
abcdefghijklmnop #27
Posted 24 February 2012 - 10:39 PM
New version uploaded:

-changed controls
-added up/down movement
This update breaks the program a bit; by that I mean ruins it.
Forward for up, and back for down?
The bot isn't able to be moved forward or backward now >.<
What would be cool is if you were to fix that, and place up as "home" and down as "end", or better yet; have a keypad mode. The entire thing would be controllable via the keypad.
Just a suggestion.
PS; Nice program!
Dirkus7 #28
Posted 24 February 2012 - 10:47 PM
New version uploaded: -changed controls -added up/down movement
This update breaks the program a bit; by that I mean ruins it. Forward for up, and back for down? The bot isn't able to be moved forward or backward now >.< What would be cool is if you were to fix that, and place up as "home" and down as "end", or better yet; have a keypad mode. The entire thing would be controllable via the keypad. Just a suggestion. PS; Nice program!
The new controls are in the main post, please read them there :)/>/>, it is WASD controlled, forward and backward are indeed changed into up and down and left and right are digmode and placemode.

Maybe i will use the keypad idea but I don't think all users will have that.
I will think about it and come back at it tomorrow.
MooseWithAGun #29
Posted 25 February 2012 - 06:13 AM
YOU ARE A-M-A-Z-I-N-G!!!!!!!!!!!!!!!!!!!! It works!!! So AWESOME!!!! YAYYYYYY!!!!!!! :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :D/>/> :P/>/> :lol:/>/> :lol:/>/> :lol:/>/> :lol:/>/> :lol:/>/>
rockymc #30
Posted 25 February 2012 - 11:08 AM
How did you made the GUI? Did you modded original class files?
FuzzyPurp #31
Posted 25 February 2012 - 11:42 AM
How did you made the GUI? Did you modded original class files?

Nah he did it the shitty way by changing the terminal size in mod_computercraft.cfg(which changes ALL computer terminals too look like that)
Hence the word:shitty
rockymc #32
Posted 25 February 2012 - 12:06 PM
The GUI for IDs. If you modded any original classes you will need to delete this. Dan does not allows otelher people to mod any original classes like mod_CCTurtles.
MooseWithAGun #33
Posted 25 February 2012 - 12:14 PM
Worked at first but it doesn't work for me again now :(/>/>. Oh well… Nice program anyways.
Jstorey97 #34
Posted 25 February 2012 - 05:56 PM
Spoiler
I made thist programs to remote-control the turtle:
[media]http://www.youtube.com/watch?v=TtyNAurPs7A[/media]


Program:
[attachment=35:turtle.zip] (not updated yet, please use these: )
or direct code from pastebin,
Computer:
http://pastebin.com/CUrkWiYd
Turtle:
http://pastebin.com/2Bfex1E3

Have fun :(/>/>


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: 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

Sorry I'm knew. How do install these? Like each one?
Dirkus7 #35
Posted 25 February 2012 - 08:17 PM
Spoiler
I made thist programs to remote-control the turtle:
[media]http://www.youtube.com/watch?v=TtyNAurPs7A[/media]


Program:
[attachment=35:turtle.zip] (not updated yet, please use these: )
or direct code from pastebin,
Computer:
http://pastebin.com/CUrkWiYd
Turtle:
http://pastebin.com/2Bfex1E3

Have fun :)/>/>


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: 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

Sorry I'm knew. How do install these? Like each one?
Open a computer and type 'edit startup', then press ctrl and save the empty file.
then go to .minecraftsaves[your world]computer[COMPUTER ID]startup
startup is a file, open it in, for example, notepad or any source code editors
copy the code from the pastebin link in my post and paste it in the editor
save the file and reboot the computer (in minecraft, not your computer :)/>/>)
the file will run

do the same for the turtle
you can find the computer ID by typing ID into the terminal
If you have any questions, please ask

good luck :(/>/>

Worked at first but it doesn't work for me again now :)/>/>. Oh well… Nice program anyways.
The controls have changed, maybe that's the problem?
Dirkus7 #36
Posted 25 February 2012 - 08:22 PM
The GUI for IDs. If you modded any original classes you will need to delete this. Dan does not allows otelher people to mod any original classes like mod_CCTurtles.
I can code Java as good as i can sing, so i didn't change any class files. As rockymc said, I changed the config file of the mod, not the mod itself.
LazerRay #37
Posted 28 February 2012 - 02:25 AM
If you are still having issues running the programs, instead of making them a start up type, just make them a normal program, give them easily recognized names like "Remote" for the controller program and "Receiver" for the bot program, then you can call them up like any other program and they still work as long as you know what folder(s) you put them in. <_</>/>

Also you may need to delete .txt from the files outside of Minecraft to get them to work, this trick works with any custom programs you plan to test out. :)/>/>
MooseWithAGun #38
Posted 28 February 2012 - 02:43 PM
@dirkus7
No i used the one with the new controls i used those controls. Than try to use this again a few minutes later doesnt work.
Wolvan #39
Posted 29 February 2012 - 05:33 PM
Yeah Hello. I wrote on Youtube already and here are the edited Versions:

Turtle
Computer/Terminal

New features:
* Manage an infinite amount of turtles - with 1 PC and at the same time
* Select the turtles' inventory slots with the keys 1-9 or the numpad keys 1-9
* Let them dance! Just press T
* Disconnect all Turtles and reboot them with V
* Controls at the beginning
* Drop all items with I

Hope you enjoy my version and thx for the base to Dirkus7

EDIT
New version with a small change released. Same link. If you have any problems pls tell me. I didn't have much time to test it so.
Edited on 02 March 2012 - 01:15 PM
Marco3201 #40
Posted 02 March 2012 - 06:52 PM
The program didnt work. It types forward backward e.t.c. but the turtle didnt move
Wolvan #41
Posted 02 March 2012 - 08:14 PM
The program didnt work. It types forward backward e.t.c. but the turtle didnt move
Which version? Mine?
Vannya #42
Posted 08 March 2012 - 07:07 PM
Its the best program I have ever seen :mellow:/>/>
Wolvan #43
Posted 08 March 2012 - 08:07 PM
Its the best program I have ever seen :mellow:/>/>
Which version? Mine? ;)/>/>
Vannya #44
Posted 08 March 2012 - 10:05 PM
Yeah!! But also the Dirkus7´s version, cause he/she started the thing. But the whole program is awesome!! <3
Wolvan #45
Posted 09 March 2012 - 02:30 PM
Yeah!! But also the Dirkus7´s version, cause he/she started the thing. But the whole program is awesome!! <3
Yeah sure mine is based on his version. I think I could have programmed it by myself but a base is always pretty nice to have :mellow:/>/> Especially if you don't understand rednet much at the beginning
Dirkus7 #46
Posted 09 March 2012 - 03:45 PM
Everyone could have made this, it'st just i'm the first :mellow:/>/>
Wolvan #47
Posted 09 March 2012 - 10:14 PM
Everyone could have made this, it'st just i'm the first :mellow:/>/>
Yeah and I REALLY thank you for that GREAT base mod ;)/>/>
Dirkus7 #48
Posted 12 March 2012 - 03:45 PM
Everyone could have made this, it'st just i'm the first :mellow:/>/>
Yeah and I REALLY thank you for that GREAT base mod ;)/>/>
No problem bro, good work!
Teraminer #49
Posted 16 April 2012 - 07:47 PM
Epic and I saw all the –coments you did and understanded the program completely!!!Nice job Dirkus7!


if turtle.detect("Dirkus7")
then
turtle.up()
turtle.down()
term.clear()
print ("OMG!")
turtle.select(1)
turtle.drop(64)
end
afrobob97 #50
Posted 08 June 2012 - 11:38 PM
I copied the programs exactly over to the computer and the turtle. the turtle works fine, but the computer keeps saying
"bios:206: [string "remote"]:6: '=' expected even though i have the '=' in the code
STONEJORD #51
Posted 13 July 2012 - 07:49 AM
Im new to ComputerCraft and I put the code in startup and ive noticed that one of my keys isnt responding and cant use the edit startup command anymore to go back and fix this, does anyone know how i could without having to rewrite the whole thing again, maybe a way to leave the program since im using this on a tekkit server i cant find the startup files like i can in singleplayer (im still a noob)
hitlit127 #52
Posted 02 August 2012 - 07:30 AM
is there a way to place above and below the turtle?
vikingx9 #53
Posted 31 August 2012 - 10:01 AM
Nice work!
How did you resize the console window, btw?
In the .minecraftconfigmod_ComputerCraft.cfg file edit the terminal_width and the terminal_height
I'm playing technic in technicpack. Where do I find the folder now?
Dirkus7 #54
Posted 01 September 2012 - 06:20 PM
Nice work!
How did you resize the console window, btw?
In the .minecraftconfigmod_ComputerCraft.cfg file edit the terminal_width and the terminal_height
I'm playing technic in technicpack. Where do I find the folder now?
AppData/roaming/.techniclauncher/technicssp/config
htwray #55
Posted 31 March 2013 - 04:46 AM
Awesome, is there anyway to have a goto command instead of having to control the turtle?
[email protected] #56
Posted 17 April 2013 - 08:55 AM
I have coded two disk. One for the computer and one for the turtle. Computer program works. Turtle program is not working. Am I suppose to put turtle code into the startup file on one disk? Also I'm using 1.5.1 is this good code for this version of ComputerCraft?
TBotv63 #57
Posted 08 July 2013 - 12:51 PM
Is there a git repo? If not you should make one. BTW: Awesome!
Jeremy301 #58
Posted 18 August 2013 - 08:51 AM
can you make please a GUI version ?
Lyqyd #59
Posted 18 August 2013 - 04:14 PM
The last update by the OP was nearly a year ago. Topic closed.