Fix SteamIDs for the new update
This will convert the new value to the old, allowing all of your current stats to be saved.
In scripts/HLstats_EventHandlers.plib, find Code:
$owner =~ /.+?<STEAM_[0-9]+:([0-9]+:[0-9]+)>.*/; Code:
$owner =~ s!\[U:1:(\d+)\]!'STEAM_0:'.($1 % 2).':'.int($1 / 2)!eg; Code:
$uniqueid =~ s/^STEAM_[0-9]+?\://; Code:
$uniqueid =~ s!\[U:1:(\d+)\]!'STEAM_0:'.($1 % 2).':'.int($1 / 2)!eg; Code:
$uniqueid =~ s/^STEAM_[0-9]+?\://i; Code:
$uniqueid =~ s!\[U:1:(\d+)\]!($1 % 2).':'.int($1 / 2)!eg; |
Re: Fix SteamIDs for the new update
Works like a charm. Thanks!
|
Re: Fix SteamIDs for the new update
I'd try this but I'm sure they will release an update tomorrow or sometime this weekend.
|
Re: Fix SteamIDs for the new update
Quote:
We apologize for the lack of warning regarding the SteamID format change in today's update. It was our intent to give the community a heads-up before the change was released, but it was missed. The change was made to update TF2 to use the current SteamID format, which most other games on Steam and Steam itself uses. You will find that you can now use SteamIDs rendered by these other locations in your interactions with the engine. The engine will still recognize the old format, though, so your current server ban lists should still be valid. The conversion equation has already been posted by a community member, but here it is again: Old: STEAM_0:A:B New: [U:1:B*2+A] Example: STEAM_0:1:1234 ---> [U:1:2469] We're sorry for the problems this may cause while you update your scripts to use the new format. It was not our intent to disrupt your servers. -Eric |
Re: Fix SteamIDs for the new update
The newest 1.6 SM snapshot has fixed this. Anyone who converted their admins' steam ids is out of luck. You should have waited for the SourceMod team to put out a fix.
|
Re: Fix SteamIDs for the new update
Quote:
How about converting entire HLXCE databases to new format and use new IDs? |
Re: Fix SteamIDs for the new update
Thanks for this quick fix!
Now my TF2 servers have stats working again, and my other servers log properly too |
Re: Fix SteamIDs for the new update
Quote:
This is more of a quick patch to just make it work. |
Re: Fix SteamIDs for the new update
Quote:
I know you are busy but I just need to figure out if this is doable in a easy manner or what needs to be done either way. https://forums.alliedmods.net/showthread.php?t=244891 |
Re: Fix SteamIDs for the new update
This is awesome, thank you
|
All times are GMT -4. The time now is 23:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.