Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

denecity

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by denecity

  1. Thanks for the quick response. I went ahead and added the line right before the last "end". Sadly it doesn't seem to fix the issue (or if it does it opens another), as the robot now just freezes without making a move. After i cancelled the program after approximately 1 minute (Ctrl+Alt+C) this error appeared: interrupted: stack traceback: [C]: in function 'error' /lib/event.lua:222: in function </lib/event.lua:203> (...tail calls...) boot/20_os.lua:58: in function 'sleep' /home/farmer.lua:87: in main chunk (...tail calls...) [C]: in function 'xpcall' m
  2. Today i was writing a program for my Mystical Agriculture Farm. The program is supposed to steer the Robot in random directions and check the Robot's energy after each cycle. After a certain threshold (now 10%) is reached, it sends the robot to a charger. The energy check and recharging works like a charm, but as soon as i add the while-loop and the random movements, i get a "too long without yielding" error (the full error is pasted at the end of the github file). github: The Code
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.