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

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7.1 for MC 1.7.10, 1.10.2, 1.11.2 & 1.12.1. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)
  • 0
flameaway

robot not returning data from callbacks or other functions

Question

So, when I type in "robot.detect()",  or "robot.name()", I get no results.  Lua just accepts the command and returns a new line... no error message or any text returned.  Likewise, if I tell the robot to move and it's way is blocked it will not return any Boolean expression.  I can get the robot to actually obey commands.  So I can get it to move and swing and place.  I'm using vanilla Open Computers on 1.10.2 Skyblock 3.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

try

=robot.detect()

 

or

 =robot.name() 

 

adding the "=" will make the interpreter print the result to the console, otherwise it just eats it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×