Raised This Month: $32 Target: $400
 8% 

Fix SteamIDs for the new update


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode