Page 3 of 3

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Fri Jun 11, 2021 7:01 pm
by cworth
Interested in this tool.
Do you know if the json format it converts too can be used by any hand replayers?

I'd like to embed a hand replayer in too our website for our poker mavens.
However, I can't see to find any that will work with the hand formats generated by PM.

I'll download it and give it a try.

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Tue Jul 06, 2021 7:28 am
by mudbuddha
this seems to work but it fails whenever my file has a hand that was cancelled (i.e. someone posts and someone sits)

I just manually deleted the lines but it fixed the issue

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Tue Jul 06, 2021 7:37 am
by mudbuddha
ah spoke to soon,

getting errors when person is not called on their final bet

Invalid pot size (1.14 vs pot: 1.40 rake: 0.00 jpt: 0.00) for hand #35243-14642

He had bet 50 cents into $1.14 and wasn't called

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Tue Nov 23, 2021 1:32 pm
by setspike
Any further development into this tool? Curious if there is a solution to account for a raked hand. Thx. - J

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Wed Nov 24, 2021 4:09 pm
by setspike
Nevermind, I was able to modify the python script to account for raked hands. Works great with Poker Tracker 4 now.

- J

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Mon Mar 28, 2022 4:24 pm
by onthedole
setspike wrote: Wed Nov 24, 2021 4:09 pm Nevermind, I was able to modify the python script to account for raked hands. Works great with Poker Tracker 4 now.

- J
Could you share how you modified the script, please? I'd like to modify it for my own use. Thanks.

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Tue Mar 29, 2022 2:20 am
by setspike
Here are exact instructions to modify the script to account for a raked hand. In the convertMavensHH.py file:

1) Comment out lines 681 and 682. Also add a "continue" line after line 682. It should look like this:

Code: Select all

#pots[potNumber][AMOUNT] += win
#pots[potNumber][PLAYER_WINS][playerId][WIN_AMOUNT] += win
continue
2) Add the following lines after the continue line from step #1

Code: Select all

            # the text to match for raked pots
            rakeamount = re.search("(Rake )\(([\d.]+)\)",line)
            if (rakeamount !=None):
                print(rakeamount.group(2))
                rakeamt = float(rakeamount.group(2))
                pots[potNumber][AMOUNT] += win
                pots[potNumber][AMOUNT] += rakeamt
                pots[potNumber][PLAYER_WINS][playerId][WIN_AMOUNT] += win
                pots[potNumber][RAKE] += rakeamt
                pots[potNumber][PLAYER_WINS][playerId][CONTRIBUTED_RAKE] += rakeamt
Save the file and that should be it.

Hope this helps.

- setspike

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Tue Mar 29, 2022 10:54 pm
by onthedole
setspike wrote: Tue Mar 29, 2022 2:20 am Save the file and that should be it.

Hope this helps.

- setspike
I appreciate your help. Thanks.

Re: Testers Wanted - Poker Tracker Hand Converter

Posted: Tue May 23, 2023 2:09 pm
by xh2106
Hi SteveG
can i make a donation for your github effort?
please PM me