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?
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...
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... :/
Sysop: | Sestout |
---|---|
Location: | San Tan Valley, AZ |
Users: | 3 |
Nodes: | 10 (0 / 10) |
Uptime: | 218:13:15 |
Calls: | 120 |
Messages: | 14,301 |