Fix Possible Formatting Bug....

Let us know what features not currently in the PT4 should be added.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Fix Possible Formatting Bug....

Postby robertbaksa » Fri Jun 30, 2017 4:50 pm

I created a custom static that applies different formatting to the out of the box BB/100 stat. In a nutshell, for negative numbers I replaced the '-' with parenthesis and removed the color formatting. If I create a hud and add this stat to the "table averages" group, I get the following error: "Error during parsing: Mismatched parenthesis in expression". However if I add the same stat to any other group (e.g Hero Only, Everyone But Hero, etc.), it works fine. I've checked the logs and there isn't anything significant. I pasted the text below, just in case it helps:

2017/06/30 16:07:31.261 [00029]: [000005A8][QueryExpression (Error)] Query: Cash Player/Replayer - 888 Poker - 6 max - Cash-Cash - Your Edge 6 Max Cash3 Error during parsing: Mismatched parenthesis in expression
2017/06/30 16:07:31.263 [00001]: [- Main -][wxWidgets] 16:07:31: Error: XML parsing error: 'syntax error' at line 1

I'm running Windows version 4.14.25 of Pokertracker.

Here's is my Format Expression: (if( amt_bb_won / (cnt_hands / 100) >=0, format_number( amt_bb_won / (cnt_hands / 100), 0, true, false), format( '({1})', format_number ( (-1*amt_bb_won / (cnt_hands / 100) ), 0, true, false))))

I've included a screen of the stat's configuration. Unfortunately, I couldn't figure out how to upload the actual stat to this thread because the board blocks that file type.

Please let me know, if I'm missing something obvious.

Thanks
Attachments
2017-06-30_16-40-41.png
Stat Config
robertbaksa
 
Posts: 8
Joined: Wed Dec 28, 2016 8:25 pm

Re: Fix Possible Formatting Bug....

Postby WhiteRider » Sat Jul 01, 2017 4:16 am

Please attach your stat to a Support Ticket and include a link to this thread (or copy & paste your description) and we'll investigate for you.
WhiteRider
Moderator
 
Posts: 53961
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to PT4 Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests

cron