quote:
Originally posted by BrutuZ
The solution for the no saving problem was given somewhere in this topic, if i remember well you must search you Configuration.js file for all occourences of Yes and change them into true.
BTW. I took the liberty to edit the script code myself and it seems to be working fine with the (not so) recent changes in Xfire. This is what i got, feel free to do it too, but do it at your own risk (always wanted to say that ^^).
First, on your General Functions.js, add the following lines (beggining or end of the file, doesn't really matters):
code:
...
And voilá, this may do the trick and your AppMon+ should be recognizing Xfire games again =)
Thanks BrutuZ for that script, but I found some issue in. The server information was wrong, if the game don't have server, the script was take the next server info on the next game in the list. So, I think I fixed it well with my edit:
General Functions.js (Start read at the [Game#] and end at the first "Nothing" as it used to split each game)
code:
//code by SpunkyLoveMuff, fixed by mrbuerger
function ReadINI(path, header, key){
var bFound = false, i = -1, out = "", s = "", fso, f, t;
try {
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile(path, 1, false);
while (!f.AtEndOfStream){
s = f.readline();
if (s.indexOf(";") == 0){
}else{
if (s.toLowerCase() == "\[" + header.toLowerCase() + "\]") {
bFound = true;
}
if (s.toLowerCase() == "") {
bFound = false;
}
if (bFound) {
i = s.indexOf("=");
if (i > -1) {
t = s.substring(0, i);
if (key.toLowerCase() == t.toLowerCase()){
out = s.substring(i + 1, s.length);
Debug.Trace(out);
break;
}
}
}
}
}
f.close();
f = null;
fso = null;
}
catch(e){
out = e.description;
}
return out;
}
The replacement in
AppMon.js (Don't display empty server detail [] anymore)
code:
status = ReadINI(inipath,'STATUS','Summary');
Debug.Trace(status);
if(status=='In Game'){
gameno = ReadINI(inipath,'STATUS','InGame');
xfireingame = true;
gamename = ReadINI(inipath,gameno,'LongName');
server = ReadINI(inipath,gameno,'Server');
Debug.trace(server);
if(server){
xfmessage = gamename+' ['+server+']';
}else{
xfmessage = gamename;
}
icon = 'Games';
if(!found){ message = xfmessage; }
else{ message+= ' | '+xfmessage; }
found = true;
statuschangelist[statuschangelist.length] = xfirestatus;
}else{
xfireingame = false;
}