• js error with synchronet

    From Lesser Keys@DIGDIST/BATTLEST/FREEWAY to All on Tuesday, October 29, 2013 00:24:00
    I hope I'm posting this in the right thread. I am getting an error running lbshell.

    10/28 01:27:30p Node 2 !JavaScript c:\sbbs\exec\load\graphic.js line 118: TypeError: this.data[x + xoff][this.index + y + yoff] is undefined

    I get this error sometimes using lbshell (I am playing around with it.) What happens when I try to go from the far left (using lightbar) to the right, by hitting the left arrow key, most of the time it works. Every once in a while I get that error message, it causes sync to kill my connection. I need to look
    in graphic.js and see what [this.index + y + yoff] is. I am guessing it has something to do with the lightbar itself.

    Has anyone seen this error before?

    First off:) was "this.index" variable assigned? What should be assigned to
    this variable? I haven't actually messed with the script for my main lbshell.
    I play with a backup copy. Both copies are giving me the error. This has happened every since I have used it. It's one little piece of code and it only happens sometimes. Why would the variable be assigned and work most of the time, to me this doesn't seem possible?

    I have changed the background image to lbshell (I have a backup copy of it as well.) Changing the background image shouldn't affect a variable inside the java script would it? That is unless the file size of the ansi vs. the size of the old ansi is different and the script checks for that kind of thing.

    Solomon's Temple * telnet (wm.myftp.org)

    ---
    þ Synchronet þ Solomon's Temple *telnet://wm.myftp.org
  • From Nightfox@DIGDIST/BATTLEST/FREEWAY to Lesser Keys on Sunday, November 03, 2013 08:15:00
    Re: js error with synchronet
    By: Lesser Keys to All on Tue Oct 29 2013 00:24:58

    I hope I'm posting this in the right thread. I am getting an error
    running lbshell.

    I think Synchronet-specific JavaScript questions are fine here, but a better place to post such questions would probaby be the Synchronet JavaScript area on DOVE-Net, since that message area is specific to Synchronet's JavaScript.

    10/28 01:27:30p Node 2 !JavaScript c:\sbbs\exec\load\graphic.js line 118: TypeError: this.data[x + xoff][this.index + y + yoff] is undefined

    I get this error sometimes using lbshell (I am playing around with it.) What happens when I try to go from the far left (using lightbar) to the right, by hitting the left arrow key, most of the time it works. Every once in a while I get that error message, it causes sync to kill my connection. I need to look in graphic.js and see what [this.index + y + yoff] is. I am guessing it has something to do with the lightbar itself.

    First off:) was "this.index" variable assigned? What should be assigned
    to this variable? I haven't actually messed with the script for my main

    I haven't used graphic.js and haven't used lbshell much, so I can only suggest general things. this.index may be assigned (you can search graphic.js to see if it has been assigned), but the element in the this.data array referenced by the given indexes might not exist.. In other words, the this.data array might not have an element at the indexes x + xoff and this.index + y + yoff.
    So my first guess would be that there may be a bug in the code for graphic.js where it isn't inserting enough elements into the this.data array or it's not calculating the indexes correctly.

    Looking at the Synchronet CVS repository, it looks like both deuce and Rob Swindell maintain lbshell.js (in the /exec directory), and mcmlxxix maintains graphic.js (in /exec/load). So perhaps you could let them know about this error, and hopefully they'll take a look and maybe find a fix.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com