Page 2 of 2
Re: How To : KO "Bounty" Tournaments
Posted: Thu Apr 16, 2020 5:10 pm
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

Re: How To : KO "Bounty" Tournaments
Posted: Thu Apr 16, 2020 8:48 pm
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.
Re: How To : KO "Bounty" Tournaments
Posted: Tue Apr 28, 2020 7:58 am
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?
Re: How To : KO "Bounty" Tournaments
Posted: Tue Apr 28, 2020 8:00 am
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"}
Re: How To : KO "Bounty" Tournaments
Posted: Wed Apr 29, 2020 11:20 pm
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.
Re: How To : KO "Bounty" Tournaments
Posted: Thu Apr 30, 2020 12:24 pm
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
Re: How To : KO "Bounty" Tournaments
Posted: Mon May 04, 2020 4:46 am
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.
Re: How To : KO "Bounty" Tournaments
Posted: Tue May 05, 2020 12:24 am
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.