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

[Alpha] Auto Miner With Gps Tracker

Started by theeboris, 24 July 2013 - 12:03 PM
theeboris #1
Posted 24 July 2013 - 02: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
cheetah #2
Posted 25 July 2013 - 02:16 AM
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.
theeboris #3
Posted 25 July 2013 - 08:29 AM
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?
awsmazinggenius #4
Posted 20 October 2013 - 11: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
theoriginalbit #5
Posted 21 October 2013 - 02:44 AM
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.
awsmazinggenius #6
Posted 26 October 2013 - 12:25 PM
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