Open Side Menu Go to the Top
Register
Script to analyze population tendency on HEM Script to analyze population tendency on HEM

06-05-2019 , 12:49 PM
and I am tring to do that but when I put


INSERT INTO players (site_id, playername, cashhands, tourneyhands, playertype_id)
VALUES (-1, 'Global alias', 0, 0, 0)
RETURNING player_id;


it says me


ERROR: CREATE DATABASE cannot be executed from a function or multi-command string

********** Error **********

ERROR: CREATE DATABASE cannot be executed from a function or multi-command string
SQL state: 25001




any help?
Script to analyze population tendency on HEM Quote
07-02-2019 , 01:01 PM
On HM2 you have the option to go into settings and manually add several opponents to one alias.

This might be a stupid question, but... What is the difference in doing it through the settings and doing it through a script?
Script to analyze population tendency on HEM Quote
07-02-2019 , 05:25 PM
Quote:
Originally Posted by lankyross
On HM2 you have the option to go into settings and manually add several opponents to one alias.

This might be a stupid question, but... What is the difference in doing it through the settings and doing it through a script?


where?
Script to analyze population tendency on HEM Quote
07-02-2019 , 05:27 PM
Quote:
Originally Posted by salonika91
where?

http://holdemmanagertutorial.com/hol...nager-aliases/

I’m assuming this is the same? Unless I’m missing something



Sent from my iPhone using Tapatalk
Script to analyze population tendency on HEM Quote
07-02-2019 , 07:41 PM
o I think is this.but I have 30+k opponents.how can I put all manually?
Script to analyze population tendency on HEM Quote
07-03-2019 , 03:24 AM
Quote:
Originally Posted by salonika91
o I think is this.but I have 30+k opponents.how can I put all manually?


I’m not sure how you put them all in. I’ve made smaller alias’s with like 10 players who are crushing my stakes for example


Sent from my iPhone using Tapatalk
Script to analyze population tendency on HEM Quote
01-24-2020 , 11:17 PM
Thanks for this. Does everyone else see many duplicate hands in their DB? Will this affect the stats?

Many thanks.
Script to analyze population tendency on HEM Quote
05-19-2020 , 02:05 PM
Quote:
Originally Posted by bbh
Thanks for this. Does everyone else see many duplicate hands in their DB? Will this affect the stats?

Many thanks.
I have the same problem. It is importing the same hand for each player, which is expected. But the "cards" and the "line" is considering just one of the players in the hand. Its affecting the stats.
Script to analyze population tendency on HEM Quote
10-29-2020 , 01:30 PM
Is there any way to do this with HM3?
Script to analyze population tendency on HEM Quote
01-26-2021 , 10:56 AM
Quote:
Originally Posted by Im Nacho Friend
Is there any way to do this with HM3?
Looking through this thread, it doesn't appear so.

I'd like to thank everyone for their work on this, particularly tigerjack89, as his summary of how to create a global alias (post 58) has always worked flawlessly for me.

Has anyone been able to work out how to adjust that code to create an alias for say nits <20.5 vpip with a 75 hand or greater sample? I see there is something in notecaddy that does this, but I find doing anything in notecaddy slows down my HEM a bit.

Thanks
Script to analyze population tendency on HEM Quote
05-10-2021 , 08:27 AM
Quote:
Originally Posted by meale
Just tried this and now every time I go to click on Select Player in HEM it just crashes :/ any ideas?
I have the same issue. Anyone found a fix? (have >100k players in alias)
Script to analyze population tendency on HEM Quote
09-09-2021 , 12:01 PM
Quote:
Originally Posted by Mintewek
I have the same issue. Anyone found a fix? (have >100k players in alias)
This is from the Pokertracker 4 thread about this but it is probably THE issue youre having here. Read below:

Quote:
Originally Posted by evLeisure
If someone is interested in making global alias in 6max, 9man, 180s etc.

We have to take down primary key's by using this:
Code:
ALTER TABLE tourney_hand_player_statistics DROP CONSTRAINT tourney_hand_player_statistics_primary_key
ALTER TABLE tourney_hand_player_combinations DROP CONSTRAINT tourney_hand_player_combinations_primary_key
ALTER TABLE tourney_results DROP CONSTRAINT tourney_results_primary_key
Then everything like in OP post.

Ps.
Code:
UPDATE tourney_hand_summary SET id_winner = 19580 WHERE id_winner != 19580 AND id_winner != 1 AND id_winner != 0 AND id_winner != -1;
UPDATE tourney_hand_player_statistics SET id_player = 19580 WHERE id_player != 19580 AND id_player != 1 AND id_player != 0 AND id_player != -1;
UPDATE tourney_hand_player_combinations SET id_player = 19580 WHERE id_player != 19580 AND id_player != 1 AND id_player != 0 AND id_player != -1;
UPDATE tourney_summary SET id_winner = 19580 WHERE id_winner != 19580 AND id_winner != 1 AND id_winner != 0 AND id_winner != -1;
UPDATE tourney_results SET id_player = 19580 WHERE id_player_real != 19580 AND id_player_real != 1 AND id_player_real != 0 AND id_player_real != -1;
UPDATE player SET id_player_alias = 19580 WHERE id_player != 19580 AND id_player != 1 AND id_player != 0 AND id_player != -1;
I bold small improvement in your code. We don't want to assign as an alias last player also, because we're choosing him as a active player who has assigned other players as an aliases.

GL!
Script to analyze population tendency on HEM Quote

      
m