Jump to content




Curious to why this isn't doing anything


  • You cannot reply to this topic
2 replies to this topic

#1 popdog15

  • Members
  • 82 posts

Posted 30 March 2013 - 07:39 PM

Client code:
http://www.pastebin.com/YL0DARc6
Spoiler

Turtle code:
http://pastebin.com/5429xBk
Spoiler

The problem;

When I try and call the recall function it does nothing. No error. Nothing.I know the rednet signal is going, because I can use any of the other functions and it works correctly.
(Since there's no comments, I'll try and explain here. The recall function tries to make the turtle "retrace" its steps. I know the turning, moving and whatnot isn't perfected yet- but that's not the problem. Yet.)

#2 faubiguy

  • Members
  • 213 posts

Posted 30 March 2013 - 07:52 PM

When you open the file in recall, nothing has actually been written to the file because you haven't called file.close. In the main part, Instead of opening the file once per loop, I'd probably open it each time a command needs to be added (in append mode), write the command, and close it
Immediately after. (also close it in recall after reading from it)

You may want to reset the file contents at the end of recall, which can be done by opening the file in write mode then closing it again

#3 popdog15

  • Members
  • 82 posts

Posted 31 March 2013 - 10:18 AM

I reset it, and closed the file, though it still doesn't work. :\





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users