PDA

View Full Version : Creating my own custom stat



nomdeguerre
12-01-2008, 01:19 AM
I'd like to create my own custom stat for "raked $5.00+", since PokerStars awards a third VPP for hands raked over $5 and I'd like to work out my VPPs/hand. My first question is, is this necessary, or is there an easier way of getting that information?

My second question is, I know the format of these custom stats, as follows:

Stat GroupName="Default" ColumnName="Raked Hands $2.00+" ValueExpressions="Sum(case when pkh.RakeAmount >= 200 then 1 else 0 end) as RakedHands200" Evaluate="RakedHands200" ColumnHeader="Raked\nHands\n$2.00+" ColumnFormat="0" ColumnWidth="60" Tooltip="Raked Hands where total rake at least $2" /

and it seems pretty clear that I just need to alter the $2.00 to $5.00 and the 200 to 500. But once I've done this, how do I get this into HM? Do I have to replace the existing customstats.txt file or something?

Thanks

morny
12-01-2008, 01:28 AM
Just open the customstats.txt file and add it within the file with the other one then save the file and reload HM, make sure to change the column name to $5 aswell

nomdeguerre
12-01-2008, 01:35 AM
Thanks morny, worked a treat.

Self Made
12-01-2008, 01:45 AM
Just open the customstats.txt file and add it within the file with the other one then save the file and reload HM, make sure to change the column name to $5 aswell

Where is the customstats.txt file supposed to be? I can't find one.

morny
12-01-2008, 01:53 AM
Ah you probably havent used one before, just create a blank file and name it customstats.txt and save it in the reports Folder within HM

brunowillis
12-21-2008, 03:32 PM
Im getting "na" as answer when i try code like



Stat GroupName="Default" ColumnName="IpokerPoints" ValueExpressions="Sum(case when pkh.RakeAmount>=300 then 20 else 0 end) as IpokerPoints" Evaluate ="IpokerPoints" ColumnHeader="IpokerPoints" ColumnFormat="0" ColumnWidth="150" Tooltip="IpokerPoints" /

Is there any error or did anything change in the 1.07?

morny
12-22-2008, 05:24 PM
I see in the other thead you got this working so i presume this is sorted