Jump to content




Need help with my problem

lua turtle help

4 replies to this topic

#1 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

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.

#2 zekesonxx

  • Signature Abuser
  • 263 posts
  • LocationWhere you aren't

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().

#3 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 14 January 2013 - 08:19 AM

Or at the top of the code do this:

clear = term.clear

then it'll work

#4 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

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 ..

#5 crazyguymgd

  • Members
  • 139 posts
  • LocationUSA

Posted 14 January 2013 - 11:35 AM

looks like you don't have an end to your refuel function.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users