Testing stats

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny

Testing stats

Postby Biggetje » Sun Sep 18, 2016 11:17 am

Hey, I was wondering if there was a quick/better way to test custom stats I made.

What I do right now is I build the stat, then I go into reports, add the stat there and check the values (for example 84/118)

Then I go to results, manually set all the filters to reproduce the situation I made a stat for, and then check if I have the same amount of hands.



It just seems quite time consuming to set the filters each time. Is there a better way? Can I somehow access the hands (in this case the 84 situations where it occurred) directly? That way I could click a few random hands and check if they're showing what I want.
Biggetje
 
Posts: 25
Joined: Mon Mar 24, 2008 6:06 pm

Re: Testing stats

Postby 4StarGen » Sun Sep 18, 2016 4:09 pm

The best way to test the stats is to make a hand stat, not a player stat, with the exact same expression without sum().
Image
Then you have to format the stat like this
Image
format_bool(this,'check')
then add the stat in you hand report, then you can check whether the hands fullfil your requirements or not.
Image

GL
4StarGen
 
Posts: 915
Joined: Sat Mar 08, 2014 6:58 am

Re: Testing stats

Postby WhiteRider » Mon Sep 19, 2016 3:18 am

You can also use the inner part of a your column expressions as custom filters in My Reports.
Create a new Hands report and click the blue Filters link and choose 'expression filters'.
From one of your columns copy the 'expression' expression part and paste it in here.

e.g. If you wanted to test steal actions (using the built-in Att to Steal stat as an example) you'd take the actions column (cnt_steal_att) expression which is:
sum(if[cash_hand_player_statistics.flg_steal_att, 1, 0])
..and copy the bold part to the expression filter:

cash_hand_player_statistics.flg_steal_att

You can repeat this for the actions and opportunities expressions separately to see the individual hands.
WhiteRider
Moderator
 
Posts: 53624
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Testing stats

Postby Biggetje » Mon Sep 19, 2016 10:00 am

Really helpful stuff, thanks a ton!
Biggetje
 
Posts: 25
Joined: Mon Mar 24, 2008 6:06 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: DJSpinThat and 2 guests

cron