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

Help (real simple)

Started by weareborg2913, 17 September 2014 - 09:15 AM
weareborg2913 #1
Posted 17 September 2014 - 11:15 AM
{
local mf=5
for i = 1, 800 do
if turtle.detectDown() then
turtle.turnRight()
turtle.forward()
turtle.turnLeft()
end
if turtle.detect() then
turtle.down()
turtle.down()
turtle.place()
end
if turtle.getFuelLevel() < mf then
turtle.refuel(16)
end
end
}

upon launch i get startup:85: attempt to call nil

Any ideas?
TurtleHunter #2
Posted 17 September 2014 - 11:49 AM
Post your full code
Edited on 17 September 2014 - 09:51 AM
flaghacker #3
Posted 17 September 2014 - 11:49 AM
That error is impossible with that code, as it states there is an error on line 85. Could you post the content of the startup file?
weareborg2913 #4
Posted 17 September 2014 - 02:38 PM
there is no content on startup file i wrote this seperatly in a file called test

@tutlehunter… there is no full code that is word for word whats in there…
weareborg2913 #5
Posted 17 September 2014 - 02:53 PM
its just supposed to move the turtle down

and make a pattern like

Block | air

Air | block

Block | air

All the way to bedrock then come back up

and im sure someone is laughing… but i used to use forth computers to do these kinds of things
Bomb Bloke #6
Posted 17 September 2014 - 03:36 PM
The error you're getting states the problem is on the 85th line of a file called "startup". The code you've posted here isn't the cause of your problem.

Exactly when do you get this error? When you turn the turtle on, or only when you try to run your "test" script? If the former, do other turtles do the same thing? If the latter, how are you trying to run your script?
weareborg2913 #7
Posted 17 September 2014 - 03:43 PM
its just only when im trying to run the test program… and its the only thing thats been modified on the turtle
weareborg2913 #8
Posted 17 September 2014 - 03:51 PM
tried it on a mining turtle and nothing…. nothing happened… Prolly buggered the code…

no errors thou

twell got an error…

Startup:85: attempt to call nil

Seems to happen when i try to place anything
weareborg2913 #9
Posted 17 September 2014 - 03:57 PM
and well all variations of startup are empty… maybe theyve done something server side to cause this ideas?
Bomb Bloke #10
Posted 17 September 2014 - 04:03 PM
Certainly sounds like it. Perhaps ask your server admin(s) if they're aware of any tweaks they might've made to ComputerCraft, and if that doesn't yield anything, report back here with the mod versions in use.