How To : KO "Bounty" Tournaments

For general discussion of the Poker Mavens software
hxe
Posts: 71
Joined: Sat Apr 04, 2020 1:59 pm

Re: How To : KO "Bounty" Tournaments

Post by hxe »

Tuck Fheman wrote:
hxe wrote:So I ripped off the code, made some changes to my environment and realized a few things.
2) The code above only awards the bounties to people knocked out. The winner actually "loses" his bounty to the "EntryFee" account. It has to be either credited back manually or awarded through more code.
This should take care of that part : posting.php?mode=quote&f=7&p=12474#pr11850

Thanks!
Oh... I skipped that part because I'm using Telegram instead of Discord.
I wasn't aware that this awarded the winner back their fee too.
I'll rip that part off too :lol:
hxe
Posts: 71
Joined: Sat Apr 04, 2020 1:59 pm

Re: How To : KO "Bounty" Tournaments

Post by hxe »

hxe wrote: I can't fix 1 at all due to the lack of callbacks for rebuys.
Asked Kent in another thread about a callback for rebuys.
Turns out I can poll the balance event which would work for all situations that aren't bounties.
Unless I'm missing something (which I very well could be) there's no way to poll the "reason" a person rebought.
So there's still no way to fix 1 despite having a callback for a rebuy since no one is actually "out" until they finish rebuying.

So it looks like freezeouts only until this is native.
Tuck Fheman
Posts: 213
Joined: Tue Jul 04, 2017 6:44 am

Re: How To : KO "Bounty" Tournaments

Post by Tuck Fheman »

hxe wrote: Asked Kent in another thread about a callback for rebuys.
So it looks like freezeouts only until this is native.
If you have the Callback system save a Callback.txt file, within that file you will see ...

Event = Balance
Player = PlayersName
Change = -0.10
Balance = 2.04
Source = FREEROLL 1 HIVE Guaranteed 1R+1A rebuy
Time = 2020-04-26 19:24:31

It appends the words "rebuy" and "add-on" to the end of the tourney name in the "Source" field. Perhaps that could be used for now?
Tuck Fheman
Posts: 213
Joined: Tue Jul 04, 2017 6:44 am

Re: How To : KO "Bounty" Tournaments

Post by Tuck Fheman »

Also if you're just saving the Callback log files it will show up like this ...

{"Event":"Balance","Player":"PlayerName","Change":"-0.10","Balance":"24.45","Source":"FREEROLL 1 HIVE Guaranteed 1R+1A rebuy","Time":"2020-04-27 19:24:13"}
hxe
Posts: 71
Joined: Sat Apr 04, 2020 1:59 pm

Re: How To : KO "Bounty" Tournaments

Post by hxe »

Tuck Fheman wrote:
hxe wrote: Asked Kent in another thread about a callback for rebuys.
So it looks like freezeouts only until this is native.
If you have the Callback system save a Callback.txt file, within that file you will see ...

Event = Balance
Player = PlayersName
Change = -0.10
Balance = 2.04
Source = FREEROLL 1 HIVE Guaranteed 1R+1A rebuy
Time = 2020-04-26 19:24:31

It appends the words "rebuy" and "add-on" to the end of the tourney name in the "Source" field. Perhaps that could be used for now?
I actually thought about that but unfortunately there's no easy way to parse out who "got" the guy.
There's the TournamentsPlaying but I'd have to continually record the chip stacks of everyone and then find the guy with the "rebuy" and figure out who got him.
Tuck Fheman
Posts: 213
Joined: Tue Jul 04, 2017 6:44 am

Re: How To : KO "Bounty" Tournaments

Post by Tuck Fheman »

hxe wrote:
Tuck Fheman wrote:
hxe wrote: I actually thought about that but unfortunately there's no easy way to parse out who "got" the guy.
There's the TournamentsPlaying but I'd have to continually record the chip stacks of everyone and then find the guy with the "rebuy" and figure out who got him.
If KO events is turned on in the callback system you should get this in the callback file ...

Event = TourneyKnockout
Name = FREEROLL 2 HIVE Afternoon NLH
Table = 2
Player = Player1
Bounty = Player2
Hand = 117031-23
Time = 2020-04-30 13:21:58
Tuck Fheman
Posts: 213
Joined: Tue Jul 04, 2017 6:44 am

Re: How To : KO "Bounty" Tournaments

Post by Tuck Fheman »

Update: Remove the sleep(10) line from the code. It caused issues with the callback on our site and is completely unnecessary it turns out.

Code: Select all

sleep(10);
hxe
Posts: 71
Joined: Sat Apr 04, 2020 1:59 pm

Re: How To : KO "Bounty" Tournaments

Post by hxe »

Tuck Fheman wrote:
If KO events is turned on in the callback system you should get this in the callback file ...

Event = TourneyKnockout
Name = FREEROLL 2 HIVE Afternoon NLH
Table = 2
Player = Player1
Bounty = Player2
Hand = 117031-23
Time = 2020-04-30 13:21:58

That only fires if the player is actually out of the tournament and doesn't rebuy.
It doesn't fire if the player rebuys.
Post Reply