So I've been playing around with Andy Logger for a day or so, and I wanted to configure my turtle so that it charged via EU with a Solar Panel. However, it seems that the logger does not want to leave even if it has more fuel then the required amount. It seems to check for the amount of charcoal in the fuel slot instead of read its actual fuel level. I checked the code, and that doesn't appear to be true.
Could I be mistaken? I shouldn't have to change any of the code to get it to work with the charge station correct?
EDIT
It looks like it actually does only check the amount of charcoal in the inventory. That seems odd to me. I'll see if I can modify this to check the actual fuel level instead of how much coal it has
.
DOUBLE EDIT
So I found the offending code and traced it back to where it runs. If you want to make the same change that I did you should find this in the code
parallel.waitForAny(fuel, wakeUp) -- don't leave without fuel
and this
parallel.waitForAny(someFuel, wakeUp) -- make sure you have enough too!
if gotosettings == true then
settings()
end
and replace it with this
if turtle.getFuelLevel() < minFuel then
parallel.waitForAny(fuel, wakeUp) -- don't leave without fuel
end
and this
if turtle.getFuelLevel() < minFuel then
parallel.waitForAny(someFuel, wakeUp) -- make sure you have enough too!
if gotosettings == true then
settings()
end
end
respectively
also look for all instances of the fuel() function and put the same If condition around it except that it should be == 0. This will stop the turtle from failing to finish its run even though it has enough fuel to do so.
if turtle.getFuelLevel() == 0
fuel()
end
Now, before it runs the complicated methods for checking if it has fuel and if it needs fuel, it checks if it even has enough fuel to do its job. If it does, it skips the whole refuel process and just moves on its way.