Ascension counts

ckb

Minion
Staff member
I wanted an easy count of all the ascentions I have done, parsed by class. I am upto 185 now, and I have nearly all the skills, so I want to choose a class I may have been neglecting. I did this quick, and it could probably be more efficient, but it parses the html from ascensionhistory.php?who="+my_id() AND ascensionhistory.php?who="+my_id()+"&prens13=1

This is version 1.0, and it just spits on class and # of runs.
I might add HC vs. SC later... or paths... maybe. If someone else does it for me, that would be cool too. ;)

Feel free to use it, modify it, steal it, whatever. If you are bcc and want to add this info to your snapshot maker, that would be dope.

Note that it lists two total numbers, one is a sum of all the runs counted, and one is my_ascensions() - these may be different if you suffered through white wednesday. If they are wrong for another reason (or if something else is wrong) let me know - I have only tested it with my main.

Enjoy,
ckb
 

Attachments

  • asc-count_3.ash
    2.7 KB · Views: 53
Last edited:

Grotfang

Developer
Not going to do it for you, but the following gives you a nice framework to build ascension summaries from. The matcher (+ documentation beneath) are the main things to note, but I include an example of how to build a summary similar to the one you produce above.

Code:
int [string] classCount;

matcher mat = create_matcher( "<td class=small valign=center>(\\d+)   </td><td height=30 class=small valign=center>(.+?)  </td><td class=small valign=center><span title=\"Level at Ascension: (\\d+)\">(\\d+)</span>   </td><td class=small valign=center><img src=\"http:\/\/images.kingdomofloathing.com/itemimages/(.+?).gif\" width=30 height=30 alt=\"(.+?)\" title=\"(.+?)\"></td><td class=small valign=center>(.+?)  </td><td class=small valign=center><span title='Total Turns: (.+?)'>(.+?)</span></td><td class=small valign=center><span title='Total Days: (.+?)'>(.+?)</span></td><td>(.+?)</td><td class=small valign=center>(.+?)</td>" , 
	visit_url( "ascensionhistory.php?back=self&who=" + my_id() ) + visit_url( "ascensionhistory.php?who=" + my_id() + "&prens13=1" ) );
/*
	group 1 = asc no
	group 2 = date
	group 3 = level at ascension
	group 4 = level
	group 5 = class img
	group 6 = class name
	group 7 = class name
	group 8 = sign
	group 9 = total turns
	group 10 = turns
	group 11 = total days
	group 12 = days
	group 13 = familiar info
	group 14 = restrictions
*/
while( mat.find() )
{
	switch( mat.group( 6 ) )
	{
		case "Seal Clubber":
			classCount["Seal Clubber"] = classCount["Seal Clubber"] + 1;
			break;
		case "Turtle Tamer":
			classCount["Turtle Tamer"] = classCount["Turtle Tamer"] + 1;
			break;
		case "Pastamancer":
			classCount["Pastamancer"] = classCount["Pastamancer"] + 1;
			break;
		case "Sauceror":
			classCount["Sauceror"] = classCount["Sauceror"] + 1;
			break;
		case "Accordion Thief":
			classCount["Accordion Thief"] = classCount["Accordion Thief"] + 1;
			break;
		case "Disco Bandit":
			classCount["Disco Bandit"] = classCount["Disco Bandit"] + 1;
			break;
		default:
			break;
	}
}

foreach i in classCount
{
	print( i + ": " + classCount[i] );
}
 

kain

Member
neat

-edit- much less impressive if you make me break out HC/BM runs ... what, I totally didn't do ONLY the bare minimum.
Code:
[color=blue]CLASS - TOTAL RUNS - HARDCORE - BADMOON
Seal Clubber - 29 - 3 - 1
Turtle Tamer - 43 - 3 - 1
Pastamancer - 47 - 4 - 1
Saucer - 70 - 3 - 1
Disco Bandit - 34 - 7 - 1
Accordion Thief - 48 - 6 - 1
[/color][color=purple]
total # runs counted = 271
total runs done = 271[/color]
 
