How to ban with normal steam id

ZEROibisZEROibis Join Date: 2009-10-30 Member: 69176Members, Constellation
I try to ban in the web admin with lets say STEAM_0:0:64141512 and the ban does not show up. Do we need to convert the new steam ids into the old style to use them if so then what is the point of reporting steam ids in a way that we can not use...

Comments

  • invTempestinvTempest Join Date: 2003-03-02 Member: 14223Members, Constellation, Squad Five Blue
    NS2 has always used its own ID, called NS2ID, which can be converted to the standard "STEAM_0:n:x" format via a simple calculation.

    STEAMID to NS2ID = 2x + n
    Odd NS2ID = STEAM_0:1:((NS2ID - 1)/2)
    Even NS2ID = STEAM_0:0:(NS2ID/2)

    sv_status reports ID's in both formats for ease of use as most people are familiar with the STEAM_0 format rather than the NS2ID format.
  • ZEROibisZEROibis Join Date: 2009-10-30 Member: 69176Members, Constellation
    OK so it now reports a number that does not mean anything to users b/c they did not make any of their actual game code reverse compatible...
  • invTempestinvTempest Join Date: 2003-03-02 Member: 14223Members, Constellation, Squad Five Blue
    The SteamID is more important to users as that is what most people are accustomed to in source games. I doubt many people know that the NS2ID is just a different representation of their steamID.
  • FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
    STEAM_0:0:64141512
    128283024

    as said earlier, it is just the last part times 2 + the number between the colons. Since the first number of thwe steam id is always 0, the next is either 0 or 1 and the other is the unique identifier for that auth server, this id system works. Integer comparison is much faster than string comparison, so converting this into an all integer id makes sense.

    http://www.gamedev.net/topic/598968-string-vs-int-comparison-which-is-faster/
  • ZEROibisZEROibis Join Date: 2009-10-30 Member: 69176Members, Constellation
    You know what is faster, having 1 standard for your id.... now you got players giving you STEAM_0:0:64141512 instead of 128283024. So now you got to convert it yourself now which is faster a computer that does the shit automatically or me? This is just bad design is my point. If your going to show the real steam id just take that and internally convert it to the fancy number to store this way everyone is happy. Why does the user need to do the conversion themselves!?
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    sv_status still shows both versions of the SteamID afaik, so there shouldn't be any need for converting the values.
Sign In or Register to comment.