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.
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.
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.
Done. Please test it out. You shouldn't need to pass width/height now when using the frame.load() method if there's SAUCE.
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.
* 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?
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.
I'll email to you my test code plus a sample .bin and .ans file.
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 28:29:15 |
Calls: | 10,736 |
Calls today: | 1 |
Files: | 5 |
Messages: | 443,180 |
Posted today: | 1 |