Posted 17 March 2013 - 07:54 PM
MC 1.5 CC 1.51 MultiMC loader with only CC and NEI
when making a turtle move in any direction (not turning, only relocating) it queues a peripheral event on the side facing the movement and another detach event on that side as well
STEPS TO REPRODUCE:
place any kind of turtle (tested with wireless mining turtle and normal turtle)
run the code
EXPECTED:
REALITY:
this can cause issues with peripheral trackers that use status displays etc as peripheral.getType(evt[2]) will return nil and if you are trying to print it in a status display you are concatenating nil and string… I simply made a default value in KaoShell but it was causing errors and it still spams coroutines. just letting you know
when making a turtle move in any direction (not turning, only relocating) it queues a peripheral event on the side facing the movement and another detach event on that side as well
STEPS TO REPRODUCE:
place any kind of turtle (tested with wireless mining turtle and normal turtle)
run the code
local ref=turtle.native.forward()
repeat
local evt={os.pullEvent()}
print(unpack(evt))
until evt[1]=="turtle_response" and evt[2]==ref and evt[3]==true
EXPECTED:
"turtle_responseXXXtrue"
REALITY:
"peripheralfront"
"peripheral_detachfront"
"turtle_responseXXXtrue"
where XXX is the random refthis can cause issues with peripheral trackers that use status displays etc as peripheral.getType(evt[2]) will return nil and if you are trying to print it in a status display you are concatenating nil and string… I simply made a default value in KaoShell but it was causing errors and it still spams coroutines. just letting you know