• chess bug

    From MCMLXXIX@VERT/MDJ to Digital Man on Tue Sep 29 11:57:49 2009
    So.. I've got two games that use probably 60% of the same code to run, usingãthe chat engine, queue engine, and game lobby (chess and sea battle)ããout of nowhere, chess is now doing some crazy shit and I can't figure it outãwhy. sea battle works fine, without any of the issues chess is having.ããI did make a few changes to the chess code recently, but even if I revert theãcode back to a previous revision that had no problems, im still having issues.ããIt seems to be "skipping" parts of the script for no apparent reason, failingãto fully draw the game lobby when the game loads, or when you exit a table..ãand when you exit the game the external programs menu is invisible, no promptãat the main menu, but all of the commands still work.ããhave you seen anything like this? and (see last two commits for chess.js andãchessbrd.js) do any of my changes look like they might cause a problem?ãããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From Deuce@VERT/SYNCNIX to MCMLXXIX on Tue Sep 29 12:13:16 2009
    Re: chess bugã By: MCMLXXIX to Digital Man on Tue Sep 29 2009 11:57 amãã > It seems to be "skipping" parts of the script for no apparent reason,ã > failing to fully draw the game lobby when the game loads, or when you exitã > a table.. and when you exit the game the external programs menu isã > invisible, no prompt at the main menu, but all of the commands still work.ããTry wrapping the entire script in a try/catch... maybe an exception is beingãthrown womewhere.ãã > have you seen anything like this? and (see last two commits for chess.jsã > and chessbrd.js) do any of my changes look like they might cause a problem?ããI don't see a problem off hand, but have you ran syncjslint on it?ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From MCMLXXIX@VERT/MDJ to Deuce on Tue Sep 29 23:01:56 2009
    Re: chess bugã By: Deuce to MCMLXXIX on Tue Sep 29 2009 12:13:16ãã > Re: chess bugã > By: MCMLXXIX to Digital Man on Tue Sep 29 2009 11:57 amã >ã > > invisible, no prompt at the main menu, but all of the commands stillã > > work.ã >ã > Try wrapping the entire script in a try/catch... maybe an exception isã > being thrown womewhere.ããI will give it a try and post the results hereãã >ã > > have you seen anything like this? and (see last two commits for chess.jsã > > and chessbrd.js) do any of my changes look like they might cause aã > > problem?ã >ã > I don't see a problem off hand, but have you ran syncjslint on it?ã >ããI looked at syncjslint once.... and had no idea wtf I was looking atããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From Digital Man@VERT to MCMLXXIX on Wed Sep 30 11:08:09 2009
    Re: chess bugã By: MCMLXXIX to Digital Man on Tue Sep 29 2009 11:57 amãã > So.. I've got two games that use probably 60% of the same code to run,ã > using the chat engine, queue engine, and game lobby (chess and sea battle)ã >ã > out of nowhere, chess is now doing some crazy shit and I can't figure itã > out why. sea battle works fine, without any of the issues chess is having.ã >ã > I did make a few changes to the chess code recently, but even if I revertã > the code back to a previous revision that had no problems, im still havingã > issues.ããCould it be a change in one of the lib/util files that is loaded() by chess.js?ãã > It seems to be "skipping" parts of the script for no apparent reason,ã > failing to fully draw the game lobby when the game loads, or when you exitã > a table.. and when you exit the game the external programs menu isã > invisible, no prompt at the main menu, but all of the commands still work.ããThat could be caused by an attribute issue (black on black?) or an abort charã(Ctrl-C) left in the input/key buffer. I assume that if you hit 'Q' that theãprogram section menu displays correctly?ãã > have you seen anything like this? and (see last two commits for chess.jsã > and chessbrd.js) do any of my changes look like they might cause a problem?ããI haven't been running chess.js and don't see anything obvious in the recentãcommits. I think Deuce's suggestion of running jslint is a good one.ãã digital manããSnapple "Real Fact" #127:ãA hummingbird's heart beats 1,400 times a minute. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MCMLXXIX@VERT/MDJ to Deuce on Thu Oct 1 12:17:04 2009
    Re: chess bugã By: MCMLXXIX to Deuce on Tue Sep 29 2009 23:01:56ãã > > Try wrapping the entire script in a try/catch... maybe an exception isã > > being thrown womewhere.ãããtried wrapping everything in a try/catch.. no results.. no result at allãactually. not 100% comfortable with try/catch, so maybe I went about it theãwrong way. but I'm guessing if there's no error thrown it doesnt even enter theãcatch() {}?ãã >ã > > I don't see a problem off hand, but have you ran syncjslint on it?ã > >ããstill no idea what to do with this.. ill take another look todayãã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From Mcmlxxix@VERT/SYNCNIX to Digital Man on Thu Oct 1 13:30:15 2009
    Re: chess bugã By: Digital Man to MCMLXXIX on Wed Sep 30 2009 11:08 amãã > > I did make a few changes to the chess code recently, but even if Iã > > revert the code back to a previous revision that had no problems, imã > > still having issues.ã >ã > Could it be a change in one of the lib/util files that is loaded() byã > chess.js?ããI've gone through them as much as I can, and I havent made any significantãchanges to any of them recently... and Sea-Battle seems to work without anyãproblems. The only significant difference between the two is gameplay related.ãã > That could be caused by an attribute issue (black on black?) or an abortã > char (Ctrl-C) left in the input/key buffer. I assume that if you hit 'Q'ã > that the program section menu displays correctly?ããthe external progrs menu OCCASIONALLY reappears if i go in and out of chess aãfew times, but it's not consistent. it's not a black on black issue. it justãseems to .. "break" the menus.. my main bbs menu is still a baja script, and itãdoesnt show a prompt either.ãã >ã > I haven't been running chess.js and don't see anything obvious in theã > recent commits. I think Deuce's suggestion of running jslint is a good one.ã >ããwhat exactly does jslint do?ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Digital Man@VERT to Mcmlxxix on Thu Oct 1 16:49:46 2009
    Re: chess bugã By: Mcmlxxix to Digital Man on Thu Oct 01 2009 01:30 pmãã > > I haven't been running chess.js and don't see anything obvious in theã > > recent commits. I think Deuce's suggestion of running jslint is a goodã > > one.ã > >ã >ã > what exactly does jslint do?ããIt analyzes your script and tells you what is wrong (or potentially wrong) withãit.ãã digital manããSnapple "Real Fact" #127:ãA hummingbird's heart beats 1,400 times a minute. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Corey@VERT/TSGC to Digital Man on Thu Oct 1 19:19:02 2009
    Re: chess bugã By: Digital Man to Mcmlxxix on Thu Oct 01 2009 04:49 pmãã > Re: chess bugã > By: Mcmlxxix to Digital Man on Thu Oct 01 2009 01:30 pmã > ã > > > I haven't been running chess.js and don't see anything obvious in theã > > > recent commits. I think Deuce's suggestion of running jslint is a goodã > > > one.ã > > >ã > >ã > > what exactly does jslint do?ã > ã > It analyzes your script and tells you what is wrong (or potentially wrong) wã > it.ã > ã > digital manã > ã > Snapple "Real Fact" #127:ã > A hummingbird's heart beats 1,400 times a minute.ã > ããchess bug? sounds like swine flu.ãããCaput meum major podice meo.ãThis message has ended, go in peace...ãã---ã þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nvã
  • From Smole@VERT to Corey on Fri Oct 2 03:24:02 2009
    Re: chess bugã By: Corey to Digital Man on Thu Oct 01 2009 07:19 pmãã > > > what exactly does jslint do?ããRemoves fuzzy balls from your code.ããwww.ralphsmole.comãwww.freewebs.com/ralphsmoleãbullishmcgee@gmail.comã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MCMLXXIX@VERT/MDJ to Smole on Fri Oct 2 13:31:48 2009
    Re: chess bugã By: Smole to Corey on Fri Oct 02 2009 03:24:02ãã > > > > what exactly does jslint do?ã >ã > Removes fuzzy balls from your code.ããI'm afraid that might leave me with a blank screenãã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From sfahey@VERT/A2CBBS to MCMLXXIX on Fri Oct 2 16:40:04 2009
    Re: chess bugã By: MCMLXXIX to Smole on Fri Oct 02 2009 01:31 pmãã > > Removes fuzzy balls from your code.ã > ã > I'm afraid that might leave me with a blank screenããAll this talk of people's fuzzy balls makes me uncomfortable.ããSean Faheyãwww.a2central.comãbbs.a2central.comãã---ã þ Synchronet þ A2Central.com - your total source for Apple II computing.ã
  • From Jas Hud@VERT to sfahey on Sat Oct 3 04:45:03 2009
    sfahey wrote:ã> Re: chess bugã> By: MCMLXXIX to Smole on Fri Oct 02 2009 01:31 pmã> ã> > > Removes fuzzy balls from your code.ã> > ã> > I'm afraid that might leave me with a blank screenã> ã> All this talk of people's fuzzy balls makes me uncomfortable.ã> ã> Sean Faheyã>ããagreedã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MCMLXXIX@VERT/MDJ to Deuce on Mon Oct 5 09:20:29 2009
    Re: chess bugã By: Deuce to MCMLXXIX on Tue Sep 29 2009 12:13:16ããã > > have you seen anything like this? and (see last two commits for chess.jsã > > and chessbrd.js) do any of my changes look like they might cause aã > > problem?ã >ã > I don't see a problem off hand, but have you ran syncjslint on it?ããFinally made a test script for syncjslint.. it gave me a few hundred errors,ãmost of which were "bad escapement" with the occasional false "missing ;"ãthrown in.ããall in all i didnt see anything that was serious in there.ããthe strange part is, when this problem first surfaced, i reset the server andãit was still there. yesterday I reset the server again and the problem is gone.ããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã