4 posts
Posted 07 August 2012 - 08:18 PM
So I was bored and saw this video on the internet
http://www.youtube.c...?v=vow9tQmaE0k. I thought this was really neat! However, everyone said that it was broken so I decided to write something similar. So here, enjoy this mass of spaghetti code and kludges! (If anyone could clean this up I'd be very grateful)
Turtle program:
http://pastebin.com/fnrLva99Computer program:
http://pastebin.com/eeYxair3Setting it up is really easy. Put a Modem on the _back_ of the computer. Then create the Turtle program inside a turtle, and run it. Then create the Computer program inside a computer, and run it. It doesn't matter if you run the Turtle program first or the Computer program. WASD to move, F to mine. O means generic block, blank is free space, C is coal, I is iron, G is gold, and D is diamond. It can't move up or down right now, but I will (eventually) update it to do that. Enjoy!
10 posts
Posted 08 August 2012 - 04:21 PM
(If anyone could clean this up I'd be very grateful)
No one likes to do it, but I'm in good mood today, so I can share some experience with you.
First of all, use at least 2 chars for indentation, it is more convenient and easier to read.
Secondly, use indentation always. There are two `end`-s one right below another, it is hard to understand which what closes.
Third, make empty lines between function definitions.
Style matters, man ;)/>/> As for code, it is pretty norm. Maybe I will use some ideas for my digging API (when it becomes wireless).
4 posts
Posted 08 August 2012 - 07:24 PM
(If anyone could clean this up I'd be very grateful)
No one likes to do it, but I'm in good mood today, so I can share some experience with you.
Okay then I'll do it myself when I stop being so lazy. Probably will take a while though…
1 posts
Posted 09 August 2012 - 03:55 PM
Hi, i really like what you have done!
But i ran into a problem, i added the code to the computer and tried to run it
but i only got this:
bios:206: [string "remoteprogram"]:85: ´do´
expected.
i tried adding "do" after the line but it didn't run, im not sure if this is since i haven't added the code to my turtle yet :/
PS: What is the -MARKER@@@@@@@@@@@@@@ for?
EDIT: I have now added the Code for the turtle, and it encountered another problem,
it expects a "=" at string 17, but it allready is a "=" in that string, please help.
EDIT: I figured out the problem, it was a simple spelling misstake, now instead, on line 69
it expects "then" help! please!
4 posts
Posted 16 August 2012 - 07:25 AM
Hi, and sorry for the late reply.
The "MARKER@@@…" is just a note for me when I was writing the program. I am not entirely sure what is wrong, the programs work fine on my minecraft. Which one is having the problem? The program you put on the turtle or the one on the computer? Have you changed the code in any way?
126 posts
Posted 16 August 2012 - 11:04 AM
Can you add up and down? I really enjoy this but with no up or down it's not as good.
1 posts
Posted 16 August 2012 - 05:34 PM
i'm having a problem with the program the program. i copyed it correctly but everytime i run it i get the error ;10: slot number 13 out of range which idk what that means any idea
126 posts
Posted 16 August 2012 - 09:54 PM
i'm having a problem with the program the program. i copyed it correctly but everytime i run it i get the error ;10: slot number 13 out of range which idk what that means any idea
Try [pastebin get fnrLva99 remote] for the turtle and [pastebin get eeYxair3 remote] for the computer. Remember to enable HTTP API in the mod_ComputerCraft.cfg (Change the enableAPI_http=0 to enableAPI_http=1). PS be sure that the modem is on the back of the computer and the turtle is Wireless Mining Turtle.
7 posts
Posted 29 August 2012 - 11:15 PM
I have the same problem as Evileggs, even after downloading the programs through HTTP. The turltle only moves once, then puts up that error.
4 posts
Posted 01 September 2012 - 08:35 PM
Oh I'm terribly sorry for being this late. A family issue came up, and on top of that school started, so I've been quite busy.
I've found the problem, and that's that when I created this program, the Turtles had a 4x4 inventory instead of a 3x3. Therefore, it could not see the slots 10-16 and crashed. I've fixed this problem now. Also, in order for detection to work, the turtle needs something to compare it with. So, put a coal ore in the middle right slot, a iron ore in the bottom left slot, a gold ore in the bottom middle slot, and a diamond ore in the bottom right slot. Again, I'm sorry for ignoring you guys! D: