Apparently the limitation for grimstone masks is not just to Ed (though he has his own message) but to all non-standard classes? Vampyres certainly get a message saying ""You can't use this item as a non-standard class. Sorry.".
Perhaps zlib needs a “since” directive.
If zarqon could update the script to go to https://kolmafia.us/threads/post.3640/ where 3640 is the ID it should load whatever thread fine.
Would you consider modifying the version checking to either stop checking a URL at the forum or possibly munging an old style URL to the correct one? (That was possible on another vBulletin to XenForo upgrade and I can help dig if you need it).
vprint()
to accept different text colors for light and dark modes:boolean vprint(string message, string light_color, string dark_color, int level) {
return vprint(message, _is_dark_mode() ? dark_color : light_color, level);
}
boolean _is_dark_mode() {
return create_matcher(
"carbon|cobalt|darcula|dark|deepocean|dracula|highcontrast|mono[ck]ai|night|nord|oceanic|spacegray|vuesion",
get_property("swingLookAndFeel").to_lower_case()
).find();
}
KoLMafia has itNow that Dark Mode is coming to KoLmafia (r20534), it would be nice to extendvprint()
to accept different text colors for light and dark modes:
Code:boolean vprint(string message, string light_color, string dark_color, int level) { return vprint(message, _is_dark_mode() ? dark_color : light_color, level); }
Since we don't have built-in support for checking dark mode yet, here's a backwards-compatible function:
KoLMafia has it
public static Boolean isDarkTheme()
What do you need to get that into ash/js?
What version/revision of KoLmafia are you using? You'll have to download a newer version from https://ci.kolmafia.usI've been trying to use volcano_mining.ash but I keep getting the error message
Function 'is_dark_mode( )' undefined. This script may require a more recent version of KoLmafia and/or its supporting scripts. (zlib.ash, line 60)
Ah, that fixed it. Tysm!What version/revision of KoLmafia are you using? You'll have to download a newer version from https://ci.kolmafia.us
Someone is doing something wrong somewhere along the way, not sure where. But I too, was getting errors from zlib telling me that is_dark_mode is causing problems.
So here are the steps I took:
Is mafia up to date? Help -> Copyright Information -> says version 20.7, same as my jar file is named
Okay so I'll look to see what the latest version is from sourcefourge... -> says download Kolmafia-20.7.exe, checks out.
Is zlib updated? script manager -> update script
still doesn't solve the problem.
So just to clarify, I did in fact solve the problem by downloading the latest kolmafia jar, but I feel strongly that those steps should have been enough to identify the problem. Either the version information is not being properly kept up to date, or zlib itself is relying on features in a daily build rather than a normal release (and thus breaking for those that prefer stable releases rather than dailies). Is this just a problem with mafia development that has nothing to do with zlib dev?