Results 1 to 5 of 5

Thread: Run Summary

  1. #1
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    780

    Default Run Summary

    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 Code:
    void RunSummary() {
        
    string [intqlc;
        
    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 by ckb; 01-17-2017 at 08:50 PM.

  2. #2
    Senior Member
    Join Date
    Jan 2012
    Location
    Texas
    Posts
    385

    Default

    Can you make an actual script that does this I would love to use it.

  3. #3

    Default

    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.

  4. #4
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    780

    Default

    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.

  5. #5
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Not without adding
    Code:
    void main() {
    RunSummary();
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •