View Single Post
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 08-23-2014 , 16:56   Re: Fix SteamIDs for the new update
Reply With Quote #17

You can update hlstats to use the new format internally by running this SQL command

Code:
UPDATE hlstats_PlayerUniqueIds SET uniqueId=SUBSTR(uniqueId, 1, 1)+SUBSTR(uniqueId, 3)*2 WHERE uniqueId REGEXP('[01]:[0-9]+')
And replacing the $uniqueid in hlstats.pl sub getPlayerInfo with this.

Code:
                $uniqueid =~ /^\[U:1:(\d+)\]/;
                $uniqueid = $1;
There are few other cosmetic changes such as searching and player display which shouldn't be too difficult to figure out and I am sure the hlstats team will do.
__________________

Last edited by bottiger; 08-23-2014 at 16:58.
bottiger is offline