Last edited:

Bale

Minion
That IS very impressive. Mine is not nearly so awesome.

Code:
[COLOR="#0000ff"]Seal Clubber runs = 21
Turtle Tamer runs = 24
Pastamancer runs = 20
Saucer runs = 19
Disco Bandit runs = 25
Accordion Thief runs = 31[/COLOR]
[COLOR="#800080"]total # runs counted = 140
total runs done = 140[/COLOR]

I'm a bit surprised that Sauceror is the least common. I guess it's because I took a while to warm up to them, so they lacked in my early career. ATs are the most common because I'm lazy.
 

slyz

Developer
I'm a pretty lazy player (but when I ascend, I really try to make it count!)
Code:
[color=blue]Seal Clubber runs = 8
Turtle Tamer runs = 7
Pastamancer runs = 6
Saucer runs = 9
Disco Bandit runs = 8
Accordion Thief runs = 15[/color][color=purple]
total # runs counted = 53
total runs done = 52[/color]
Now that I'm almost done perming the sauce spellslinging suit, I think half my runs will be S from now on.
 
Last edited:

Winterbay

Active member
Code:
[color=blue]Seal Clubber runs = 18
Turtle     Tamer runs = 11
Pastamancer runs = 7
Saucer     runs = 12
Disco Bandit runs = 7
Accordion     Thief runs = 9[/color][color=purple]
total # runs counted = 64
total     runs done = 67[/color]

I wonder why I've done so many SC runs when I find Myst classes so much more fun to play...
 

Winterbay

Active member
I think I've only done two hellseal powered basement runs and the one I just did was the second one. Most basement runs have been done while I was gunning for those pesky level 30 trophies anyway.
 

ckb

Minion
Staff member
I might add HC vs. SC later... or paths... maybe. If someone else does it for me, that would be cool too. ;)

Hey, I did go an add some more details. It would look better if it used a monospaced font in Kolmafia, but it is easy enough to read as it is. I added the new version to the first post.

Oh, and here's my results:

Code:
[color=blue]CLASS - TOTAL RUNS - HARDCORE - BADMOON
Seal Clubber - 32 - 27 - 2
Turtle Tamer - 27 - 26     - 1
Pastamancer - 26 - 24 - 1
Saucer - 33 - 29 - 1
Disco Bandit - 31 - 28 - 1
Accordion Thief - 37 - 29 - 1 [/color]
[color=purple]total # runs counted =     186
total runs done = 187[/color]

ckb
 
Last edited:

fronobulax

Developer
Staff member
CLASS - TOTAL RUNS - HARDCORE - BADMOON
Seal Clubber - 15 - 15 - 1
Turtle Tamer - 9 - 8 - 1
Pastamancer - 10 - 10 - 1
Saucer - 12 - 11 - 1
Disco Bandit - 10 - 10 - 1
Accordion Thief - 6 - 5 - 1
total # runs counted = 62
total runs done = 62

Thanks. I am wondering about Seal Clubber, Pastamancer and Disco Bandit where the HC + BM > Total. This agrees with the total of 62 runs, but I haven't had time to figure out what might be wrong.
 

heeheehee

Developer
Staff member
I'd say more likely is that BM is a subset of HC (so counted as both HC and BM, but only counted once toward the total), and there are some runs which were SC, so that's why the total isn't always equal to HC.
 

ckb

Minion
Staff member
I'd say more likely is that BM is a subset of HC (so counted as both HC and BM, but only counted once toward the total), and there are some runs which were SC, so that's why the total isn't always equal to HC.

Yup. BM is both BM and HC, so it counts as both. I could change this I suppose... but it is in line with the total - sub - sub line of thought I had going.


And thanks for the print_html() tip StDoodle. Maybe I will pretty it up a bit.

OK, there - are you happy now. You made me make it look awesome. versions 3 up on post 1

ckb
 
Last edited:
Top