number of times played villain custom HUD request?

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

number of times played villain custom HUD request?

Postby Mikey9434 » Fri Apr 17, 2009 7:14 am

Hi,

I would like to create a custom HUD stat next to the "hands played" in the player stats section which shows how many tourneys i played against that player. This can be found if you search that players name then look at his tournament sessions number but would be useful directly on the hud, as if u playing him often you should make detailed notes on him :).

If anyone knows how to create this custom hud please reply, thanks.
Mikey9434
 
Posts: 2
Joined: Thu Dec 04, 2008 4:51 pm

Re: number of times played villain custom HUD request?

Postby kraada » Fri Apr 17, 2009 9:37 am

I don't believe it's possible to build that stat into the HUD at this point in time, given the part of the database it needs to access.

One (albeit slightly annoying) workaround would be to check players with > 1 hand and make notes on them with how many tournaments you've played together, then when you see them at a new tournament with you, update the note.

So if you'd played 2 tournaments with someone the note could say "2 Tournies Together" then you can just edit the note to say "3 Tournies Together". Anybody with 0 hands previously obviously this is your first tournament together and if you note them as "1 Tournies Together" then next time you can just update the note.

It's a bit tedious but it would work and you can mouseover the note editor to see how many tournies you'd played together fairly rapidly once the note is in place.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: number of times played villain custom HUD request?

Postby Gatech » Tue Mar 02, 2010 5:51 pm

Just out of curiosity and a little off topic, is it possible to run an UPDATE query in Postgres to UPDATE a note in the PokerTracker Database.

It would solve this problem if you have a simple UPDATE query that calculated the number of tournies played against someone and then UPDATE the notes field with the results. You could run that query frequently to keep the notes accurate.

Bottom-line: Is it possible to update the notes field with a query?
Gatech
 
Posts: 13
Joined: Tue May 06, 2008 12:47 pm

Re: number of times played villain custom HUD request?

Postby kraada » Tue Mar 02, 2010 6:10 pm

I'm pretty sure it's technically possible, though it'd probably take a bit of work to actually generate it all in one go since it needs to both locate and calculate how many tournaments you've played together (ie- hands you were dealt in together I presume?), then actually update the note.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: number of times played villain custom HUD request?

Postby Gatech » Tue Mar 02, 2010 7:02 pm

Thanks for the quick respsonse. I have been searching the forums to find a case where someone updates the notes field so I can look at the SQL. Any ideas on where in the forum I can find this. A link would be perfect.

Thanks again.
Gatech
 
Posts: 13
Joined: Tue May 06, 2008 12:47 pm

Re: number of times played villain custom HUD request?

Postby kraada » Wed Mar 03, 2010 10:07 am

It's not quite that simple - you can look at our database schema though, it will show you what all of the fields are and how they connect.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: number of times played villain custom HUD request?

Postby Gatech » Wed Mar 03, 2010 10:11 am

This is helpful, thanks!
Gatech
 
Posts: 13
Joined: Tue May 06, 2008 12:47 pm


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests