Help locating lost wireless mining turtles
#1
Posted 18 January 2013 - 11:13 AM
This morning I could only find 1 of them. I have no idea what could have happened to them, I have looked all over the place but have had no luck. Could someone help me have them do a GPS Locate then save their location to a text file? I've tried this http://www.computerc...how-to-find-it/ but that doesn't seem to work at all. Currently I have rednet set to broadcast t512 meters to help find them easier. Thanks
#2
Posted 18 January 2013 - 11:27 AM
#3
Posted 18 January 2013 - 12:03 PM
#4
Posted 18 January 2013 - 12:14 PM
jewelshisen, on 18 January 2013 - 11:27 AM, said:
1 and 5
ChunLing, on 18 January 2013 - 12:03 PM, said:
That code errors, and trying it with another turtle sitting next to me gets no results.
#5
Posted 18 January 2013 - 12:57 PM
rednet.open("top")--Or whatever side your computer has the modem on
rednet.broadcast(" ")
repeat
local id, message,distance = rednet.receive(2)
print(id,": ",message,", from ",distance)
until not id
Also, for the turtles you can use:rednet.open("right")
local id = rednet.receive() --Wait for a message
local x,y,z = gps.locate(1)
rednet.send(id, "I am at: "..x..","..y..","..z)
Edited by ChunLing, 18 January 2013 - 01:02 PM.
#6
Posted 18 January 2013 - 04:34 PM
I don't understand how two turtles can just vanish without a trace.
#7
Posted 18 January 2013 - 08:29 PM
Also, how big is the chunk loader radius? And is it possible that someone just stole them?
Edited by ChunLing, 18 January 2013 - 08:29 PM.
#8
Posted 18 January 2013 - 08:48 PM
ChunLing, on 18 January 2013 - 08:29 PM, said:
http://pastebin.com/aYeeMz0J
ChunLing said:
'4' or 49 chunks 4 3 2 [1] 2 3 4
each was doing a 32x32 area for a 64x64 centered on me and the chunk loader
ChunLing said:
No, private 4 - 6 person server and no one had logged in while I was asleep
#9
Posted 18 January 2013 - 09:08 PM
#11
Posted 19 January 2013 - 03:18 AM
#12
Posted 19 January 2013 - 10:03 AM
#13
Posted 19 January 2013 - 03:08 PM
For now, I'm going to suggest that you replace:
if turtle.detect() then repeat turtle.dig() sleep(0.5) until turtle.detect() == false endwith
while turtle.detect() do
turtle.dig()
sleep(0.5)
end
Functionally this is almost identical but much easier to read.
#14
Posted 19 January 2013 - 11:04 PM
#15
Posted 20 January 2013 - 04:29 AM
local function forward()
while not turtle.forward() do
turtle.dig()
-- turtle.attack()
end
end
Having the turtle attack when it can't move is optional, and not something you want to test by standing in front of it.
#16
Posted 20 January 2013 - 05:13 AM
#17
Posted 20 January 2013 - 09:15 AM
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











