How can I access all PT4 stat definitions (expressions, vari

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

How can I access all PT4 stat definitions (expressions, vari

Postby stakkedoff » Tue May 20, 2025 10:29 pm

I'm working on a tool to help translate plain-language poker concepts into PT4-compatible stat expressions and filters. I need access to the raw expressions and logic used by the built-in stats (e.g. cnt_p_3bet, cnt_p_3bet_opp, etc.).

Right now, the only method I know is to open the Configure > Statistics editor and copy each stat’s expression manually — which is impractical for 200+ stats. I've inspected the PT4 Data\Stats folder and found StatDefinitions.pt4, but it's a binary file.

Is there:

-A way to export all stat definitions and expressions?

-A human-readable file that lists them?

-A supported way to access the internal column/variable glossary, so I can programmatically construct compatible expressions?

I'm not redistributing anything — just trying to create a personal tool that interprets stats and builds filters using PT4's own language more efficiently.
stakkedoff
 
Posts: 37
Joined: Thu Mar 14, 2019 4:12 pm

Re: How can I access all PT4 stat definitions (expressions,

Postby Flag_Hippo » Wed May 21, 2025 7:12 am

Unfortunately there isn't a method to export that information to a readable file or another way to access that information.
Flag_Hippo
Moderator
 
Posts: 17089
Joined: Tue Jan 31, 2012 7:50 am

Re: How can I access all PT4 stat definitions (expressions,

Postby Pslo_Poker » Tue May 27, 2025 1:46 pm

Hey, I’ve been digging into this as well and yeah… StatDefinitions.pt4 is unfortunately a binary. There’s no official way to bulk export all stat expressions.

What I ended up doing is manually opening the Statistics editor, sorting by category, and copying what I needed into my own sheet. Painful, but manageable if you filter for only the relevant ones.
Pslo_Poker
 
Posts: 4
Joined: Tue May 27, 2025 1:42 pm

Re: How can I access all PT4 stat definitions (expressions,

Postby Pslo_Poker » Wed May 28, 2025 10:22 am

Forgot to mention -> one small tip: if you want to avoid manually copy-pasting everything, you can use the “Clone” option in the Statistics editor..Spelavinst
Pslo_Poker
 
Posts: 4
Joined: Tue May 27, 2025 1:42 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 0 guests