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

SkyGrid Turtle Script [Randomly getting stuck on mov.up]

Started by WineCraftHD, 16 December 2015 - 09:54 PM
WineCraftHD #1
Posted 16 December 2015 - 10:54 PM
Previous error due to function being declared below caller.
Will report back after more tests.

SpoilerCurrent code: http://pastebin.com/SUE5WS2i

Current error:
Spoilerhttp://pastebin.com/Ecg7191h

I've tried increasing my chunk view distance, adding more padding to the fuel formula, adding print debugging message, etc.

I can't figure out why it's halting.

Summary of execution is:

Place chest above.
Mine block in front, go down four spaces 25 times.
(Conditional: returning to chest if inventory full to unload.)
Return to chest, deposit contents.
Move forward four blocks.

In case you dont know, blocks in SkyGrid are separated by 3 air blocks in each dimension (read: coordinates, not world-gen).
Edited on 18 December 2015 - 12:44 AM
Bomb Bloke #2
Posted 17 December 2015 - 02:45 AM
Given this, is this issue resolved…?
WineCraftHD #3
Posted 18 December 2015 - 01:35 AM
Sort of… here's my latest code http://pastebin.com/SUE5WS2i

It now will say tried to compare int with nil on line 107. I changed it to use CheckRefuel instead of Refuel and we'll see if that helps.. got 16 turtles chugging away.

Current error.
Edited on 18 December 2015 - 02:17 AM
Bomb Bloke #4
Posted 18 December 2015 - 06:12 AM
"attemps" (sic) is nil. You can't check to see if a number is higher or lower than an undefined value.