• chess bug

    From MCMLXXIX@MDJ to Digital Man on Tuesday, September 29, 2009 11:57:49
    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@SYNCNIX to MCMLXXIX on Tuesday, September 29, 2009 12:13:16
    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@MDJ to Deuce on Tuesday, September 29, 2009 23:01:56
    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 to MCMLXXIX on Wednesday, September 30, 2009 11:08:09
    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.
  • From MCMLXXIX@MDJ to Deuce on Thursday, October 01, 2009 12:17:04
    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@SYNCNIX to Digital Man on Thursday, October 01, 2009 13:30:15
    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 to Mcmlxxix on Thursday, October 01, 2009 16:49:46
    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.
  • From Corey@TSGC to Digital Man on Thursday, October 01, 2009 19:19:02
    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 to Corey on Friday, October 02, 2009 03:24:02
    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
  • From MCMLXXIX@MDJ to Smole on Friday, October 02, 2009 13:31:48
    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@A2CBBS to MCMLXXIX on Friday, October 02, 2009 16:40:04
    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@jashuddovenet@nospameob-bbs.com to sfahey on Saturday, October 03, 2009 04:45:03
    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
  • From MCMLXXIX@MDJ to Deuce on Monday, October 05, 2009 09:20:29
    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)