write a custom HH converter

General discussion of PokerTracker 3.

Moderator: Moderators

Re: write a custom HH converter

Postby tarix » Fri Jan 29, 2010 12:05 am

sfinktah and I handled this offline so there's some parts that are missing.

The most important thing is that bar far the easiest hand history to generate is for Everest poker. Either the human-readable format or the XML.
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm

Re: write a custom HH converter

Postby zubs1aa » Fri Jan 29, 2010 12:42 am

tarix wrote:sfinktah and I handled this offline so there's some parts that are missing.

The most important thing is that bar far the easiest hand history to generate is for Everest poker. Either the human-readable format or the XML.



Tarix- hopefully you can post anything of worth that you two came up with ......

I looked at the XML and it seems to me that I'd have an easier time generating the XML than the text, it just makes more sense to me.

Can you post a couple XML's from there that are more complex? Say a bet, raise, call, re-raise...someone gets allin... type of thing? And a split pot? The example you posted didn't have much action.

Also, could you post an XML of a tourney hand or two as well? (Especially one from when antes hit would be great... and the more action in the hand the better.)

Post here if that is doable or not....Thanks!
zubs1aa
 
Posts: 2219
Joined: Fri Feb 08, 2008 1:52 pm

Re: write a custom HH converter

Postby grindunumb » Fri Jan 29, 2010 12:49 am

tarix wrote:sfinktah and I handled this offline so there's some parts that are missing.

The most important thing is that bar far the easiest hand history to generate is for Everest poker. Either the human-readable format or the XML.


That is good to know for Everest. I cannot play there, so that would work out great. What site was sfinktah trying to convert to Everest's format? Hopefully he will not mind posting back details in a few days to help some of the rest of us who play the tiny networks.
grindunumb
 
Posts: 59
Joined: Sat Feb 02, 2008 9:53 pm

Re: write a custom HH converter

Postby grindunumb » Tue Feb 02, 2010 8:23 pm

sfinktah,

You still around? Which site were you creating the converter for?
grindunumb
 
Posts: 59
Joined: Sat Feb 02, 2008 9:53 pm

Re: write a custom HH converter

Postby sfinktah » Wed Feb 03, 2010 7:16 am

@zubs1aa: I can't say I'm with you on the XML format. In fact, I'll go one step further [away], and say - you're entirely on your own with that one. If you want XML histories, try installing the Everest client, and playing a few games.

Personally, using the legacy text version, I never needed to install the client... I just extrapolated from the two simple examples I found on the net. And that worked for me. Because it really is a very simple format.

Tarix and I did not discuss any specifics of the Everest format, as I already had a functioning HH engine before that discussion took place.

All you need to know about Everest has already been posted in this thread. I will be posting sample PHP code when it is cleaned up sufficiently. I will attach 13 working hands that I just generated and tested then, in order to provide additional examples.

@grindunumb: I'm not actually writing a hand history converter. I just need to output hand histories. If I was converting existing history files, I would pick an output format that most closely matched my input data. Perhaps if you pasted an example from the site in question, I could be more helpful.

My aim here is to create a simple hand history, with minimal code, and no excess output. Here are some example hands, as has been previously stated, the "rules" are as follows:

    Raises are expressed as the total amount of bet that must be matched, regardless of previous betting.
    Calling is expressed as the number of extra chips require to match the current bet.
    As per above statement, if a player has put in a $1,000 small blind, and the bet is $10,000, the history will show "Player calls $9,000"
    If the raising player does not have his bet matched, he must have it returned as uncalled.

You will probably run into problems with small blinds, that issue has also been discussed and resolved in this thread.

If, at this point, you are still unclear about how to go about the task of writing HH data, then I would suggest that you seek professional assistance of a paid programmer.

