Subj : Door Scores...
To   : echicken
From : Android8675
Date : Wed Apr 11 2018 03:40 pm

 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