Subj : js error with synchronet To : Lesser Keys From : Nightfox Date : Sun Nov 03 2013 08:15 am Re: js error with synchronet By: Lesser Keys to All on Tue Oct 29 2013 00:24:58 LK> I hope I'm posting this in the right thread. I am getting an error LK> 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. LK> 10/28 01:27:30p Node 2 !JavaScript c:\sbbs\exec\load\graphic.js line LK> 118: TypeError: this.data[x + xoff][this.index + y + yoff] is undefined LK> I get this error sometimes using lbshell (I am playing around with it.) LK> What happens when I try to go from the far left (using lightbar) to the LK> right, by hitting the left arrow key, most of the time it works. Every LK> once in a while I get that error message, it causes sync to kill my LK> connection. I need to look in graphic.js and see what [this.index + y + LK> yoff] is. I am guessing it has something to do with the lightbar itself. LK> First off:) was "this.index" variable assigned? What should be assigned LK> 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 .