Code: Select all
EverestPoker Game #1330060341196: Table TableNameGoesHere - $0.002/$0.004 - No Limit Hold'em - 21:32:01 - 2010/02/03
Seat 1: Hero ($0.148)
Seat 3: Player_2 ($20.794)
Seat 4: Player_3 ($0.358)
Seat 5: Player_4 ($0.396)
Seat 7: Player_6 ($0.792)
Seat 9: Player_8 ($0.796)
Player_4 posts the big blind of $0.004
Player_6 posts the big blind of $0.004
The button is in seat #4
*** HOLE CARDS ***
Dealt to Hero [Js Jc]
Player_8 calls $0.004
Hero raises to $0.036
Player_2 calls $0.036
Player_3 folds
Player_4 raises to $0.200
Player_6 calls $0.196
Player_8 calls $0.196
Hero calls $0.112, and is all-in
Player_2 calls $0.164
*** FLOP *** [5d Ac 8d]
Player_4 checks
Player_6 checks
Player_8 checks
Player_2 raises to $0.004
Player_4 calls $0.004
Player_6 calls $0.004
Player_8 calls $0.004
*** TURN *** [2h]
Player_4 checks
Player_6 checks
Player_8 checks
Player_2 raises to $0.028
Player_4 calls $0.028
Player_6 calls $0.028
Player_8 calls $0.028
*** RIVER *** [6s]
Player_4 folds
Player_6 folds
Player_8 checks
Player_2 raises to $0.365
Player_8 folds
Hero shows [Js Jc]
Player_2 shows [Ah 2c]
Player_2 shows [Ah 2c]
Player_2 shows [Ah 2c]
Uncalled bet of $0.365 returned to Player_2
*** SUMMARY ***
Hero shows [Js Jc]
Player_2 shows [Ah 2c]
Player_2 collects $0.336
Player_2 collects $0.740


EverestPoker Game #1330060341198: Table TableNameGoesHere - $0.002/$0.004 - No Limit Hold'em - 21:35:52 - 2010/02/03
Seat 1: Hero ($0.040)
Seat 2: Player_1 ($0.096)
Seat 3: Player_2 ($21.310)
Seat 4: Player_3 ($0.354)
Seat 5: Player_4 ($0.396)
Seat 9: Player_8 ($2.524)
Player_1 posts the big blind of $0.004
Player_4 posts the big blind of $0.004
Player_8 posts the big blind of $0.004
The button is in seat #4
*** HOLE CARDS ***
Dealt to Hero [7s 6c]
Hero folds
Player_1 raises to $0.100, and is all-in
Player_2 calls $0.100
Player_3 calls $0.100
Player_4 calls $0.096
Player_8 calls $0.096
*** FLOP *** [Jh Ah Ac]
Player_4 raises to $0.300, and is all-in
Player_8 calls $0.300
Player_2 calls $0.300
Player_3 calls $0.254, and is all-in
*** TURN *** [Js]
Player_8 checks
Player_2 checks
*** RIVER *** [2d]
Player_8 checks
Player_2 raises to $0.004
Player_8 calls $0.004
Player_2 shows [Qd 7d]
Player_4 shows [As Kh]
Player_4 shows [As Kh]
Player_4 shows [As Kh]
*** SUMMARY ***
Player_2 shows [Qd 7d]
Player_4 shows [As Kh]
Player_2 collects $0.008
Player_4 collects $0.138
Player_4 collects $1.016
Player_4 collects $0.500


EverestPoker Game #1330060341199: Table TableNameGoesHere - $0.002/$0.004 - No Limit Hold'em - 21:37:11 - 2010/02/03
Seat 1: Hero ($0.036)
Seat 2: Player_1 ($0.096)
Seat 3: Player_2 ($20.914)
Seat 4: Player_3 ($0.758)
Seat 5: Player_4 ($0.896)
Seat 8: Player_7 ($0.036)
Seat 9: Player_8 ($2.122)
Hero posts the big blind of $0.004
Player_1 posts the big blind of $0.004
Player_7 posts the big blind of $0.004
Player_8 posts the small blind of $0.002
The button is in seat #8
*** HOLE CARDS ***
Dealt to Hero [Ts As]
Player_1 checks
Player_2 calls $0.004
Player_3 calls $0.004
Player_4 raises to $0.240
Player_7 folds
Player_8 calls $0.238
Hero calls $0.036, and is all-in
Player_1 folds
Player_2 calls $0.236
Player_3 folds
*** FLOP *** [Ad 3d Td]
Player_8 raises to $0.050
Player_2 raises to $0.100
Player_4 calls $0.100
Player_8 calls $0.050
*** TURN *** [4h]
Player_8 checks
Player_2 raises to $1.570
Player_4 calls $0.556, and is all-in
Player_8 folds
Hero shows [Ts As]
Player_2 shows [Ah 3c]
Player_4 shows [Kc Jc]
*** RIVER *** [3s]
Player_2 shows [Ah 3c]
Player_2 shows [Ah 3c]
Player_2 shows [Ah 3c]
Uncalled bet of $1.014 returned to Player_2
*** SUMMARY ***
Hero shows [Ts As]
Player_2 shows [Ah 3c]
Player_4 shows [Kc Jc]
Player_2 collects $2.012
Player_2 collects $0.172


