#21
Posted 24 October 2016 - 03:29 PM
#22
#23
Posted 24 October 2016 - 03:49 PM
http://pastebin.com/iYqpNa1a
#24
Posted 24 October 2016 - 07:05 PM
Also, with my previous post, I meant only the second turtle.digDown(), the first had to be right there for what you intended (diggging a block and then moving, am I right?).
It should become something like this:
function moveDown() yCoord = yCoord - 1 turtle.digDown() moved = false while not(moved) do moved = turtle.down() end if yMin > yCoord then yMin = yCoord end end
In inventoryFull function you've messed it up a little it now doesn't work as you should expect. You aren't needed to re-set the turtle selected slot to 1 (unless you want it to be done, of course), because turtle.getItemCount() doesn't move the selected slot. Also, it will now return what turtle.select() returns (because it's the last line of your function and you've not used any return). Use return, or simply do not set a variable to turtle.getItemCount(16)>0 and use it as the last (and only, in my advice) line of inventoryFull.
(I suggest you to modify it like this:)
function inventoryFull() return turtle.getItemCount(16) > 0 end
Edited by Larry84, 24 October 2016 - 07:49 PM.
#25
Posted 24 October 2016 - 07:48 PM
#26
Posted 24 October 2016 - 08:19 PM
http://pastebin.com/d1RQYGK1
Edited by jdanner95, 24 October 2016 - 08:20 PM.
#27
Posted 24 October 2016 - 09:20 PM
#28
Posted 24 October 2016 - 10:32 PM
Larry84, on 24 October 2016 - 09:20 PM, said:
#29
Posted 25 October 2016 - 12:45 PM
http://pastebin.com/LGnMfbdc
thanks for everything
#30
Posted 25 October 2016 - 02:20 PM
jdanner95, on 25 October 2016 - 12:45 PM, said:
http://pastebin.com/LGnMfbdc
thanks for everything
can we have a screenshot of the tree in question?
#31
Posted 25 October 2016 - 03:59 PM
Lupus590, on 25 October 2016 - 02:20 PM, said:
jdanner95, on 25 October 2016 - 12:45 PM, said:
http://pastebin.com/LGnMfbdc
thanks for everything
can we have a screenshot of the tree in question?
cause I have tried to google search on that and I really did not get very well good things for that
Edited by jdanner95, 25 October 2016 - 04:04 PM.
#32
Posted 25 October 2016 - 04:26 PM
jdanner95, on 25 October 2016 - 03:59 PM, said:
Lupus590, on 25 October 2016 - 02:20 PM, said:
jdanner95, on 25 October 2016 - 12:45 PM, said:
http://pastebin.com/LGnMfbdc
thanks for everything
can we have a screenshot of the tree in question?
upload image to a hosting service, copy a direct link. In post editor, click on image icon (under the smily face) and paste link:
as for a soloution to the problem.... err... you had to pick the ridiculously big one!
get the turtle to map out the base of the tree, then do each column in turn. This will get the truck and some of the leaves but not all of the branches or the roots, but it's a starting point.
Edited by Lupus590, 25 October 2016 - 04:27 PM.
#33
Posted 25 October 2016 - 04:32 PM
jdanner95, on 24 October 2016 - 10:32 PM, said:
Larry84, on 24 October 2016 - 09:20 PM, said:
You can make a function wich controls fuel and then call it together with inventoryFull()
#34
Posted 25 October 2016 - 04:48 PM
Lupus590, on 25 October 2016 - 04:26 PM, said:
jdanner95, on 25 October 2016 - 03:59 PM, said:
Lupus590, on 25 October 2016 - 02:20 PM, said:
jdanner95, on 25 October 2016 - 12:45 PM, said:
http://pastebin.com/LGnMfbdc
thanks for everything
can we have a screenshot of the tree in question?
upload image to a hosting service, copy a direct link. In post editor, click on image icon (under the smily face) and paste link:
as for a soloution to the problem.... err... you had to pick the ridiculously big one!
get the turtle to map out the base of the tree, then do each column in turn. This will get the truck and some of the leaves but not all of the branches or the roots, but it's a starting point.
Larry84, on 25 October 2016 - 04:32 PM, said:
jdanner95, on 24 October 2016 - 10:32 PM, said:
Larry84, on 24 October 2016 - 09:20 PM, said:
You can make a function wich controls fuel and then call it together with inventoryFull()
#35
Posted 25 October 2016 - 04:59 PM
jdanner95, on 25 October 2016 - 04:48 PM, said:
ok I have to check that out and update it I am just glad it is working nicely one thing I do have a question do I use gps towers to let the turtle know what the next job would be and where from the manger right or no cause as it is right now the area is hard coded into the manger code and the starting point is in the turtle that why I was asking
I'm so glad you've said this. Really.
That's not a really hard thing, you just have to add at the top of the script a gps function which sets the actual (at startup) coordinates of the turtle. You also need to setup gps towers, as you said.
[hint]
http://www.computerc...o/wiki/Gps_(API)
[/hint]
#36
Posted 25 October 2016 - 05:26 PM
Larry84, on 25 October 2016 - 04:59 PM, said:
jdanner95, on 25 October 2016 - 04:48 PM, said:
ok I have to check that out and update it I am just glad it is working nicely one thing I do have a question do I use gps towers to let the turtle know what the next job would be and where from the manger right or no cause as it is right now the area is hard coded into the manger code and the starting point is in the turtle that why I was asking
I'm so glad you've said this. Really.
That's not a really hard thing, you just have to add at the top of the script a gps function which sets the actual (at startup) coordinates of the turtle. You also need to setup gps towers, as you said.
[hint]
http://www.computerc...o/wiki/Gps_(API)
[/hint]
causer here is the paste bin to the turtle
http://pastebin.com/4RkbSvXv
and here is the manger code
http://pastebin.com/TGsEffzC
btw I am learning and its just easier to write it all out but I have spent a week trying to get the qurry code to run now I am just need to get to where I do not have to hard code the stuff of y x and z into the code for both and let the manger do all the telling for the turtle so I can make more turtles and let them quarry
#37
Posted 25 October 2016 - 06:42 PM
Just remove the first three lines of the code (where you define your xCoord, yCoord, and zCoord varibles) and put in this:
rednet.open("right") xCoord, yCoord, zCoord = gps.locate() if not xCoord then error("Cannot find coordinates") end
It opens up your modem, then locates the turtle based on the gps tower signals and, if it isn't able to find any coordinate, you will get an error saying "Cannot find coordinates".
Edited by Larry84, 25 October 2016 - 06:59 PM.
#38
Posted 25 October 2016 - 07:33 PM
#39
Posted 25 October 2016 - 07:52 PM
#40
Posted 25 October 2016 - 08:24 PM
Larry84, on 25 October 2016 - 07:52 PM, said:
http://pastebin.com/4RkbSvXv
I should say the turltle did what it was ment to do, but I think the manger code needs to be changed to get the gps cause it didn't send the turtle to a new job I did it in a single player world and it did not tell the turtle to go to a area to mine
Edited by jdanner95, 25 October 2016 - 08:25 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users