Re: Fix SteamIDs for the new update
Quote:
|
Re: Fix SteamIDs for the new update
Is this supposed to change old steam IDs to the new ID?
|
Re: Fix SteamIDs for the new update
Another solution: update old SteamIDs to new format right in the database.
I wrote PHP-script to update old SteamIDs to new ones (in order to use that change $DB* vars accordingly) for TF2-related stats: Code:
<?php |
Re: Fix SteamIDs for the new update
I added the changes in the original post after I updated sourcemod. The hlstats daemon will not continue running now.
Code:
**:/**/scripts$ ./run_hlstats start If I check the status, Code:
**:/**/scripts$ ./run_hlstats status |
Re: Fix SteamIDs for the new update
Quote:
|
Re: Fix SteamIDs for the new update
Quote:
You're definitely right! I've made corrections to my original post, thanks for notice. Quote:
|
Re: Fix SteamIDs for the new update
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]+') Code:
$uniqueid =~ /^\[U:1:(\d+)\]/; |
Re: Fix SteamIDs for the new update
Quote:
The cosmetic stuff is includes things such as the display of steam IDs incorrectly on-screen (with "Steam:0" prefixed - regardless of whether it is a Steam2 or Steam3 format ID in the database for that particular game), and linking to Steam profiles where the Steam ID in the database is updated to the Steam3 format. Personally, I can live with the cosmetic stuff - until there is an "official" update to deal with that stuff - rather than hack it up myself. Quote:
So, I would assume that eventually all Valve titles that are using some Source-engine variant will be converting to this new format, and eventually mods based on Source-engine will get forced over to it as well. It wouldn't surprise me if Valve did the same thing for all Valve titles using the old GoldSrc-engine too - in which case AMX-Mod-X will likely need to be similarly patched to accommodate the change. At the moment, from what I see my GoldSrc-engine games (HL1, TFC, Counter-Strike, DMC, and some mods) are still using the old format. |
Re: Fix SteamIDs for the new update
I'm assuming that these "cosmetic" issues would include a players stats page not showing their avatar?
|
Re: Fix SteamIDs for the new update
Quote:
|
All times are GMT -4. The time now is 01:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.