Subj : Door Scores...
To   : echicken
From : Android8675
Date : Tue Apr 10 2018 10:51 am

 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