Jump to content




[Alpha] Auto Miner With Gps Tracker


5 replies to this topic

#1 theeboris

  • Members
  • 59 posts
  • LocationThe Nethelands

Posted 24 July 2013 - 01:03 PM

This is a turtle program that does the same what the tunnel program does plus gps tracker and auto fuel. It's still in alpha so it's very buggy.
Turtle program: pastebin get WDHvTA7S miner
Computer program: pastebin get 678FS2UC tracker

#2 cheetah

  • Members
  • 11 posts

Posted 25 July 2013 - 01:16 AM

View Posttheeboris, on 24 July 2013 - 01:03 PM, said:

This is a turtle program that does the same what the tunnel program does plus gps tracker and auto fuel. It's still in alpha so there will be some bugs.
Turtle program: pastebin get WDHvTA7S miner
Computer program: pastebin get 678FS2UC tracker

Too buggy - crashes when checks for fuel.

#3 theeboris

  • Members
  • 59 posts
  • LocationThe Nethelands

Posted 25 July 2013 - 07:29 AM

View Postcheetah, on 25 July 2013 - 01:16 AM, said:

View Posttheeboris, on 24 July 2013 - 01:03 PM, said:

This is a turtle program that does the same what the tunnel program does plus gps tracker and auto fuel. It's still in alpha so there will be some bugs.
Turtle program: pastebin get WDHvTA7S miner
Computer program: pastebin get 678FS2UC tracker

Too buggy - crashes when checks for fuel.
I know it's buggy, it's still in alpha. On which rule crashes it?

#4 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 20 October 2013 - 10:21 PM

My checkFuel() function, for reference:
function checkFuel()
  if turtle.getFuelLevel() <= 50 then
    turtle.select(16) --# you can change the fuel slot to whatever you want, I always use slot 16
    turtle.refuel(1)
  end
end


#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 21 October 2013 - 01:44 AM

View Postawsmazinggenius, on 20 October 2013 - 10:21 PM, said:

My checkFuel() function, for reference:
function checkFuel()
  if turtle.getFuelLevel() <= 50 then
	turtle.select(16) --# you can change the fuel slot to whatever you want, I always use slot 16
	turtle.refuel(1)
  end
end
Fairly lacking, could have more checks against turtle.getFuelLevel and a much more dynamic nature.

#6 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 26 October 2013 - 11:25 AM

I generally don't need it to be fancy, right after I move I call checkFuel() and it does the job. You could return true or false:
function checkFuel(a, s)
  if turtle.getFuelLevel() <= 50 then
    turtle.select(s)
    turtle.refuel(a)
    return true
  else
    return false
  end
end






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users