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

It was working before the last update

Question

Hey all.  I had a single-tree logger that was working fine before the last update, but I just got on the server again, and now it doesn't.  Instead, it throws the error

bad argument #2 (boolean expected, got nil):
stack traceback:
	[C]: in function 'error'
	machine:986: in function <machine:983>
/usr/bin # .tail calls...)

Yes, the last bit there is the prompt overwriting the start of the last line of the error.  I haven't done any stack work so I have no idea what to do with this.  Any help is appreciated.

 

The full code is at http://pastebin.com/n3eBq30G.

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  • Solution

The problem is on the 65th line. For some reason (it's probably a bug) when running OC 1.6.1, you have to pass the boolean argument to robot.compare. If the argument is true, it will ignore metadata when comparing. If you need the same behavior as on OC 1.5, the argument should be false.

So, replace this line with the following code.

while not robot.compare(false) do o.sleep(wait) end

 

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