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

index out of bounds errors when using some functions

Question

Posted

Hey, I'm trying to make a babby's first robot, and I'm already hitting some blockades

All my code so far:

local r = require("robot")
r.forward()

However, when I run this snippet, I get an out of bounds error as seen here:

image.png.3963bd824b09530a90f075dea2d10207.png

This also happens with some few other functions. (for example: place and detect)

I'm convinced that this is not an error on my part, but I hope someone can prove me wrong.

4 answers to this question

Recommended Posts

  • 0
Posted

I can't get this to repro. can you open a github issue and provide this info?

also (in the github issue) can you paste the steps you are taking? the exact code?

 

  • 0
Posted

oc version please

also, looks like you've set your hostname on that robot - which only tells me this isn't a minimal repro

please provide minimal repro steps (also, if you have a bug, github is the place to report it)

  • 0
Posted
2 hours ago, payonel said:

oc version please

also, looks like you've set your hostname on that robot - which only tells me this isn't a minimal repro 

please provide minimal repro steps (also, if you have a bug, github is the place to report it)

I have a hostname on it because i put an old hard drive in there

oc version is 1.7.4.153

Running the same snippet on a Creatix throws the same error:

image.png.08ed7be373bdf31e15c67e8bdb6856f1.png

I haven't done anything to the creatix, I placed it, and then pasted the snippet into the lua interpreter.

 

  • 0
Posted
2 hours ago, payonel said:

I can't get this to repro. can you open a github issue and provide this info?

also (in the github issue) can you paste the steps you are taking? the exact code?

 

I have posted the issue on github

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

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