View Single Post
Author Message
Nikkii
Member
Join Date: Feb 2012
Old 08-21-2014 , 19:31   Fix SteamIDs for the new update
Reply With Quote #1

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]+)>.*/;
Add this before it:
Code:
$owner =~ s!\[U:1:(\d+)\]!'STEAM_0:'.($1 % 2).':'.int($1 / 2)!eg;
In scripts/hlstats.pl, find
Code:
$uniqueid =~ s/^STEAM_[0-9]+?\://;
Add this before it:
Code:
$uniqueid =~ s!\[U:1:(\d+)\]!'STEAM_0:'.($1 % 2).':'.int($1 / 2)!eg;
In scripts/TRcon.pm, find
Code:
$uniqueid =~ s/^STEAM_[0-9]+?\://i;
Add this before or after it:
Code:
$uniqueid =~ s!\[U:1:(\d+)\]!($1 % 2).':'.int($1 / 2)!eg;
__________________
Owner of ProbablyAServer, a server without game changing mods and donation benefits

RCON Helper | [TF2] LogUpload | CCC Donator Tags | PHP Steam API Wrapper

Last edited by Nikkii; 08-22-2014 at 07:53.
Nikkii is offline