• ANSI, BIN, SAUCE, and EOF

    From Kirkman@VERT/GUARDIAN to All on Wed Apr 29 14:50:19 2015
    One frustration when playing with ANSI or BIN files using frame.js is SAUCE.ããI understood from the SAUCE spec that SAUCE stuff comes after an EOF characterã'\0X1A', which generally prevented old terminals and programs from processingãthe SAUCE info.ããThis doesn't seem to stop Frame.js. It attempts to render the sauce info as ifãit was graphic information. ããI want to propose that Frame.js be adjusted to recognize SAUCE records. ããThere could be a lot of benefits from parsing SAUCE records, like getting aãfile's width and height and not needing it specified in code. That'd be a handyãfeature. However, I recognize that parsing SAUCE is probably asking way tooãmuch.ããSo how about if Frame.js could at least look for SAUCE and strip/ignore itãwhile parsing the ANSI or BIN file?ãã--Joshãã////--------------------------------------------------ãBiC -=- http://breakintochat.com -=- bbs wiki and blogãã---ã þ Synchronetã
  • From Digital Man@VERT to Kirkman on Wed Apr 29 15:23:49 2015
    Re: ANSI, BIN, SAUCE, and EOFã By: Kirkman to All on Wed Apr 29 2015 02:50 pmãã > One frustration when playing with ANSI or BIN files using frame.js is SAUCE.ã >ã > I understood from the SAUCE spec that SAUCE stuff comes after an EOFã > character '\0X1A', which generally prevented old terminals and programs fromã > processing the SAUCE info.ã >ã > This doesn't seem to stop Frame.js. It attempts to render the sauce info asã > if it was graphic information.ã >ã > I want to propose that Frame.js be adjusted to recognize SAUCE records.ã >ã > There could be a lot of benefits from parsing SAUCE records, like getting aã > file's width and height and not needing it specified in code. That'd be aã > handy feature. However, I recognize that parsing SAUCE is probably askingã > way too much.ã >ã > So how about if Frame.js could at least look for SAUCE and strip/ignore itã > while parsing the ANSI or BIN file?ããOr just stop processing the ANSI file when a Ctrl-Z (CP/M EOF) character is ãread. Synchronet itself will not send Ctrl-Z characters contained in .ASC/.ANS ãfiles to the user, but it doesn't stop processing the file. I imagine if you ãhad sauce information in ANSI files that were displayed in the general text ãfile section or as logon messages or menus, you'd have a very similar issue.ãã digital manããSynchronet "Real Fact" #79:ã85 SBBSecho registrations were sold (at $49) between 1994 and 1996.ãNorco, CA WX: 91.0øF, 14.0% humidity, 13 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Deuce@VERT/SYNCNIX to Digital Man on Wed Apr 29 21:26:53 2015
    Re: ANSI, BIN, SAUCE, and EOFã By: Digital Man to Kirkman on Wed Apr 29 2015 03:23 pmãã > Or just stop processing the ANSI file when a Ctrl-Z (CP/M EOF) character isã > read. Synchronet itself will not send Ctrl-Z characters contained inã > .ASC/.ANS files to the user, but it doesn't stop processing the file. Iã > imagine if you had sauce information in ANSI files that were displayed inã > the general text file section or as logon messages or menus, you'd have aã > very similar issue.ããDoesn't really work for .BIN files used by frame.js since it uses binary
    attributes. Also, anything with a rightward arrow will stop processing early.ããI'll take a quick look.ãã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Deuce@VERT/SYNCNIX to Kirkman on Wed Apr 29 22:10:06 2015
    Re: ANSI, BIN, SAUCE, and EOFã By: Kirkman to All on Wed Apr 29 2015 02:50 pmãã > There could be a lot of benefits from parsing SAUCE records, like getting aã > file's width and height and not needing it specified in code. That'd be aã > handy feature. However, I recognize that parsing SAUCE is probably askingã > way too much.ããDone. Please test it out. You shouldn't need to pass width/height now when
    using the frame.load() method if there's SAUCE.ããã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Kirkman@VERT/GUARDIAN to Deuce on Thu Apr 30 09:26:55 2015
    There could be a lot of benefits from parsing SAUCE records, like gettingã > > a file's width and height and not needing it specified in code. That'dã > > be a handy feature. However, I recognize that parsing SAUCE is probablyã > > asking way too much.ã > ã > Done. Please test it out. You shouldn't need to pass width/height now whenã > using the frame.load() method if there's SAUCE.ãããWow, that was fast. I'll give it a look tonight. Thanks so much for doing that!ãã--Joshãã////--------------------------------------------------ãBiC -=- http://breakintochat.com -=- bbs wiki and blogãã---ã þ Synchronetã
  • From Kirkman@VERT/GUARDIAN to Deuce on Thu Apr 30 20:53:22 2015
    Done. Please test it out. You shouldn't need to pass width/height now whenã > using the frame.load() method if there's SAUCE.ããI did a little bit of testing tonight. Seems to be pretty backward-compatible.ãMost of the recent games I tried all worked fine (Bubble Boggle, Star Trek,ãChicken Delivery, etc).ããBut I ran into trouble when I tried to display ANSIs or BINs with SAUCE in myãown little test door.ãã* BINs with SAUCE displayed okay if I specified a width/height in load(). If Iãomitted the w/h, I would get an error. ãã* ANSIs with SAUCE would not display at all no matter what I tried.ããI tried to do some debugging, and as best as I can tell, the new code is notãdetecting the file_type and data_type correctly. ãã--Joshãã////--------------------------------------------------ãBiC -=- http://breakintochat.com -=- bbs wiki and blogãã---ã þ Synchronetã
  • From Deuce@VERT/SYNCNIX to Kirkman on Fri May 1 00:09:40 2015
    Re: Re: ANSI, BIN, SAUCE, and EOFã By: Kirkman to Deuce on Thu Apr 30 2015 08:53 pmãã > But I ran into trouble when I tried to display ANSIs or BINs with SAUCE inã > my own little test door.ã >ã > * BINs with SAUCE displayed okay if I specified a width/height in load(). Ifã > I omitted the w/h, I would get an error.ããWhat error?ãã > * ANSIs with SAUCE would not display at all no matter what I tried.ããWhat did you try?ãã > I tried to do some debugging, and as best as I can tell, the new code is notã > detecting the file_type and data_type correctly.ããAre you positive the SAUCE data is correct? Feel free to email test scripts
    and ANS/BIN files to myhuge@cox.net so I can take a look at them.ãã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Kirkman@VERT/GUARDIAN to Deuce on Fri May 1 11:19:04 2015
    Re: Re: ANSI, BIN, SAUCE, and EOFã By: Deuce to Kirkman on Fri May 01 2015 12:09 amãã >> * BINs with SAUCE displayed okay if I specified a width/height inã >> load(). If I omitted the w/h, I would get an error.ãã De> What error?ãã"uncaught exception: unknown graphic dimensions"ãã De> Are you positive the SAUCE data is correct? Feel free to email testã De> scripts and ANS/BIN files to myhuge@cox.net so I can take a look at them.ããI'm no expert, so I can't swear that it's correct. I'm using PabloDraw 3.2.1ãon the Mac. I know its BIN handling has some bugs, but the files I createdãrender perfectly in the Escapes app, and also on the AnsiLove.js test page.ããI'll email to you my test code plus a sample .bin and .ans file.ããI put some debugging statements into frame.js to see what the code wasãcalculating for file_type, data_type, etc. Then I compared those values to whatãEscapes said for the same file. Here are the results. Frame.js appears to beãwrong:ããtest.bin (frames.js) | datatype: 40 | filetype: 0 | tinfo1: 0 | tinfo2: 0ãtest.bin (escapes) | datatype: 5 | filetype: 40 | tinfo1: 0 | tinfo2: 0ããtest.ans (frames.js) | datatype: 1 | filetype: 80 | tinfo1: 6144 | tinfo2: 0ãtest.ans (escapes) | datatype: 1 | filetype: 1 | tinfo1: 80 | tinfo2: 24ãã--Joshãã////--------------------------------------------------ãBiC -=- http://breakintochat.com -=- bbs wiki and blogãã---ã þ Synchronetã
  • From Deuce@VERT/SYNCNIX to Kirkman on Fri May 1 10:21:50 2015
    Re: Re: ANSI, BIN, SAUCE, and EOFã By: Kirkman to Deuce on Fri May 01 2015 11:19 amãã > I'll email to you my test code plus a sample .bin and .ans file.ããThanks. Fixed now (at least for your test script).ãã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã