Run Summary

ckb

Minion
Staff member
As I work on my 2017 Standard Ascension script I found it useful to get a summary of how the run went down, and where adventures were spent. This little function will spit out a data file of where each adventure was spent for later review or analysis.

I put this in my kingLiberatedScript

PHP:
void RunSummary() {
	string [int] qlc;
	string runlog = "";
	for ii from my_daycount() downto 1 {
		runlog += session_logs(my_daycount())[ii-1];
	}
	runlog = substring(runlog,index_of(runlog,"Beginning New Ascension"));
	
	matcher mrl = create_matcher("\\[(\\d+?)\\] (.+?)\n",runlog);
	while (find(mrl)) {
		qlc[group(mrl,1).to_int()] = group(mrl,2);
	}
	
	string out = my_name()+"-std_"+today_to_string()+".txt";
	print("run summary saved to "+out,"blue");
	map_to_file(qlc,out);
	
}


As a side note, this started because I wanted some run analysis other than the more human-readable but less machine-analysis capable AscensionLogVisualizer

Adding more detail to this RunSummary(), possibly to replicate some of the additional metrics from the AscensionLogVisualizer might be a thing.
 
Last edited:
Open any simple text editor (Notepad will do), copy-paste the code into the new file, save it in your scripts folder as whatever.ash, and you're all set.
 
Also, once you do that, add this to the CLI:
set kingLiberatedScript=whatever.ash

This will run the script automatically after you complete your run.
 
Back
Top