EverestPoker Game #1330060341201: Table TableNameGoesHere - $0.002/$0.004 - No Limit Hold'em - 21:41:02 - 2010/02/03
Seat 1: Hero ($0.038)
Seat 2: Player_1 ($0.096)
Seat 3: Player_2 ($22.146)
Seat 6: Player_5 ($0.198)
Seat 7: Player_6 ($0.548)
Seat 8: Player_7 ($0.086)
Seat 9: Player_8 ($2.698)
Hero posts the small blind of $0.002
Player_1 posts the big blind of $0.004
Player_2 posts the big blind of $0.004
The button is in seat #1
*** HOLE CARDS ***
Dealt to Hero [7s Ks]
Player_5 calls $0.004
Player_6 folds
Player_7 calls $0.004
Player_8 calls $0.004
Hero raises to $0.024
Player_1 calls $0.020
Player_2 raises to $0.044
Player_5 raises to $0.064
Player_7 calls $0.060
Player_8 calls $0.060
Hero calls $0.016, and is all-in
Player_1 calls $0.040
Player_2 calls $0.020
*** FLOP *** [9c Td Kh]
Player_1 checks
Player_2 checks
Player_5 checks
Player_7 checks
Player_8 checks
*** TURN *** [3s]
Player_1 checks
Player_2 checks
Player_5 checks
Player_7 checks
Player_8 checks
*** RIVER *** [4d]
Player_1 checks
Player_2 checks
Player_5 raises to $0.120
Player_7 folds
Player_8 calls $0.120
Player_1 folds
Player_2 folds
Player_5 shows [4s 3d]
Player_5 shows [4s 3d]
*** SUMMARY ***
Player_5 shows [4s 3d]
Player_5 collects $0.360
Player_5 collects $0.240
sfinktah
 
Posts: 15
Joined: Sat Jan 09, 2010 5:44 am

Re: write a custom HH converter

Postby sfinktah » Sat Feb 13, 2010 10:35 pm

(should add one note here to the existing list.... )

Raises are expressed as the total amount of bet that must be matched, regardless of previous betting.
Calling is expressed as the number of extra chips require to match the current bet.
As per above statement, if a player has put in a $1,000 small blind, and the bet is $10,000, the history will show "Player calls $9,000"
If the same player RAISES to $10,000, the history will show "Player raises to $10,000". (which is a call of $1,000 to match the big blind plus $9,000 more).
If the raising player does not have his bet matched, he must have it returned as uncalled.
sfinktah
 
Posts: 15
Joined: Sat Jan 09, 2010 5:44 am

Re: write a custom HH converter

Postby grindunumb » Mon Feb 15, 2010 2:08 pm

History from Betraiser.com

**** Hand History for Game 4774218 ****
2/7/2010 01:23:06
Table #117 - Texas Hold'em - €0.1/0.25 NL
Total number of players : 6
Seat 2:Player2 (€46.83)
Seat 3:Player3 (€27.60) (button)
Seat 4:HERO1 (€28.85) (SB)
Seat 5:Player5 (€18.30) (BB)
Seat 7:Player7 (€8.94)
Seat 10:Player0 (€58.56)
* - HERO1 [ 2h 7h ].
Player7 - FOLD.
Player0 - RAISE [0.70].
Player2 - CALL [0.70].
Player3 - FOLD.
HERO1 - FOLD.
Player5 - FOLD.
* - Dealing Flop [ 6h 4d Ah ].
Player0 - CHECK.
Player2 - CHECK.
* - Dealing Turn [ 2c ].
Player0 - CHECK.
Player2 - CHECK.
* - Dealing River [ 2s ].
Player0 - CHECK.
Player2 - CHECK.
Player0 Show cards [Kd 10c]
GAME # 4774218 FINISHED, Player0 ( Kd 10c ) wins 1.75 from main pot Winning combination - 'One Pair', deuces with kicker ten.
grindunumb
 
Posts: 59
Joined: Sat Feb 02, 2008 9:53 pm

Re: write a custom HH converter

Postby grindunumb » Mon Feb 15, 2010 2:08 pm

Hand from WSEX.com


