Testers Wanted - Poker Tracker Hand Converter

For general discussion of the Poker Mavens software
cworth
Posts: 1
Joined: Fri Jun 11, 2021 6:51 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post 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.
mudbuddha
Posts: 14
Joined: Fri Apr 10, 2020 3:28 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post 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
mudbuddha
Posts: 14
Joined: Fri Apr 10, 2020 3:28 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post 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
setspike
Posts: 100
Joined: Fri Apr 03, 2020 6:32 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post by setspike »

Any further development into this tool? Curious if there is a solution to account for a raked hand. Thx. - J
setspike
Posts: 100
Joined: Fri Apr 03, 2020 6:32 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post by setspike »

Nevermind, I was able to modify the python script to account for raked hands. Works great with Poker Tracker 4 now.

- J
onthedole
Posts: 3
Joined: Mon Mar 28, 2022 4:21 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post 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.
setspike
Posts: 100
Joined: Fri Apr 03, 2020 6:32 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post 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
onthedole
Posts: 3
Joined: Mon Mar 28, 2022 4:21 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post 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.
xh2106
Posts: 4
Joined: Sun Jul 31, 2022 10:14 pm

Re: Testers Wanted - Poker Tracker Hand Converter

Post by xh2106 »

Hi SteveG
can i make a donation for your github effort?
please PM me
Post Reply