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

[Lua][Error] '<name>' expected

Started by Dread Flint, 19 November 2012 - 04:03 PM
Dread Flint #1
Posted 19 November 2012 - 05:03 PM
Hello everybody, I've just recently gotten back into using computercraft and haven't really used it since the update with fuel usage. I know I can just turn it off, but I'd rather not. Anyway, I was attempting to write a refueling program like Eloraam's, in which it places an ender chest, sucks out fuel, refuels itself, and breaks the chest. I didn't think it would be that hard, but I keep getting an error message whenever I try to run it. The error says:

bios:206: [string "refuel"]:1: '<name>' expected

I'm not sure where it expects a name, as my code is only five lines:

turtle.break()
turtle.place(1)
turtle.suck()
turtle.refuel()
turtle.break()

the first break is so that it will make sure there is a space to place the chest. If anyone has any idea what's wrong, I would be very grateful.
Kingdaro #2
Posted 19 November 2012 - 05:11 PM
turtle.break() should be turtle.dig(), and there shouldn't be a 1 in turtle.place().

More info about turtle functions the wiki.
Dread Flint #3
Posted 19 November 2012 - 05:34 PM
thanks!! that worked perfectly!!!