1. There is no such thing as a "pending" ban or Steam admin. Anyone threatening your account is a scammer trying to scare you. Read more.

Why are 32bit SteamIDs always reported as STEAM_0:*

Discussion in 'SteamRep General Discussion' started by Smith525, Sep 9, 2017.

  1. Smith525

    Smith525 New User

    Messages:
    6
    Steam:
    STEAM_0:0:102502672
    As the title says, why is the first number always reported as 0 when it should represent the universe?
  2. Horse

    Horse Administrator SteamRep Admin

    Messages:
    76,857
    SteamRep Admin:
    STEAM_0:1:34690691
    What? This sounds like a question for Valve - We (SteamRep) are not Valve and are not affiliated in anyway.
  3. Roudydogg1

    Roudydogg1 SteamRep Admin Friend Community

    Messages:
    1,846
    SteamRep Admin:
    STEAM_0:0:58227918
  4. Smith525

    Smith525 New User

    Messages:
    6
    Steam:
    STEAM_0:0:102502672
    As far as I know, neither the Steam API or Dota 2 API return a user's SteamID 32. If this is the case then SteamRep is converting it either from or to 32bit format to display it.
  5. Smith525

    Smith525 New User

    Messages:
    6
    Steam:
    STEAM_0:0:102502672
  6. Horse

    Horse Administrator SteamRep Admin

    Messages:
    76,857
    SteamRep Admin:
    STEAM_0:1:34690691
    ok

    Hidden Content:
    **Hidden Content: Content of this hidden block can only be seen by members of (usergroups: Administrative, Moderating).**
  7. Roudydogg1

    Roudydogg1 SteamRep Admin Friend Community

    Messages:
    1,846
    SteamRep Admin:
    STEAM_0:0:58227918
    Well it explains the different universes and what they mean. If that's not what you were asking then sorry..but Valve would answer your question 100%
  8. Smith525

    Smith525 New User

    Messages:
    6
    Steam:
    STEAM_0:0:102502672
    It says X should represent the "Universe" but the first number in the steam3ID format should represent the same thing as I understand it. So any profile you put into steamrep, those 2 numbers are always mismatching.
  9. Enstage

    Enstage SteamRep Admin Partner Community Donator - Tier V

    Messages:
    4,705
    Steam:
    STEAM_0:1:52569926
    It really doesn't matter, do you honestly need to know what universe a users account belongs to? It makes no difference in identifying them.

    Like, searching any of these on SteamRep will return the same person:
    STEAM_0:1:52569926
    STEAM_1:1:52569926
    STEAM_2:1:52569926
    STEAM_3:1:52569926
    STEAM_4:1:52569926
    STEAM_5:1:52569926
  10. Smith525

    Smith525 New User

    Messages:
    6
    Steam:
    STEAM_0:0:102502672
    On steamrep it does yes, I suppose because they just ignore the Universe. But on other converter sites those do not work. Anyway, I'm not saying it matters, I am asking why it is always returned this way.
  11. Enstage

    Enstage SteamRep Admin Partner Community Donator - Tier V

    Messages:
    4,705
    Steam:
    STEAM_0:1:52569926
    Majority of simple converter functions you'll find ignore calculating the universe ID. For example, the one you generally find when Googling (note the first line of the function):
    PHP:
    function convert64to32($steam_cid)
    {
        
    $id = array('STEAM_0'); //This line, doesn't even both finding the universe, just sets it at 0
        //was another line here, but cloudflare was chucking security errors at it, removed it for this example
        
    $id[2] = bcsub($steam_cid'76561197960265728');
        if(
    bccomp($id[2], '0') != 1)return false;
        
    $id[2] = bcsub($id[2], $id[1]);
        list(
    $id[2], ) = explode('.'bcdiv($id[2], 2), 2);
        return 
    implode(':'$id);
    }
    So that's probably "why".
    Roudydogg1 likes this.
  12. Smith525

    Smith525 New User

    Messages:
    6
    Steam:
    STEAM_0:0:102502672
    I see, well I appreciate your response but I'd like to know the definite reason it isn't returned correctly.
  13. SilentReaper(SR)

    SilentReaper(SR) Retired Staff

    Messages:
    11,991
    SteamRep Admin:
    STEAM_0:0:89705646
    Its because nobody cares about any other "universe" for those are almost all for Valve internal use only, and the other one that has been used externally is no longer used for such. Therefore for ALL parties outside of Valve there is NO point to check, verify or w/e in which universe a user is, for those users aren't accessible outside of Valve.

    What's the point of checking for something that is not going to happen? All the answers are here:

    Z o o f i e and Roudydogg1 like this.
  14. Mattie!

    Mattie! SteamRep Admin

    Messages:
    5,241
    SteamRep Admin:
    STEAM_0:0:5712733
    I haven't yet glanced at the code used-- inherited from before I joined the site, but it's almost certainly what Enstage mentions. Probably more "correct" to fix that but wouldn't be a high priority (and playing with age-old behaviors like that sometimes has odd consequences).
  15. SilentReaper(SR)

    SilentReaper(SR) Retired Staff

    Messages:
    11,991
    SteamRep Admin:
    STEAM_0:0:89705646
    Also, SteamID32's are deprecated by Valve. They want you to use the Steam3ID in the format: [U:1:12345678]. Also with a "universe" in it ( [U:X:YYYY] where "X" is the universe and YYYY is the user's ID number). Its just that a lot of sites still use this SteamID32.
    Z o o f i e likes this.