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

Need help with my problem

Started by Engineer, 14 January 2013 - 12:30 AM
Engineer #1
Posted 14 January 2013 - 01:30 AM
http://pastebin.com/Q10ETfpv
I am thinking this program is broken. That is because it starts at line 312, and calls 313 nil form some reason, but it is supposed to start at line 235. If you guys can figure out what the problem is, that would be great.

Also: if you see some mistakes or pieces of code that require less lines than they use. Please put suggestions for these.
zekesonxx #2
Posted 14 January 2013 - 07:17 AM
clear() is not a Lua or CC function.
term.clear(), however, is.

You seem to use clear() a lot. Replace it with term.clear().
remiX #3
Posted 14 January 2013 - 08:19 AM
Or at the top of the code do this:


clear = term.clear

then it'll work
Engineer #4
Posted 14 January 2013 - 09:43 AM
I have a function called clear, sorry forgot that part.


function clear()
  term.clear()
  term.setCursorPos(1, 1)
end

The problem is that it works in the rest of the program, not in that specific line 313 ..
crazyguymgd #5
Posted 14 January 2013 - 11:35 AM
looks like you don't have an end to your refuel function.