Jump to content
UBot Underground

Error message with 3.504


Recommended Posts

Windows 7, IE8, Ubot 3.504

 

The attached bot code worked fine in an earlier version, maybe 3.502?

 

Will give a "You have exceeded the range of the list" error when using a ui_statmonitor on a list without even Running the bot code. just open in ubot and it repeats the error over and over again.

 

How can I roll back a version?

 

Thanks

 

-Dave

 

error.ubot

Link to post
Share on other sites

The problem is with the code; if there's nothing in the list, the first item cannot be accessed.

Stat Monitors should only be used to display variables, not for example; $list items.

 

To fix your problem:

Set a variable to $list item > Position 0.

Then use a Stat Monitor to display the variable's value after the list has been populated (i.e. after the $add to list).

Link to post
Share on other sites

Thanks for the reply, that is what I did to fix the problem.

 

This seemed more like a bug because this code worked fine until today's update, and the fact that it begins to error before the bot is run.

 

The problem is with the code; if there's nothing in the list, the first item cannot be accessed.

Stat Monitors should only be used to display variables, not for example; $list items.

 

To fix your problem:

Set a variable to $list item > Position 0.

Then use a Stat Monitor to display the variable's value after the list has been populated (i.e. after the $add to list).

Link to post
Share on other sites

Thanks for the reply, that is what I did to fix the problem.

 

This seemed more like a bug because this code worked fine until today's update, and the fact that it begins to error before the bot is run.

 

 

yeah, you generally do not want to put list items, next list items, random list items, or whatever in the UI stat monitor. Not sure how it worked for you last time you tried but that's been the case for all the versions.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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...