-
Changing SyncTerm Display speed, and...
From
Android8675@VERT/SHODAN to
All on Thu Mar 29 09:24:59 2018
So, trying to slow down my BBS from spitting out ANSI screens too quickly. Iãnoticed eChicken has it setup to slow down SyncTerm during long draws and resetãfor menus. So I guess I'm wondering how he did it. I read that SyncTerm uses aãVT500 ansi code to change speeds, but where do you insert that code?ããTried adding the code to .asc (Ctrl-a) files, no go.ãTried using console.putmsg('\e[0;8*r');, no luck.ãMaybe <ctrl-a>"9600b.ans and put the rate code in an ansi file? Seems redundantããCode is <esc>[0;8*r where first number is 0, 1 or blank, and second number isãspeed 0 for unlimited through 9 I think for 115200ããSo is my thinking correct, or is my execution wrong?ããSecond Question...ããI want to make it so when players exit a door game it will ask the user if theyãwant to display a high-score file.ããWondering how I should build this so it can be easily added to any doorgameãwith a score file?ããI figured I'd want to use one of the .ini config files and have a [doorscores]ãsection where you had:ãã<door-int-code> = <url/filename to score file>ããIf a line exists for the door being played, upon exit the user would be askedãif they want to view the file.ããI'd also like to be able to see the score file on the website using somethingãlike ansilove.js. If the door has a score file, link it next to the game.ããSo, help me out here. Should I just drop some new lines into xtrn_sec.js, orãwrite my own addon and have it called after the door runs?ããbonus points if you help me get started.ãã-A.ããã... Celibacy is not hereditary.ãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
echicken@VERT/ECBBS to
Android8675 on Thu Mar 29 17:47:39 2018
Re: Changing SyncTerm Display speed, and... ã By: Android8675 to All on Thu Mar 29 2018 09:24:59 ã ã An> So, trying to slow down my BBS from spitting out ANSI screens too quickly. ã An> I noticed eChicken has it setup to slow down SyncTerm during long draws ã An> and reset for menus. So I guess I'm wondering how he did it. I read that ã ã An> SyncTerm uses a VT500 ansi code to change speeds, but where do you insert ã An> that code? ã An> Tried using console.putmsg('\e[0;8*r');, no luck. ã An> Code is <esc>[0;8*r where first number is 0, 1 or blank, and second number ã ãThere are .js libraries to make this easier. This might work: ã ãvar Ansi = load({}, "ansiterm_lib.js"); ãvar cterm = load({}, "cterm_lib.js"); ã ã// If the terminal is any version of SyncTERM ãif (typeof console.cterm_version != 'undefined') { ã Ansi.send("speed", "set", 7); ã // 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ã // 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800, 115200 ã} ã ãconsole.printfile('poop.ans'); ã ã// Reset to normal speed ãif (typeof console.cterm_version != 'undefined') { ã Ansi.send("speed", "clear"); ã} ã ã An> I want to make it so when players exit a door game it will ask the user if ã An> they want to display a high-score file. ã ã An> Wondering how I should build this so it can be easily added to any ã An> doorgame with a score file? ã ãI would make a JS module that accepts the internal code of an external program ãto execute as a command-line parameter. It would launch that xtrn, then prompt ãthe user and display the appropriate file if desired. I would modify my shell ã/ xtrn_sec.js so that it calls bbs.exec('?door-launcher.js [code]') instead of ãbbs.exec_xtrn('[code]'). A mapping of internal codes to score files could be ãkept in a config file as you described. ã ãIf the 'clean-up command line' for a door could be hijacked for this purpose ãinstead, that would be an easier option (I haven't tried that and I'm ãdoubtful). ã ã An> I'd also like to be able to see the score file on the website using ã An> something like ansilove.js. If the door has a score file, link it next to ã An> the game. ã ãWe have a 'handler' script that converts ANSI graphics into HTML. See ã'ctrl/web_handler.ini'. The [JavaScript] section should have an entry like: ã ãans = asc_handler.js ã ãWhen a '.ans' file is requested by a web client, the server passes the request ãto 'asc_handler.js', which formats and sends output to the client. You would ãneed to do something like this to cause the file to be loaded directly from the ãserver: ã ã<iframe src="/scores/lord.ans"></iframe> ã ãThe file would need to exist somewhere under the server's document root. There ãare other ways to accomplish serving this file (XMLHttpRequest, etc.) which I ãwon't get into right now. ã ãAlternatively, in an XJS file you could do this: ã ã<pre style="font-family: Courier New, monospace"> ã<?xjs ã var f = new File('/sbbs/text/scores/lord.ans'); ã f.open('r'); ã var text = f.readAll(8192); ã f.close(); ã write(html_encode(text.join('\r\n'), true, false, true, true)); ?> ã</pre> ã ãThe 'html_encode' part is the same thing that asc_handler.js is doing. This ãmethod has the benefit of allowing you to load the file from a place outside ofããyour document root. ã ãYou would want that <pre> block to be in something with a black background. ã ãLastly, I did write a client-side .bin -> PNG rendering thing for the avatar ãgallery on my website. It doesn't parse .ans at the moment, but that could be ãadded easily enough. We can explore that if you don't like the look of the ãHTML-encoded ANSI. ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230 ã ã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Digital Man@VERT to
Android8675 on Thu Mar 29 17:51:52 2018
Re: Changing SyncTerm Display speed, and...ã By: Android8675 to All on Thu Mar 29 2018 09:24 amãã > So, trying to slow down my BBS from spitting out ANSI screens too quickly.ããThe simplest thing would be to convert it to a Ctrl-A/.ASC file using ans2ascãand use the -delay option:ãã-delay <interval> insert a 1/10th second delay code at output byte intervalã (lower interval values result in more delays, slower display)ãã > Iã > noticed eChicken has it setup to slow down SyncTerm during long draws andã > reset for menus. So I guess I'm wondering how he did it. I read thatã > SyncTerm uses a VT500 ansi code to change speeds, but where do you insertã > that code?ããYou could put them in the .ans or .asc files, but you'd have to be sure toãreset/revert the speed setting too.ãã > Tried adding the code to .asc (Ctrl-a) files, no go.ã > Tried using console.putmsg('\e[0;8*r');, no luck.ã > Maybe <ctrl-a>"9600b.ans and put the rate code in an ansi file? Seemsã > redundantã >ã > Code is <esc>[0;8*r where first number is 0, 1 or blank, and second numberã > is speed 0 for unlimited through 9 I think for 115200ã >ã > So is my thinking correct, or is my execution wrong?ããSee exec/load/ansiterm_lib.js for a reference.ãã > Second Question...ã >ã > I want to make it so when players exit a door game it will ask the user ifã > they want to display a high-score file.ã >ã > Wondering how I should build this so it can be easily added to any doorgameã > with a score file?ã >ã > I figured I'd want to use one of the .ini config files and have aã > [doorscores] section where you had:ã >ã > <door-int-code> = <url/filename to score file>ã >ã > If a line exists for the door being played, upon exit the user would beã > asked if they want to view the file.ã >ã > I'd also like to be able to see the score file on the website usingã > something like ansilove.js. If the door has a score file, link it next toã > the game.ã >ã > So, help me out here. Should I just drop some new lines into xtrn_sec.js, orã > write my own addon and have it called after the door runs?ã >ã > bonus points if you help me get started.ããModding xtrn_sec.js seems to make the most sense there.ãã digital manããSynchronet "Real Fact" #63:ã"Baja" (name of Synchronet PCMS compiler/languege) is pronounced "ba-ha".ãNorco, CA WX: 75.5øF, 29.0% humidity, 12 mph ENE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Android8675@VERT/SHODAN to
echicken on Fri Mar 30 08:37:35 2018
Re: Changing SyncTerm Display speed, and...ã By: echicken to Android8675 on Thu Mar 29 2018 05:47 pmãã ec> I would make a JS module that accepts the internal code of an externalã ec> program to execute as a command-line parameter. It would launch that xtrn,ã ec> then prompt the user and display the appropriate file if desired. I wouldã ec> modify my shell / xtrn_sec.js so that it calls bbs.exec('?door-launcher.jsã ec> [code]') instead of bbs.exec_xtrn('[code]'). A mapping of internal codesã ec> to score files could be kept in a config file as you described. ããThat sounds like a good plan, that would require fewer changes than...ãã ec> If the 'clean-up command line' for a door could be hijacked for thisã ec> purpose instead, that would be an easier option (I haven't tried that andã ec> I'm doubtful). ããYeah, plus you'd have to update all the door entries. Using mod_opts.ini forãthe config seems like the best place. ããWhat's great about that is I could display a file before the game starts andãanother afterwards, like a game description/history.ããThanks eC.ã-A.ããã... The best audience is intelligent, well-educated and a little drunk.ãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
echicken@VERT/ECBBS to
Android8675 on Fri Mar 30 12:35:43 2018
Re: Changing SyncTerm Display speed, and...ã By: Android8675 to echicken on Fri Mar 30 2018 08:37:35ãã ec>> I would make a JS module that accepts the internal code of anã ec>> external program to execute as a command-line parameter. It wouldãã An> That sounds like a good plan, that would require fewer changes than...ããIt occurs to me that this could just as easily be a function in xtrn_sec.js orãwhatever you launch doors from. You'll need to modify it anyway, and thisãdoesn't have to be its own script.ããfunction launch(code) {ã bbs.exec_xtrn(code);ã if (console.yesno('Display scores')) {ã var f = new File(system.ctrl_dir + 'scores.ini');ã f.open('r');ã var ini = f.iniGetObject();ã f.close();ã if (ini[code]) {ã console.clear(LIGHTGRAY);ã console.printfile(ini[code]);ã console.pause();ã }ã }ã}ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
MRO@VERT/BBSESINF to
Android8675 on Fri Mar 30 12:30:05 2018
Re: Changing SyncTerm Display speed, and...ã By: Android8675 to All on Thu Mar 29 2018 09:24 amãã > So, trying to slow down my BBS from spitting out ANSI screens too quickly. Iã > noticed eChicken has it setup to slow down SyncTerm during long draws andã > reset for menus. So I guess I'm wondering how he did it. I read thatã > SyncTerm uses a VT500 ansi code to change speeds, but where do you insertã > that code?ãã > Tried adding the code to .asc (Ctrl-a) files, no go.ã > Tried using console.putmsg('\e[0;8*r');, no luck.ã > Maybe <ctrl-a>"9600b.ans and put the rate code in an ansi file? Seemsã > redundantãã > Code is <esc>[0;8*r where first number is 0, 1 or blank, and second numberã > is speed 0 for unlimited through 9 I think for 115200ããyou can use ansimation to slow it down or you can use ctrl+a codesãto delay it. ããi've done both ways and they work fine. ããthere's also .js code that slows it down that's been around for many years.ããjust please give the user a way to abort the display because long ansis getãannoying real fast.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
-
From
Android8675@VERT/SHODAN to
Digital Man on Fri Mar 30 11:05:42 2018
Re: Changing SyncTerm Display speed, and...ã By: Digital Man to Android8675 on Thu Mar 29 2018 05:51 pmãã >> So, trying to slow down my BBS from spitting out ANSI screens tooã >> quickly. ãã DM> The simplest thing would be to convert it to a Ctrl-A/.ASC file usingã DM> ans2asc and use the -delay option:ããI like that. does that basically make a bigger file so it takes longer to draw?ããeC already gave me some code that I just dropped into my logon.js, and it worksãgreat.ããHey, when logon.js does load("loadfonts.js");, kind of take a while? Does itãmake sense to drop a "loading fonts message somewhere in there..."ãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
echicken@VERT/ECBBS to
Android8675 on Fri Mar 30 16:55:29 2018
Re: Changing SyncTerm Display speed, and...ã By: Android8675 to Digital Man on Fri Mar 30 2018 11:05:42ãã DM>> The simplest thing would be to convert it to a Ctrl-A/.ASC fileã DM>> using ans2asc and use the -delay option:ãã An> eC already gave me some code that I just dropped into my logon.js, and itã An> works great.ããI'm not sure if I've ever used ans2asc, but I suppose it's much easier to useãDM's suggestion. (I'm not sure if that takes advantage of SyncTERM's nativeãspeed emulation feature though, which is probably the most accurate way ofãsimulating scrolling at a particular rate. I believe there's also some crap inãansiview for simulating this on non-SyncTERM terminals, with abortable output;ãcan dig that out if you want it.)ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Digital Man@VERT to
Android8675 on Fri Mar 30 15:53:32 2018
Re: Changing SyncTerm Display speed, and...ã By: Android8675 to Digital Man on Fri Mar 30 2018 11:05 amãã > Re: Changing SyncTerm Display speed, and...ã > By: Digital Man to Android8675 on Thu Mar 29 2018 05:51 pmã >ã > >> So, trying to slow down my BBS from spitting out ANSI screens tooã > >> quickly.ã >ã > DM> The simplest thing would be to convert it to a Ctrl-A/.ASC file usingã > DM> ans2asc and use the -delay option:ã >ã > I like that. does that basically make a bigger file so it takes longer toã > draw?ã >ã > eC already gave me some code that I just dropped into my logon.js, and itã > works great.ã >ã > Hey, when logon.js does load("loadfonts.js");, kind of take a while?ããIt sends up to 16KB, but that should happen pretty quick still.ãã > Does itã > make sense to drop a "loading fonts message somewhere in there..."ããPossibly. I'll look into it.ããã digital manããThis Is Spinal Tap quote #2:ãNigel Tufnel: Well, this piece is called "Lick My Love Pump".ãNorco, CA WX: 82.5øF, 34.0% humidity, 14 mph NE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
echicken on Fri Mar 30 15:55:50 2018
Re: Changing SyncTerm Display speed, and...ã By: echicken to Android8675 on Fri Mar 30 2018 04:55 pmãã > Re: Changing SyncTerm Display speed, and...ã > By: Android8675 to Digital Man on Fri Mar 30 2018 11:05:42ã >ã > DM>> The simplest thing would be to convert it to a Ctrl-A/.ASC fileã > DM>> using ans2asc and use the -delay option:ã >ã > An> eC already gave me some code that I just dropped into my logon.js, andã > An> it works great.ã >ã > I'm not sure if I've ever used ans2asc, but I suppose it's much easier toã > use DM's suggestion. (I'm not sure if that takes advantage of SyncTERM'sã > native speed emulation feature though, which is probably the most accurateã > way of simulating scrolling at a particular rate. I believe there's alsoã > some crap in ansiview for simulating this on non-SyncTERM terminals, withã > abortable output; can dig that out if you want it.)ããThe ans2asc -delay feature just adds additional "delay" Ctrl-A codes (at theãinterval the sysop desires, lower interval = more delays). It's not as accurateãas SyncTERM's speed emulation, but it's also terminal-independant.ãã digital manããThis Is Spinal Tap quote #45:ãI don't really think the end can be assessed as of itself as being the endãNorco, CA WX: 82.5øF, 34.0% humidity, 14 mph NE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Android8675@VERT/SHODAN to
echicken on Tue Apr 10 10:51:52 2018
Re: Changing SyncTerm Display speed, and...ã By: echicken to Android8675 on Fri Mar 30 2018 12:35 pmãã ec> It occurs to me that this could just as easily be a function inã ec> xtrn_sec.js or whatever you launch doors from. You'll need to modify itã ec> anyway, and this doesn't have to be its own script.ãã ec> function launch(code) {ã ec> bbs.exec_xtrn(code);ã ec> if (console.yesno('Display scores')) {ã ec> var f = new File(system.ctrl_dir + 'scores.ini');ã ec> f.open('r');ã ec> var ini = f.iniGetObject();ã ec> f.close();ã ec> if (ini[code]) {ã ec> console.clear(LIGHTGRAY);ã ec> console.printfile(ini[code]);ã ec> console.pause();ã ec> }ã ec> }ã ec> }ããThat's amazingly just what I was looking for.ããSo I could drop this in before main in xtrn_sec.js, replaceãbbs.exec_xtrn(prog_list[i].code); with launch(prog_list[i].code);...ããwhat's the format for scores.ini?ããdoorcode = filename?ããOut of curiousity, would this also display files from urls? For example, pullãthe score file from BBS Linksã(
http://games.bbslink.net/score.php?door=lord&type=ansi) or DoorParty or CoA,ãetc?ããã... A bird in the hand is safer than one overhead.ãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
echicken@VERT/ECBBS to
Android8675 on Tue Apr 10 15:45:39 2018
Re: Door Scores...ã By: Android8675 to echicken on Tue Apr 10 2018 10:51:52ãã An> what's the format for scores.ini?ãã An> doorcode = filename?ããI think that's correct. 'filename' probably needs to be a complete path to aãfile.ãã An> Out of curiousity, would this also display files from urls? For example,ããNo, that sample function will only display a file that exists on your localãfilesystem. It could be adapted though.ããload('http.js'); // add this near the top of your scriptããfunction launch(code) {ã bbs.exec_xtrn(code);ã if (console.yesno('Display scores')) {ã var f = new File(system.ctrl_dir + 'scores.ini');ã f.open('r');ã var ini = f.iniGetObject();ã f.close();ã if (ini[code]) {ã console.clear(BG_BLACK|LIGHTGRAY);ã if (ini[code].search(/^http/) > -1) {ã const http = new HTTPRequest();ã const ans = http.Get(ini[code]);ã console.putmsg(ans);ã } else {ã console.printfile(ini[code]);ã }ã console.pause();ã }ã }ã}ããThat might work. It'll assume that any value from the ini file beginning withã"http" is a URL to some file to download and display.ããWould be best to wrap your calls to launch() in a try ... catch block, sinceãthe HTTP request (or file access) might fail.ããYou could also put the config in ctrl/modopts.ini instead of its own file, andãuse modopts.js to load settings.ãã An> pull the score file from BBS LinksããI did recently make a thing for displaying BBSLink scores:ãã
https://github.com/echicken/bbslink-thingsããIt's a bit redundant to the example provided above, but it might be worthãlooking at.ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Android8675@VERT/SHODAN to
echicken on Tue Apr 10 16:11:02 2018
Re: Door Scores...ã By: echicken to Android8675 on Tue Apr 10 2018 03:45 pmããI was thinking something like this:ããfunction launch(code) {ã bbs.exec_xtrn(code);ã console.crlf();ã var f = new File(system.ctrl_dir + 'scores.ini');ã f.open('r');ã var ini = f.iniGetObject();ã f.close();ã if (ini[code]) {ã console.clear(BG_BLACKIGHTGRAY);ã if (console.yesno('Display score file')) {ã if (ini[code].search(/^http/) > -1) {ã const http = new HTTPRequest();ã const ans = http.Get(ini[code]);ã console.putmsg(ans);ã } else {ã console.printfile(ini[code]);ã }ã console.pause();ã }ã }ã}ããSo it'll first see if there's even an entry then ask if the player wants toãdisplay the score file? I'm tinkering with it now, will post when finished.ãã An>> pull the score file from BBS Linksãã ec> I did recently make a thing for displaying BBSLink scores:ãã ec>
https://github.com/echicken/bbslink-thingsãã ec> It's a bit redundant to the example provided above, but it might be worthã ec> looking at.ããI am looking at it now. I might even fork it, get some git practice, etc.ããThanks again,ã-A.ããã... Music is essentially useless, as life is.ãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
echicken@VERT/ECBBS to
Android8675 on Tue Apr 10 21:43:23 2018
Re: Door Scores...ã By: Android8675 to echicken on Tue Apr 10 2018 16:11:02ãã An> So it'll first see if there's even an entry then ask if the player wantsã An> to display the score file? I'm tinkering with it now, will post whenã An> finished. ããYep, you've got the right idea. You could also check if the score file existsã/ if the HTTP request succeeds (though this might cause a delay) beforeãbothering the user at all. If BBSLink, DoorParty, etc. all publish score filesãit might be worth turning this into a common module.ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Bill McGarrity@VERT/TEQUILAM to
echicken on Wed Apr 11 02:14:00 2018
echicken wrote to Android8675 on 04-10-18 21:43 <=-ãã ec> Re: Door Scores...ã ec> By: Android8675 to echicken on Tue Apr 10 2018 16:11:02ãã An> So it'll first see if there's even an entry then ask if the player wantsã An> to display the score file? I'm tinkering with it now, will post whenã An> finished.ãã ec> Yep, you've got the right idea. You could also check if the score fileã ec> exists / if the HTTP request succeeds (though this might cause a delay)ã ec> before bothering the user at all. If BBSLink, DoorParty, etc. allã ec> publish score files it might be worth turning this into a commonã ec> module.ããDoorParty offers .png files for download but it's basically the same principle.ãHere's the url for LORD at DoorParty..ããhttp://wiki.throwbackbbs.com/lib/exe/fetch.php?media=scores:rpg:lord.pngããã--ããBillããTelnet: tequilamockingbirdonline.netãWeb: bbs.tequilamockingbirdonline.netãFTP: ftp.tequilamockingbirdonline.net:2121ãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - Toms River, NJã
-
From
Android8675@VERT/SHODAN to
echicken on Wed Apr 11 15:23:55 2018
Re: Door Scores...ã By: echicken to Android8675 on Tue Apr 10 2018 09:43 pmãã An>> So it'll first see if there's even an entry then ask if the playerã An>> wants to display the score file? I'm tinkering with it now, willã An>> post when finished. ã ec> Yep, you've got the right idea. You could also check if the score fileã ec> exists / if the HTTP request succeeds (though this might cause a delay)ã ec> before bothering the user at all. If BBSLink, DoorParty, etc. all publishã ec> score files it might be worth turning this into a common module.ããfunction launch(code) {ã bbs.exec_xtrn(code);ã console.crlf();ã var f = new File(system.ctrl_dir + 'scores.ini');ã f.open('r');ã var ini = f.iniGetObject(ScoreFiles);ã f.close();ã if (ini[code]) {ã console.clear(BG_BLACKIGHTGRAY);ã if (console.yesno('Display score file')) {ã if (ini[code].search(/^http/) > -1) {ã const http = new HTTPRequest();ã const ans = http.Get(ini[code]);ã console.putmsg(ans);ã } else {ã console.printfile(ini[code]);ã }ã console.pause();ã }ã }ã}ããSo if there's an entry in the .ini [ScoreFiles] it'll prompt, otherwise it justãmoves on.ããStill testing. Next, multiple files, check that file/url exists beforeãprompting. I'm going to move it all to a module once it's working because Iãwant to turn this into a door launcher.ããUser starts GameãDisplay opening .asc file (History, or whatever)ãrun gameãDisplay score files if any after gameããGoing to expand Run Game to an actual Interactive Fiction Interpreter assumingãI can find open source code that'll do what I want it too.ã--ãAndroid8675@ShodansCoreãããã... The public is wonderfully tolerant. It forgives everything except genius.ãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
Android8675@VERT/SHODAN to
Bill McGarrity on Wed Apr 11 15:25:56 2018
-
From
Android8675@VERT/SHODAN to
echicken on Wed Apr 11 15:40:10 2018
Re: Door Scores...ã By: Android8675 to echicken on Wed Apr 11 2018 03:23 pmããOops...ããWeirdness: ReferenceError: ScoreFiles is not defined (ZORKI)ããI used try/catch on the above code. My .ini file looks like:ãã[ScoreFiles]ãZORKI = ../xtrn/if/DATA/zork1-scores.ascãZORKII = ../xtrn/if/DATA/zork2-scores.ascããcode is:ããtry {ãlaunch(prog_list[i].code);ã}ãcatch(e) {ãconsole.writeln("Weirdness: " + e + "(" + prog_list[i].code + ")");ãlog("ERR:" + e + "(" + prog_list[i].code + ")");ã}ãããfunction launch(code) {ãbbs.exec_xtrn(code);ãconsole.crlf();ãvar f = new File(system.ctrl_dir + 'scores.ini');ãf.open('r');ãvar ini = f.iniGetObject(ScoreFiles);ãf.close();ãif (ini[code]) {ãconsole.clear(BG_BLACKIGHTGRAY);ãif (console.yesno('Display score file')) {ãif (ini[code].search(/^http/) > -1) {ãconst http = new HTTPRequest();ãconst ans = http.Get(ini[code]);ãconsole.putmsg(ans);ã} else {ãconsole.printfile(ini[code]);ã}ãconsole.pause();ã}ã}ã}ã--ãAndroid8675@ShodansCoreãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
Bill McGarrity@VERT/TEQUILAM to
Android8675 on Wed Apr 11 19:34:00 2018
Android8675 wrote to Bill McGarrity on 04-11-18 15:25 <=-ãã An> Re: Door Scores...ã An> By: Bill McGarrity to echicken on Wed Apr 11 2018 02:14 amãã BM> DoorParty offers .png files for download but it's basically the sameã BM> principle. Here's the url for LORD at DoorParty..ã BM> http://wiki.throwbackbbs.com/lib/exe/fetch.php?media=scores:rpg:lord.pngãã An> Serve up the raw .ans! ;)ãããLOL... tell him that!!! ;)ããã--ããBillããTelnet: tequilamockingbirdonline.netãWeb: bbs.tequilamockingbirdonline.netãFTP: ftp.tequilamockingbirdonline.net:2121ãIRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697ãRadio: radio.tequilamockingbirdonline.net:8010/liveããã... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!ã--- MultiMail/Win32 v0.50ã þ Synchronet þ TequilaMockingbird Online - Toms River, NJã
-
From
echicken@VERT/ECBBS to
Android8675 on Wed Apr 11 23:03:45 2018
Re: Door Scores...ã By: Android8675 to echicken on Wed Apr 11 2018 15:40:10ãã An> Weirdness: ReferenceError: ScoreFiles is not defined (ZORKI)ãã An> [ScoreFiles]ã An> ZORKI = ../xtrn/if/DATA/zork1-scores.ascã An> ZORKII = ../xtrn/if/DATA/zork2-scores.ascãã An> console.writeln("Weirdness: " + e + "(" + prog_list[i].code + ")");ãã An> var ini = f.iniGetObject(ScoreFiles);ããYou should be providing a string as an argument:ããvar ini = f.iniGetObject('ScoreFiles');ããInstead you're referencing a variable (ScoreFiles, sans quotes) which has notãbeen defined.ããYou could also 'fix' this error by adding this line above the f.iniGetObjectãone:ããvar ScoreFiles = 'ScoreFiles';ãã(That's a dumb solution, but I just added it to illustrate the problem. Nowãyou would have a variable named ScoreFiles defined, and assigned to it would beãthe string 'ScoreFiles', which would be a valid argument to f.iniGetObject.)ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
echicken@VERT/ECBBS to
Android8675 on Wed Apr 11 23:05:55 2018
Re: Door Scores...ã By: Android8675 to Bill McGarrity on Wed Apr 11 2018 15:25:56ãã An> Serve up the raw .ans! ;)ããI'm sure that could be arranged. We can bug maskreet about it; the .ans filesãare probably already being copied to his webserver so that they can be putãthrough ansilove (I'm assuming that's what he's using).ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Android8675@VERT/SHODAN to
echicken on Thu Apr 12 08:13:37 2018
Re: Door Scores...ã By: echicken to Android8675 on Wed Apr 11 2018 11:03 pmãã ec> You should be providing a string as an argument:ã ec> var ini = f.iniGetObject('ScoreFiles');ãã ec> You could also 'fix' this error by adding this line above theã ec> f.iniGetObject one:ã ec> var ScoreFiles = 'ScoreFiles';ããLook at you... Prof. eChickenããThanks.ã--ãAndroid8675@ShodansCoreãããã... The English may not like music, but they absolutely love the noise it makesãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
Android8675@VERT/SHODAN to
maskreet on Thu Apr 12 08:15:45 2018
Re: Door Scores...ã By: echicken to Android8675 on Wed Apr 11 2018 11:05 pmãã An>> Serve up the raw .ans! ;)ãã ec> I'm sure that could be arranged. We can bug maskreet about it; the .ansã ec> files are probably already being copied to his webserver so that they canã ec> be put through ansilove (I'm assuming that's what he's using).ããI love that ansilove.js. I want to use it with the web, just figuring out how Iãwant it to look.ããeC, your ansiview, does it have a webpage for ecwebv4?ã--ãAndroid8675@ShodansCoreãããã... To know the world one must construct it.ãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
Android8675@VERT/SHODAN to
echicken on Thu Apr 12 09:02:01 2018
Re: Door Scores...ã By: Android8675 to echicken on Thu Apr 12 2018 08:13 amãã An> Re: Door Scores...ã An> By: echicken to Android8675 on Wed Apr 11 2018 11:03 pmãã ec>> You should be providing a string as an argument:ã ec>> var ini = f.iniGetObject('ScoreFiles');ããOK, that resolved that problem, but it seems that the internal code read isãcase sensitive. For example if the INI file contains:ããZORKI = filenameããthat won't work, butããzorki = filenameããwill work. That just something I have to make a note about?ããI figured that out by just printing the code passed to theãfunction. So yeah me.ã--ãAndroid8675@ShodansCoreãã---ã þ Synchronet þ Shodan's Core @ ShodansCore.comã
-
From
echicken@VERT/ECBBS to
Android8675 on Thu Apr 12 12:40:22 2018
Re: Door Scores...ã By: Android8675 to maskreet on Thu Apr 12 2018 08:15:45ãã An> eC, your ansiview, does it have a webpage for ecwebv4?ããNot at the moment, but it probably will at some point.ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
echicken@VERT/ECBBS to
Android8675 on Thu Apr 12 12:57:11 2018
Re: Door Scores...ã By: Android8675 to echicken on Thu Apr 12 2018 09:02:01ãã An> OK, that resolved that problem, but it seems that the internal code readã An> is case sensitive. For example if the INI file contains:ãã An> ZORKI = filenameãã An> that won't work, butãã An> zorki = filenameããI remember hearing that it's supposed to be case-insensitive or uppercase, butãthere seems to be some inconsistency. When I dump a list of all internal codesãfor external programs on my system (via JS) they are all lowercase.ãã An> will work. That just something I have to make a note about?ããMight be easiest to write a script to dump information on your externalãprograms so you'll know what to put in the ini file. You can put this in aãfile and run it via jsexec:ããxtrn_area.sec_list.forEach(ã function (e) {ã writeln(e.name + ', ' + e.code);ã e.prog_list.forEach(ã function (ee) {ã writeln('\t' + ee.name + ', ' + ee.code);ã }ã );ã }ã);ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã