Subj : Door Scores...
To   : Android8675
From : Bill McGarrity
Date : Tue Apr 10 2018 06:52 pm

-=> Android8675 wrote to echicken on 04-10-18 10:51 <=-

An>   Re: Changing SyncTerm Display speed, and...
An>   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> }

An> That's amazingly just what I was looking for.

An> So I could drop this in before main in xtrn_sec.js, replace
An> bbs.exec_xtrn(prog_list[i].code); with launch(prog_list[i].code);...

An> what's the format for scores.ini?

An> doorcode = filename?

An> Out of curiousity, would this also display files from urls? For
An> example, pull the score file from BBS Links
An> (http://games.bbslink.net/score.php?door=lord&type=ansi) or DoorParty
An> 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