TSGK Clan Forum Forum Index TSGK Clan Forum
Half-Life 2 : Deathmatch TSGK Clan forum.
 
 CalendarCalendar   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

lukejamie07
May 01 1988 (36 year old)
Calendar
Calendar Calendar
Tue 30 Apr 2024 Wed 01 May 2024 Thu 02 May 2024 Fri 03 May 2024 Sat 04 May 2024 Sun 05 May 2024 Mon 06 May 2024
 
Birthday lukejamie07  
 
 
 
 
 
The time now is Wed May 01, 2024 00:18
All times are UTC + 2 (DST in action)
 Forum index » TSGK Servers » SRCDS Help
SteamID conversion tables
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
Osiris_TSGK
TSGK Member


Joined: 21 May 2006
Posts: 4668
Location: France

PostPosted: Tue Sep 22, 2015 11:50    Post subject:  SteamID conversion tables  

Conversion can be done between Legacy Format (old steamid), Modern Format (new steamid) and Community ID (SteamID64).

Considering that one SteamID is known:

Legacy Format : STEAM_0:x:y (ex. STEAM_0:0:6364948)
Modern Format : [U:1:z] (ex. [U:1:12729896])
Community ID : c (ex. 76561197972995624)

Legacy Format => Modern Format
Code:
formula. (y * 2) + x = z

ex. (6364948 * 2) + 0 = 12729896


Legacy Format => Community ID
Code:
formula. ((y * 2) - x) + 76561197960265728 = c

ex. ((6364948 * 2) - 0) + 76561197960265728 = 76561197972995624


Community ID => Legacy Format
Code:
If c is odd then x = 1
If c is even then x = 0

formula. ((c + x) - 76561197960265728) / 2 = y

ex. ((76561197972995624 + 0) - 76561197960265728) / 2 = 6364948


Community ID => Modern Format
Code:
formula. c - 76561197960265728 = z

ex. 76561197972995624 - 76561197960265728 = 12729896


Modern Format => Community ID
Code:
formula. 76561197960265728 + z = c

ex. 76561197960265728 + 12729896 = 76561197972995624


Modern Format => Legacy Format
Code:
If z is odd then x = 1
If z is even then x = 0

formula. (z - x) / 2 = y

ex. (12729896 - 0) / 2 = 6364948


Additionnal information about the differents formats of SteamID can be found there:
https://developer.valvesoftware.com/wiki/SteamID
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » TSGK Servers » SRCDS Help
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
You cannot post calendar events in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0633s ][ Queries: 15 (0.0125s) ][ Debug on ]