• Door Scores...

    From Bill McGarrity@VERT/TEQUILAM to Android8675 on Tue Apr 10 18:52:00 2018
    Android8675 wrote to echicken on 04-10-18 10:51 <=-

    Re: Changing SyncTerm Display speed, and...
    By: echicken to Android8675 on Fri Mar 30 2018 12:35 pm

    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();
    }
    }
    }

    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?

    He's already done this for me and it works like a charm. It's on his github as: bbslink-things. Very easy to setup...

    Looks like he answered you already... :)


    --- MultiMail/Win32 v0.50
    ■ Synchronet ■ TequilaMockingbird Online - Toms River, NJ
  • From Android8675@VERT/SHODAN to Bill McGarrity on Wed Apr 11 15:13:21 2018
    Re: Door Scores...
    By: Bill McGarrity to Android8675 on Tue Apr 10 2018 06:52 pm

    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?

    He's already done this for me and it works like a charm. It's on his github as: bbslink-things. Very easy to setup...

    Yep, got that. I'm tinkering with this other version in xtrn_sec.js. I may move everything to it's own independant program. Want to get it working how I like it first. Going to have an option for multiple files, and something that works with the web eventaully. I hope.
    --
    Android8675@ShodansCore



    ... A bachelor never makes the same mistake once.

    ---
    ■ 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:13 <=-

    Re: Door Scores...
    By: Bill McGarrity to Android8675 on Tue Apr 10 2018 06:52 pm

    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?

    He's already done this for me and it works like a charm. It's on his github as: bbslink-things. Very easy to setup...

    Yep, got that. I'm tinkering with this other version in xtrn_sec.js. I
    may move everything to it's own independant program. Want to get it working how I like it first. Going to have an option for multiple
    files, and something that works with the web eventaully. I hope.

    I noticed that in your discussion with DM. I'm just starting to get the hang of js and hopefully I'll be doing self-upgrades in the future. Slow process though... :/


    --

    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 Bill McGarrity on Thu Apr 12 08:11:58 2018
    Re: Door Scores...
    By: Bill McGarrity to Android8675 on Wed Apr 11 2018 07:34 pm

    I noticed that in your discussion with DM. I'm just starting to get the hang of js and hopefully I'll be doing self-upgrades in the future. Slow process though... :/

    Best things are usually a slow process. I just wish I had more time to invest. --
    Android8675@ShodansCore



    ... Genius is one per cent inspiration and ninety-nine per cent perspiration.

    ---
    ■ Synchronet ■ Shodan's Core @ ShodansCore.com