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

Lua Code Debugging/Problems

Started by Doobliheim, 10 August 2013 - 05:54 PM
Doobliheim #1
Posted 10 August 2013 - 07:54 PM
Title: Lua Code Debugging/Problems

I have been working on a branch mining program for a bit now but problems keep arising. I've got it so when you start the program, it checks it's fuel levels against the number 200, and if it's lower, it refuels and continues with the script. It then is supposed to dig a 3x1x48 tunnel, turn right, tunnel 3 more blocks, turn right again, and dig another 48 block tunnel. My problem is that it will absorb the needed fuel and it digs the blocks under and in front of it, but it won't go forward. Can someone give me a bit of troubleshooting? Any help/suggestions is much appreciated! [Click]

~Schneiderism
Bubba #2
Posted 10 August 2013 - 08:15 PM
Split into new topic.
MR_nesquick #3
Posted 10 August 2013 - 09:03 PM
you are missing an 'end' on line 34 and if you move one 'end' from line 29 to line 35 it should work. :)/>

http://pastebin.com/wAhTH2se
Doobliheim #4
Posted 11 August 2013 - 04:23 PM
Thanks a bunch!