Quote:
Originally Posted by brhvitor6
Hello every one, i'm trying to retrive the steam id like this: STEAM_0:0:50119518 but steam's web api just retuns this: 76561197960287930 (64bit steam id). someone know how i can retun the "simple" steam id from the web api?
|
Given
W=76561197960287930 and
STEAM_X:Y:Z:
- Subtract 76561197960265728 from W and assign. e.g. W = W - 76561197960265728 = 76561197960287930 - 76561197960265728 = 22202
- Y = W Mod 2. e.g. Y = 22202 Mod 2 = 0
- Z = (W - Y) / 2. e.g. Z = (22202 - 0) / 2 = 11101
- X is the universe, and depends on the game. SourceMod doesn't look at this part of the SteamID so it doesn't matter what you assign here, zero or one is typical. e.g. X = 0.
So here, the SteamID is STEAM_0:0:11101, Gabe Newell's SteamID, as confirmed by an online converter
here.
__________________