Did something update in mafia to cause the change? looks like zlib hasn't been updated in a month or so
I expect that line is from one of the data files (that anyone can update) rather than the script.
Did something update in mafia to cause the change? looks like zlib hasn't been updated in a month or so
They're compiled into the jar though right? I don't have any overridden
> ash import <zlib.ash>; string res = "buddy bjorn"; foreach it in $items[] { if(index_of(to_string(it),",") != -1) res = list_add(res, to_string(it)); } print(res); print(""); print(normalized(res, "list of item"));
buddy bjorn, Happy Birthday, Claude! cake, "I Love Me, Vol. I", Staff of Ed, almost, Maxing, Relaxing, A Crimbo Carol, Ch. 1, A Crimbo Carol, Ch. 2, A Crimbo Carol, Ch. 3, A Crimbo Carol, Ch. 4, A Crimbo Carol, Ch. 5, A Crimbo Carol, Ch. 6, Victor, the Insult Comic Hellhound Puppet, myrrh-soaked, chocolate-covered bacon bath ball, Notes from the Elfpocalypse, Chapter I, Notes from the Elfpocalypse, Chapter II, Notes from the Elfpocalypse, Chapter III, Notes from the Elfpocalypse, Chapter IV, Notes from the Elfpocalypse, Chapter V, Notes from the Elfpocalypse, Chapter VI, holy bomb, batman, A Crimbo Carol, Ch. 1 (used), A Crimbo Carol, Ch. 2 (used), A Crimbo Carol, Ch. 3 (used), A Crimbo Carol, Ch. 4 (used), A Crimbo Carol, Ch. 5 (used), A Crimbo Carol, Ch. 6 (used), Aye Aye, Captain, Aye Aye, Tooth Tooth, Oh, the Humanitini, Earth, Wind and Firewater, tiny plastic Hank North, Photojournalist, Chef Boy, R&D's business card, Irish Coffee, English Heart, Ouija Board, Ouija Board, "2 Love Me, Vol. 2", History's Most Offensive Jokes, Vol. IX, Trash, a Memoir, 1,970 carat gold
Buddy Bjorn, Happy Birthday, Claude! cake, Happy Birthday, Claude! cake, "I Love Me, Vol. I", "I Love Me, Vol. I", Staff of Ed, none, Maxing, Relaxing, Maxing, Relaxing, none, none, none, none, none, none, none, none, none, none, none, none, Victor, the Insult Comic Hellhound Puppet, Victor, the Insult Comic Hellhound Puppet, myrrh-soaked, chocolate-covered bacon bath ball, myrrh-soaked, chocolate-covered bacon bath ball, none, none, none, none, none, Notes from the Elfpocalypse, Chapter III, none, Notes from the Elfpocalypse, Chapter IV, none, none, none, Notes from the Elfpocalypse, Chapter VI, holy bomb, batman, holy bomb, batman, none, A Crimbo Carol, Ch. 1 (used), none, A Crimbo Carol, Ch. 2 (used), none, A Crimbo Carol, Ch. 3 (used), none, A Crimbo Carol, Ch. 4 (used), none, A Crimbo Carol, Ch. 5 (used), none, A Crimbo Carol, Ch. 6 (used), Aye Aye, none, Aye Aye, Aye Aye, Tooth Tooth, Oh, the Humanitini, Oh, the Humanitini, none, Earth, Wind and Firewater, tiny plastic Hank North, Photojournalist, tiny plastic Hank North, Photojournalist, Chef Boy, R&D's business card, Chef Boy, R&D's business card, Irish Coffee, English Heart, Irish Coffee, English Heart, Ouija Board, Ouija Board, Ouija Board, Ouija Board, "2 Love Me, Vol. 2", "2 Love Me, Vol. 2", History's Most Offensive Jokes, Vol. IX, History's Most Offensive Jokes, Vol. IX, none, Trash, a Memoir, 1,970 carat gold
Returned: void
Also:
Function Added
This update also adds a new (to Zlib) function:
boolean qprop(string test)
...
Enjoy!
if (zv[proj].vdate == today_to_string()) return "";
[B][U]--->>>> zv[proj].vdate = today_to_string();[/U][/B]
vprint_html("Checking for updates (running <a href='http://kolmafia.us/showthread.php?t="+thread+"' target='_blank'>"+soft+"</a> rev. "+svn_info(proj).revision+")...",1);
if (!svn_at_head(proj)) {
cli_execute("svn update " + proj);
msg.append(soft+" has been updated from r"+zv[proj].ver+" to r"+svn_info(proj).revision+". The next time it is run, it will be current.");
}
[B][U]--->>>> //zv[proj].vdate = today_to_string();[/U][/B]
Good idea.
I've been getting the same error today and was looking for a way to gracefully fail rather than stop automation, but didn't come up with anything. Unfortunately there's no way to prevent an abort here because svn_at_head() triggers a hard abort when it can't connect, even though the function's return value is captured. Your suggestion here will at least drastically reduce the failures and make it possible for the script to work when you try again.
The fun part here is that since Sourceforge is evidently down, I can't commit the fix.
Since there's no particularly appropriate forum for library scripts, I accept your moving of a script which doesn't provide information but is intended as a tool for scripters from Scripting Discussion to Informational Scripts.
void load_kmail(string calledby) { // loads all of your inbox (up to 100) into the global "mail"
mail.clear(); // optionally, specify your script in "calledby"
// matcher k = create_matcher("'id' =\\> '(\\d+)',\\s+'type' =\\> '(.+?)',\\s+'fromid' =\\> '(-?\\d+)',\\s+'azunixtime' =\\> '(\\d+)',\\s+'message' =\\> '(.+?)',\\s+'fromname' =\\> '(.+?)',\\s+'localtime' =\\> '(.+?)'"
// ,visit_url("api.php?pwd&what=kmail&format=php&count=100&for="+url_encode(calledby)));
// heeheehee's JSON matcher
matcher k = create_matcher('"id":"(\\d+)","type":"(.+?)","fromid":"(-?\\d+)","azunixtime":"(\\d+)","message":"(.+?)","fromname":"(.+?)","localtime":"(.+?)"'
,visit_url("api.php?pwd&what=kmail&count=100&for="+url_encode(calledby)));
int n;
while (k.find()) {
n = count(mail);
mail[n].id = to_int(k.group(1));
mail[n].type = k.group(2);
mail[n].fromid = to_int(k.group(3));
mail[n].azunixtime = to_int(k.group(4));
matcher mbits = create_matcher("(.*?)\\<center\\>(.+?)$",k.group(5).replace_string("\\'","'"));
if (mbits.find()) {
mail[n].meat = extract_meat(mbits.group(2));
mail[n].items = extract_items(mbits.group(2));
[COLOR=#ff0000][B] mail[n].message = mbits.group(to_int(mail[n].meat > 0 || count(mail[n].items) > 0));[/B][/COLOR]
} else mail[n].message = k.group(5);
mail[n].fromname = k.group(6);
mail[n].localtime = replace_string(k.group(7),"\\","");
}
}