PDA

View Full Version : clan_log.ash -- Interface Overhaul



heeheehee
07-18-2010, 09:28 PM
Requires ZLib (http://kolmafia.us/showthread.php?2072).

Note: In order for this script to be of any use, you'll need access to the activity log. Also, just like all other scripts in this forum, you'll need to download this to your \relay folder and have the proper preference checked.

Since the native clan log view wasn't particularly useful, I decided to work on an overhaul. First things first, each section's entries are sorted by player name then date, as opposed to just date. Second, the various sections are collapsible, and there's a [toggle all] link if you want to toggle all of the subsections within a particular section. Finally, the biggest chunk of this override adds more information to the Stash Activity section.

The symbols are a bit funky, but let's decode them: μ represents meat (as per Zarqon's suggestion some time back); κ, karma; ζ, zero-karma items; δ, days the stash was used. As such, κ/δ represents average karma usage per day.

Since the script parses all the data anyway, I then added a few tables with the data (like leaderboards, I guess) to the bottom, in case you're interested.

And finally, if you want to see the classic view, you can just click on the little link at the bottom.

8/20/2010: Fixed issue with players showing up multiple times because of changed name capitalization. Really ugly bit of code, but I can't see a more elegant solution.

icon315
07-18-2010, 09:41 PM
the toggle all does not work.....also could you put some sort of key to the top....so as not to reference here everytime i forget

heeheehee
07-18-2010, 09:54 PM
[toggle all] toggles the subsections. You'll have to click on the actual section name to toggle the section to see the results.

icon315
07-19-2010, 12:50 AM
ah i see it's a real step up from the one that comes with mafia's clan manager which prints out something like this (http://iconnoon.webs.com/stashlog.htm)

lostcalpolydude
07-19-2010, 04:30 AM
You might want to mention that the script needs zlib. If I didn't read this forum constantly AND look at the CLI to notice the red error messages, I would have never figured it out.

heeheehee
07-19-2010, 04:34 AM
Erm, wow, how'd I forget about that?

Jippofarmer
08-05-2010, 12:19 PM
Really awesome script, lets me see who's taking more than they should from the stash! although is there a way to have the key of icons on the relay page too, or even a way to toggle it between the icons or just saying it?

heeheehee
08-05-2010, 05:27 PM
Fair enough, posted an updated version with a key.