Is it Possible to Distinguish Merge Skins?

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

Is it Possible to Distinguish Merge Skins?

Postby sfifield » Thu Jan 12, 2012 3:08 am

The title says it all. I signed up for a merge skin for a bonus, but don't get rakeback on the second skin. I'd like to combine my stats for review (as an alias), but count rakeback only for hands on the skin where I get rakeback. I came up with a stat with the following value, but can't seem to be added to the graph:

if (id_site=2100 and id_player = 'SN on Skin W Rakeback', amt_weighted_contributed_rake * .35, 0)

The session stats function on the graph doesn't appear to show stats with a boolean operator in their value. Is there a way around this?
sfifield
 
Posts: 31
Joined: Sun Apr 04, 2010 4:24 pm

Re: Is it Possible to Distinguish Merge Skins?

Postby WhiteRider » Thu Jan 12, 2012 4:39 am

Are your screennames different at the different skins?
It might be possible to build a custom stat to check for the real player name as part of the expression, but that's the only way I can think of doing it once your names are aliased together.
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Is it Possible to Distinguish Merge Skins?

Postby sfifield » Fri Jan 13, 2012 5:44 pm

WhiteRider wrote:Are your screennames different at the different skins?
It might be possible to build a custom stat to check for the real player name as part of the expression, but that's the only way I can think of doing it once your names are aliased together.


Yes. The screen names are different at different skins (since the skins share a player pool, Merge disallows the same screenname to be duplicated on a different skin).

However, this custom stat doesn't appear on the menu when I click configure after Session Stats on the graph. It doesn't appear when I simplify it to: "if(id_site=2100, amt_weighted_contributed_rake * .35, 0)"

However, it does appear if I change it to just "amt_weighted_contributed_rake * .35", so I think the if function is throwing this off somehow.

-Sean
sfifield
 
Posts: 31
Joined: Sun Apr 04, 2010 4:24 pm

Re: Is it Possible to Distinguish Merge Skins?

Postby kraada » Fri Jan 13, 2012 6:13 pm

Which section are you building this stat in?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Is it Possible to Distinguish Merge Skins?

Postby sfifield » Fri Jan 13, 2012 6:37 pm

kraada wrote:Which section are you building this stat in?


Player Stats (so that it can be used in the graph).

Unfortunately, I've figured now that the id_site variable returns the site ID associated with the player (i.e., the hands of an FT account with a merge account "aliased" into it all have a id_site=300 rather than 2100 for the merge hands and 300 for the old FT hands). I suspect that the id_player will simply return the "main" id_player (whether or not the hands were played by an alias or not).
sfifield
 
Posts: 31
Joined: Sun Apr 04, 2010 4:24 pm

Re: Is it Possible to Distinguish Merge Skins?

Postby sfifield » Fri Jan 13, 2012 7:12 pm

Confirmed. The str_player_name and id_player values become identical for hands played under different screen names (and on other sites) when merged together using aliases. Any way around this?
sfifield
 
Posts: 31
Joined: Sun Apr 04, 2010 4:24 pm

Re: Is it Possible to Distinguish Merge Skins?

Postby WhiteRider » Sat Jan 14, 2012 6:50 am

Yes - there is an id_player_real field in holdem_hand_player_statistics for instance, which holds the original player name.
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Is it Possible to Distinguish Merge Skins?

Postby sfifield » Mon Jan 16, 2012 8:59 pm

Thanks. I was able to create a new column, amt_rakeback_merge, for Merge rakeback:

Code: Select all
sum(if[holdem_hand_summary.id_site=2100 and holdem_hand_player_statistics.id_player_real = 387595, 0.35, 0] * if[holdem_hand_player_detail.amt_bet_ttl > 0, (holdem_hand_player_detail.amt_bet_ttl / holdem_hand_summary.amt_pot) * holdem_hand_summary.amt_rake, 0])

The new stat for Amount Won w/Rakeback was "amt_won + amt_rakeback_merge" and it shows up in reports and graphs correctly. (When I built the stat from existing columns, it would show up in reports, but I couldn't add it to the graph).

While I'm at it, I'd like to create amt_rakeback_ft for my old FT hands. Since they changed their rakeback scheme, I've come up with the following:

sum(if[holdem_hand_summary.id_site=300, 0.27, 0] * if[holdem_hand_player_statistics.date_played > ????, if[holdem_hand_player_detail.amt_bet_ttl > 0, (holdem_hand_player_detail.amt_bet_ttl / holdem_hand_summary.amt_pot) * holdem_hand_summary.amt_rake, 0], holdem_hand_summary.amt_mgr])

However, I can't figure out what the appropriate value (and format) is for October 1, 2010, 12:00:01 am EST.
sfifield
 
Posts: 31
Joined: Sun Apr 04, 2010 4:24 pm

Re: Is it Possible to Distinguish Merge Skins?

Postby WhiteRider » Tue Jan 17, 2012 4:24 am

You can use:
>= 'October 01 2010'::timestamp

i.e.
sum(if[holdem_hand_summary.id_site=300, 0.27, 0] * if[holdem_hand_player_statistics.date_played >= 'October 01 2010'::timestamp, if[holdem_hand_player_detail.amt_bet_ttl > 0, (holdem_hand_player_detail.amt_bet_ttl / holdem_hand_summary.amt_pot) * holdem_hand_summary.amt_rake, 0], holdem_hand_summary.amt_mgr])
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Is it Possible to Distinguish Merge Skins?

Postby sfifield » Thu Jan 19, 2012 8:32 pm

Thanks.
sfifield
 
Posts: 31
Joined: Sun Apr 04, 2010 4:24 pm

Next

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

Who is online

Users browsing this forum: No registered users and 6 guests

cron
highfalutin