***** Hand history (v1.2) *****
Hand ID 163292328
NL $100 Texas Hold'em (No Limit) - 19:00:49 31/01/2010 ET
Table 'Put (6 Max)', 6 seats max, Real money
Seat 1 is the button. Small Blind $0.50, Big Blind $1
Note: seat IDs range from 1 to 6
Seat 1 (playing) : HERO1, amount $109, amount bet $0, penalty (None)
Seat 2 (playing) : Player2, amount $29.65, amount bet $0, penalty (None)
Seat 3 (playing) : Player3, amount $101.85, amount bet $0, penalty (None)
Seat 4 (playing) : winner7, amount $127.85, amount bet $0, penalty (None)
Seat 5 (playing) : Player5, amount $65.95, amount bet $0, penalty (None)
Seat 6 (playing) : Player6, amount $55.95, amount bet $0, penalty (None)
Player2: Small Blind ($0.50)
Player3: Big Blind ($1)
** Dealing Down Cards **
Dealt to HERO1: [9s, 4s]
winner7: Fold
Player5: Call ($1)
Player6: Fold
HERO1: Fold
Player2: Fold
Player3: Check ($0)
** Dealing Flop **
Community cards: [8h, Qh, 9h]
Player3: Check ($0)
Player5: Check ($0)
** Dealing Turn **
Community cards: [3h]
Player3: Check ($0)
Player5: Bet ($2)
Player3: Call ($2)
** Dealing River **
Community cards: [Ah]
Player3: Bet ($4)
Player5: Call ($4)
** End Round **
** Evaluate **
Player3: Show Cards ($0)
Player5: Muck ($0)
** Showdown **
Main pot $13.80, Rake $0.70
Summary Player3: bet $7, won $13.80, net $6.80, HoleCards [Kh, 2h], HiHand [a flush, ace high with king kicker] [Ah, Kh, Qh, 9h, 8h], won $13.80 from main pot
Summary Player5: bet $7, won $0, net $-7, HoleCards [As, 3d]
grindunumb
 
Posts: 59
Joined: Sat Feb 02, 2008 9:53 pm

Re: write a custom HH converter

Postby sfinktah » Mon Apr 26, 2010 2:30 am

I take it you are suggesting those as simple format?

They look reasonable... I actually ended up going for PokerStars format, due to some anomalous data I was getting.

PokerStars is much the same as the pseudo-Everest format, and many others, it just needs a little bit extra on the end... most of which you can dummy up or ignore...


Code: Select all
*** SUMMARY ***
Total pot $6,100 | Rake $0
Board: [4c 7s Qh As 2h]
Seat 2: P2 (blah) showed [6s 6c] and lost
Seat 4: P4 (blah) showed [Ah Jd] and lost
Seat 7: P7 (blah) showed [Qs Qc] and won ($6,100) with cards
Seat 5: Hero (blah) did stuff
Seat 6: P3 (blah) did stuff
Seat 1: P1 (blah) did stuff
Seat 3: P3 (blah) did stuff
sfinktah
 
Posts: 15
Joined: Sat Jan 09, 2010 5:44 am

Re: write a custom HH converter

Postby grindunumb » Sun May 09, 2010 12:28 pm

sfinktah wrote:I take it you are suggesting those as simple format?

They look reasonable... I actually ended up going for PokerStars format, due to some anomalous data I was getting.

PokerStars is much the same as the pseudo-Everest format, and many others, it just needs a little bit extra on the end... most of which you can dummy up or ignore...


Code: Select all
*** SUMMARY ***
Total pot $6,100 | Rake $0
Board: [4c 7s Qh As 2h]
Seat 2: P2 (blah) showed [6s 6c] and lost
Seat 4: P4 (blah) showed [Ah Jd] and lost
Seat 7: P7 (blah) showed [Qs Qc] and won ($6,100) with cards
Seat 5: Hero (blah) did stuff
Seat 6: P3 (blah) did stuff
Seat 1: P1 (blah) did stuff
Seat 3: P3 (blah) did stuff


No those were the sites that were unsupported I played on. However since that time, PT3 has added support for WPEX. Now the only 2 unsupported poker sites I play on that, either PT3 or a hand history converter would be useful for are, Betraiser.com and TruePoker.com.
grindunumb
 
Posts: 59
Joined: Sat Feb 02, 2008 9:53 pm

Previous

Return to General [Read Only]

Who is online

Users browsing this forum: No registered users and 28 guests

cron
highfalutin