Page 2 of 5

Re: PokerTH Web Client

Posted: Sun Jul 26, 2026 11:19 am
by narmod
Done — it's in the web client as of build 2.1.4-web.64.

How it works: you pick a folder once (Advanced options → Logs → "Automatic .pdb file" → Choose folder…), and from then on the client writes a real SQLite .pdb into that folder and rewrites it after every hand.

A few details that should matter for your tool:

- Same schema as the desktop client (LogVersion 1, the five tables Session / Game / Player / Hand / Action), same file name (pokerth-log-<date>_<time>.pdb), one file per session.
- Same action strings — "posts small blind", "calls", "is all in with", "shows", "wins", "wins (side pot)", "sits out", and so on. Bet and Raise are both logged as "bets", like the desktop client does.
- Cards are the raw 0..51 integers, no conversion. Action.Player is the seat number.
- The file is committed atomically, so your app will never catch a half-written file mid-update.

So existing tools should read it as-is. If yours chokes on anything, tell me exactly where and I'll fix it.

One browser limitation worth knowing: writing into a local folder needs the File System Access API, which means desktop Chrome, Edge and Opera. On Firefox and Safari the option is greyed out, and you still have the manual "Export session" / "Export all history" .pdb buttons. It's off by default everywhere; the folder permission is asked once and remembered across sessions.

Since you're clearly doing stats work, one more thing you may not have noticed: the web client already has its own hand recorder, a stats panel and an optional per-seat HUD — VPIP, PFR, aggression, fold stats, hands played and won, plus a 13×13 range grid per player at showdown. If you were hoping for improvements on that side, or if there are numbers or export formats you'd want that aren't there yet, don't hesitate to say which options would be welcome. Much easier to build the right thing than to guess at it.

Re: PokerTH Web Client

Posted: Sun Jul 26, 2026 1:52 pm
by Spitessbir
Thanks for the automatic .pdb option. It appears to function as expected but I need to do more testing. There is a small issue where the app refuses to write log files to the Windows Appdata folder (the default log file location for the other PokerTH apps). The message says can't write to a location with system files. This restriction may be out of your control. I can work around this if necessary.

There may be another bug. I can't apply any of the last 6 built-in card backs (from 'Danuxi' to 'Nobus Classic Red').

PS I'm enjoying listening to your PokerTH playlist as I write this.

Re: PokerTH Web Client

Posted: Sun Jul 26, 2026 2:27 pm
by narmod
Thanks for testing, that's useful feedback on both counts.

The AppData one is out of my hands: Chrome keeps a blocklist of folders a web page can never be granted — the OS root, the Windows directory and AppData among them — and it's enforced in the folder picker, before my code sees anything. A normal folder (Documents, or a dedicated one) is the way to go.

The card backs were a real bug though, good catch. Those six are standalone backs with no matching deck, and one code path was guessing their file extension from the deck list they aren't in: it guessed .png, the files are .svg, so the request 404'd and the back silently never applied. Fixed in build 2.1.4-web.68 — reload the page and they should all work now. Let me know if any still misbehave.

PS: Glad the playlist is good company. No .pdb export for it though, sorry.

Re: PokerTH Web Client

Posted: Sun Jul 26, 2026 7:31 pm
by Spitessbir
I'm having issues with the shortcut keys and manual input of bets:
1. F1-F4 keys don't appear to work.
2. 'F' for Fold, 'C' for Check/Call, etc only work if I first click with my mouse somewhere on the table to get focus.
3. Manual bet input doesn't overwrite the default bet value in the bet field. Instead, the default bet amount gets prepended with what you type, eg if the bet field shows '80' and I type '200', the bet amount becomes '20080' instead of '200'. 'Enter' key doesn't confirm manual bet input as expected.

Re: PokerTH Web Client

Posted: Sun Jul 26, 2026 8:48 pm
by narmod
Thanks for the detailed report — all three issues are fixed in v2.1.4-web.73 (will be deplyed soon).

Root cause: the auto-focused bet field was swallowing all keyboard input. Now F1–F4, letter shortcuts and Enter work even while the bet field has focus, and the field's content is selected on focus, so typing replaces the default amount instead of prepending.

Re: PokerTH Web Client

Posted: Sun Jul 26, 2026 11:46 pm
by Spitessbir
narmod wrote: Sun Jul 26, 2026 11:19 am Since you're clearly doing stats work, one more thing you may not have noticed: the web client already has its own hand recorder, a stats panel and an optional per-seat HUD — VPIP, PFR, aggression, fold stats, hands played and won, plus a 13×13 range grid per player at showdown. If you were hoping for improvements on that side, or if there are numbers or export formats you'd want that aren't there yet, don't hesitate to say which options would be welcome. Much easier to build the right thing than to guess at it.
One option missing is the import of existing .pdb logs. I have 759 log files. Is this a feasible option for the web client?

Re: PokerTH Web Client

Posted: Mon Jul 27, 2026 6:19 am
by joe4135
its not a bug but i noticed on 2.1.4-2 -qml:
the odds window on the right is either too small (rather not) or the font is too big (rather that) cuz even after maximilising i didnt see all odds at one look. tyvm

Re: PokerTH Web Client

Posted: Mon Jul 27, 2026 6:38 am
by narmod
Hi Spitessbir,
Done — the latest version has an "Import .pdb…" button in the logs window. Multi-select works, so you can import all 759 files in one go (duplicates are detected, re-importing is safe). Imported logs get the full treatment: viewer, local analyzer, export, and one-click analysis on pokerth.net.

Hi Joe4135,
Quick question: are you talking about the QML desktop client only, or did you also notice this in the web client? The web client already has a fix for this.

Re: PokerTH Web Client

Posted: Mon Jul 27, 2026 6:56 am
by Spitessbir
Useful additions to player stats would be ATS (Attempt to Steal %) and FTS (Fold to Steal attempt %).

Formulas:
ATS = (Total Steal Attempts/Total Steal Opportunities) x 100
FTS = (Total times folded to a Steal Attempt/Total Steal Defence Opportunities) x 100

Determining Factors
1. Steal Positions: From the Cutoff (CO), Button (BTN), and Small Blind (SB).
2. A Steal Opportunity only exists if all players before the steal position have folded. If anyone has already entered the pot (by limping or raising), the hand is no longer a steal opportunity.
3. To count as a Steal Attempt, the player in one of the Steal Positions must enter the pot with a raise. Limping (calling the big blind) does not count as a Steal Attempt.
4. A Steal Defence Opportunity exists if the player is in the SB or BB, and a player in the CO, BTN, or SB opens with a raise, and no other players have called or re-raised in between.

Re: PokerTH Web Client

Posted: Mon Jul 27, 2026 7:37 am
by narmod
Good suggestion, thanks for the precise definitions — implemented as specified in v2.1.4-web.76: ATS and FTS are now in the player stats tab (steal positions CO/BTN/SB, limps don't count as attempts, and a call or re-raise between the stealer and the blinds cancels the defence opportunity). Covered by deterministic tests.