We played a PKO tourney and after it was done I suddenly noticed that my tourney account was negative 450. I checked TourneyResults and I also noticed that bounties wasn't counted properly. According to the log I did get my bounties though.
I might have triggered it by surrendering in the last hand before the break and late reg. perhaps? LMK if you want more logs.
It seems to only have logged bounties for those who got a tournament price, so it's 450 missing in bounties from this file. That should mean that I +450 in my tournament account and not -450, no?
Edit: This is from the last hand;
[...]
* Turn ** [4h]
GAR folds
Marius bets 450
døvedaffen folds
Marius refunded 450
Marius wins Pot (450)
GAR resigned from tournament
GAR finishes tournament in place #5
[resigned] wins Kr 75 for GAR bounty
** Summary **
Board: [9c 2s Js 4h], Rabbit: [6d], Players: 5, Pots: 1, Total: 450, Rake: 0, End: Turn
Seat 1: Steinardo79 (+0) [5d 2c 3c Tc] Folded on PreFlop
Seat 2: Marius (+300) [Qd Kd Qh Ac] Won without Showdown
Seat 3: GAR (-150) [Jc 2d 4c Kc] Folded on Turn
Seat 4: døvedaffen (-150) [4d Jh Kh 8c] Folded on Turn
Seat 10: Sagenegutta (+0) [7d 7h 8h 2h] Folded on PreFlop
What happens to my bounty when I resign by the way?
It looks like a player resigning is messing up the bounties. Please export the settings for that tournament and email that file to me so I can duplicate your tournament setup.
In the next update I'm just going to check that "Can resign" is turned off for bounty tournaments. It doesn't make sense to allow someone to quit with a bounty on their head. It's just leaving those chips in the House Tourney account. The fact that your House Tourney account had a negative balance is likely unrelated. You should audit your Event Logs and go back in time and see where the balance went negative. It was probably before this tournament even started.
Fair enough removing can't resign. May I suggest another solution though? Sometimes you might have less than half starting stack and want to buy in again. The way I have it is that we have 4 levels with re-entries. After those 4 levels, there's a 5 minute break. It should be possible to resign in that period (when there's not a hand running), simply saying "I give up, good bye" and re-register.
How you handle the bounty is the question. It could either go to the winner of the next hand, or the abandoned stack remains on the table belonging to f.ex. [resigned] and he's blinded down (but not eligible for a prize) and the person who gets his last blind gets the bounty. The last suggestion might be cause a lot of extra code though. A 3rd option is that the resigned player's bounty is either evenly distributed to remaining players (before the quitter has a chance to late reg) or ICM distributed to remaining players (i.e. all but the quitter).
As for the 450 deficit, this seems to have been there for while. Or rather, it was -600 and was now reduced to -450 due to my bounty. I'm going through logs but unfortunately, players have a tendency to never unreg from a SNG that didn't start so it's hard to know just by looking at them with the House/Rake filter. Could you consider adding a feature that schedules audits, e.g. daily, weekly, monthly? Meaning automating clicking Accounts -> House -> Log button?
You can use the API to create your own House account audit system but one change I will make is to check the Tourney account for a non-zero balance during startup. Currently it's just checking for greater than zero but not for less than zero.
By the way, the most likely cause of a negative House Tourney account balance is when the Prize Bonus setting is used. Those extra chips come out of that account along with the rest of the prize pool. If you don't manually add chips to it to account for that then you should zero it back out after the fact.
I had a power outage one night with people signed up for next day's tourney. Crash recovery couldn't figure it out so I had excess money in the tourney account. I figured out who was signed up, transferred the buy in back to them and set the tourney account to 0. Just before I set it to 0 some guy managed to signed up for two SNGs so the account said 0, but should've said -600 if I had noticed the ninja. This happened mid August and I didn't notice it before. To top it off, I had two bounty resigns before the crash so the account was +600 before the power outage.
While I agree that the API can do the Audit, you might be overestimating your customers which I would guess is similar to me in the sense that we want a rake free environment for some online poker amongst friends. I probably can figure out a cron job to do so, but I doubt the majority will. I might be wrong though - it happened in 2006.