376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 06 May 2014 - 11:46 PM
I got seriously bored so I created this simple program for turtles. Simply place them in the world somewhere and watch then run around like complete retards. It is pretty fun.
How to install :
1. Place down a turtle
2. Type 'pastebin get 9qgYNxBk startup'
3. Put fuel in the first slot of the turtle.
4. Type 'reboot'
5. Enjoy!
Edited on 06 May 2014 - 09:46 PM
571 posts
Location
Some Fish Bowl in Ohio.
Posted 06 May 2014 - 11:51 PM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 06 May 2014 - 11:57 PM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
571 posts
Location
Some Fish Bowl in Ohio.
Posted 07 May 2014 - 12:01 AM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
It will if there is no room to move below it; it will just sit there until you terminate it.
376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 07 May 2014 - 12:10 AM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
It will if there is no room to move below it; it will just sit there until you terminate it.
Hmm, it might be caused by the RNG constantly generating 4
Try redownloading it.
1326 posts
Location
Error 404: Could not find.
Posted 07 May 2014 - 12:12 AM
True.
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
It will if there is no room to move below it; it will just sit there until you terminate it.
True because it didn't know it was down there and it will try to ram it until it is terminated
571 posts
Location
Some Fish Bowl in Ohio.
Posted 07 May 2014 - 12:26 AM
You should have it check if there is a block under it if it chooses to go down to prevent it from getting stuck.
I don't think it does get stuck like that, let me go check.
It will if there is no room to move below it; it will just sit there until you terminate it.
Hmm, it might be caused by the RNG constantly generating 4
Try redownloading it.
Or.. Or… Just fix the code.
1326 posts
Location
Error 404: Could not find.
Posted 07 May 2014 - 12:36 AM
That works.
7083 posts
Location
Tasmania (AU)
Posted 07 May 2014 - 01:11 AM
Or.. Or… Just fix the code.
And how might you receive that fix, hmm?
I have a feeling I missed a perfectly good
XKCD reference.
376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 07 May 2014 - 01:52 AM
Works fine now.
It wasn't constantly ramming the ground, I just made a rookie mistake and forgot to put sleep(0.5) so it was running too many things at once.
Edited on 07 May 2014 - 12:03 AM
571 posts
Location
Some Fish Bowl in Ohio.
Posted 07 May 2014 - 02:51 PM
Here is an update so if it wants to go down with a block below it it won't get stuck.