[Turtle][CraftOS]Liraal's Stuff: Keycard Lock; magicTurtle API v. 1.252
#21
Posted 29 February 2012 - 08:02 PM
#22
Posted 29 February 2012 - 08:05 PM
thx /> my first bug in release version />
Fixed in 1.251
Added beta functions:
mineGrid()
camoMine()
These haven't been properly tested and may be bugged.
#23
Posted 29 February 2012 - 11:00 PM
#24
Posted 29 February 2012 - 11:32 PM
#25
Posted 01 March 2012 - 12:35 AM
pcmaster160, on 29 February 2012 - 11:00 PM, said:
magicTurtle.mine("diamond")
#26
Posted 01 March 2012 - 02:14 AM
MysticT, on 01 March 2012 - 12:35 AM, said:
pcmaster160, on 29 February 2012 - 11:00 PM, said:
magicTurtle.mine("diamond")
same error comes up on line 156 for the tunnel program with arguments 10,10,10
#27
Posted 01 March 2012 - 04:02 AM
pcmaster160, on 01 March 2012 - 02:14 AM, said:
MysticT, on 01 March 2012 - 12:35 AM, said:
pcmaster160, on 29 February 2012 - 11:00 PM, said:
magicTurtle.mine("diamond")
same error comes up on line 156 for the tunnel program with arguments 10,10,10
You probably forgot to call setPos() first. so the it's trying to do math on non-existent coords
#28
Posted 01 March 2012 - 04:21 AM
silverwolfx, on 01 March 2012 - 04:02 AM, said:
pcmaster160, on 01 March 2012 - 02:14 AM, said:
MysticT, on 01 March 2012 - 12:35 AM, said:
pcmaster160, on 29 February 2012 - 11:00 PM, said:
magicTurtle.mine("diamond")
same error comes up on line 156 for the tunnel program with arguments 10,10,10
You probably forgot to call setPos() first. so the it's trying to do math on non-existent coords
Still having an issue.
now its on line 374 attempt to call nil... can someone simply write like 2 lines on how to use this api for the diamond mine
heres what i'm doing:
magicTurtle.setPos(516,13,525) magicTurtle.mine("diamond")
#29
Posted 01 March 2012 - 06:09 AM
BTW, remember that you can save position to file as well.
#30
Posted 01 March 2012 - 09:14 AM
#31
Posted 01 March 2012 - 09:56 AM
#32
Posted 01 March 2012 - 12:51 PM
francogp, on 01 March 2012 - 09:14 AM, said:
-- on the turtle magicTurtle.setPos(0,0,0) magicTurtle.setUpdateID(11) magicTurtle.autoUpdate() -- on the controller redet.open("back") magicTurtle.sendCommand(27, "print("Hello")")
Im thinking about making a youtube video, but not for the time being.
A preview of what Im working on ATM:
-Cobble Generator
-Mining specific blocks
-Reed Farm
-Following player
-Pathfinding
-Blowing up obstacles />
#33
Posted 01 March 2012 - 09:41 PM
It's first release so it's suspected to be full of bugs. Be sure to post them here!
#34
Posted 01 March 2012 - 09:49 PM
magicTurtle.setPos(516,13,525)
magicTurtle.mine("diamond")
But if i use magicTurtle.mine("diamond",1) works. what does the 1 do? and how exactly does the diamond mine function work? At the moment my turtle just runs in random directions and digs at seemingly random intervals.
#35
Posted 01 March 2012 - 09:58 PM
#36
Posted 01 March 2012 - 10:19 PM
and the gotopos function is off with the z cord, it goes the opposite way it should for z and x. (if you set it to go to 10 and it is at 5, it will go to 0 instead of 10) it gets the height right though.
#37
Posted 01 March 2012 - 10:20 PM
#38
Posted 01 March 2012 - 10:26 PM
And it was being buggy in the diamond mine because I used 1 as the lenght and it kinda wanders through what it dug once it finishes the 4 paths it can go from its first square
#39
Posted 01 March 2012 - 11:00 PM
Liraal, on 01 March 2012 - 12:51 PM, said:
francogp, on 01 March 2012 - 09:14 AM, said:
-- on the turtle magicTurtle.setPos(0,0,0) magicTurtle.setUpdateID(11) magicTurtle.autoUpdate() -- on the controller redet.open("back") magicTurtle.sendCommand(27, "print("Hello")")
Im thinking about making a youtube video, but not for the time being.
A preview of what Im working on ATM:
-Cobble Generator
-Mining specific blocks
-Reed Farm
-Following player
-Pathfinding
-Blowing up obstacles />
I make it work with the print... but if I change the command to "go up", I get on the turtle "attempt to call nill" on the turtle, why?
#40
Posted 02 March 2012 - 02:52 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users