I have written some functions for the turtle I will use for basically every single bot I write, they just make the default API a little smarter and the actions more robust. I know some of you guys have made your own OS for the computers (which I have no idea how to do). Can it be done for a Turtle? Can someone show me a tutorial for this?
Possible to add to the Turtle OS functions?
Started by Ampix0, May 12 2013 12:32 AM
1 reply to this topic
#1
Posted 12 May 2013 - 12:32 AM
#2
Posted 12 May 2013 - 07:47 AM
basically modify the turtle functions in your startup file...
for example
for example
local fd=turtle.forward
turtle.forward=function(num)
num=tonumber(num) or 1
for i=1,num do
if not fd() then
return false,i
else
--modify position recording
end
end
end
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











