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

[TF2] My SteamID (v1.0 2014/09/12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silent MorningStar
New Member
Join Date: Sep 2014
Plugin ID:
4349
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Shows user SteamID
    Old 09-12-2014 , 12:38   [TF2] My SteamID (v1.0 2014/09/12)
    Reply With Quote #1

    Background:
    Due to recent updates in the auth thingy I had some troubles working with admin_simple.ini and admin.cfg, so I decided to code a plugin (for the fisrt time) which shows my steamid (from the server's point of view) and see what why the new format didn't work (btw it seems that they changed back to the old format ¬¬ and forgot to update/add the old steamid on console).

    Console screenshot:
    Click image for larger version

Name:	console_screenshot.png
Views:	2182
Size:	84.2 KB
ID:	137868

    Totally doesn't look like:
    Click image for larger version

Name:	game_screenshot.png
Views:	1841
Size:	64.3 KB
ID:	137869

    Changelog:
    • 2014-09-12 (v1.0)
      • Initial release.

    Commands
    :
    • sm_mysteamid -

    Install instructions:
    Copy mysteamid.sp to addons\sourcemod\scripting\ and mysteamid.smx to addons\sourcemod\plugins\
    Attached Files
    File Type: sp Get Plugin or Get Source (mysteamid.sp - 1626 views - 583 Bytes)
    Silent MorningStar is offline
    Pickles47
    Member
    Join Date: Jun 2013
    Old 09-12-2014 , 16:43   Re: [TF2] My SteamID (v1.0 2014/09/12)
    Reply With Quote #2

    TF2 now uses the new steam3 id (U:1:111111), sourcemod devs changed GetClientAuthString to return the old one (STEAM_0:1:1111111) in 1.6.2 as a quick patch. That's why your steamid is different, using an earlier version or 1.7 GetClientAuthString would return U:1:111111.
    See https://forums.alliedmods.net/showthread.php?t=246705
    __________________

    Last edited by Pickles47; 09-12-2014 at 17:08.
    Pickles47 is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 09-14-2014 , 04:11   Re: [TF2] My SteamID (v1.0 2014/09/12)
    Reply With Quote #3

    Its worth noting that a few other plugins like smac will return a list of steam2 ids (legacy STEAM with the smac_status command
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    arYx
    Member
    Join Date: Jun 2012
    Old 09-15-2014 , 17:19   Re: [TF2] My SteamID (v1.0 2014/09/12)
    Reply With Quote #4

    whats the command for steam3?

    if it is for steam2 GetClientAuthString(clieant, steamid, 21);

    any idea?
    arYx is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 09-15-2014 , 23:57   Re: [TF2] My SteamID (v1.0 2014/09/12)
    Reply With Quote #5

    Steam3 is "status" in client or server console......
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    arYx
    Member
    Join Date: Jun 2012
    Old 09-17-2014 , 04:28   Re: [TF2] My SteamID (v1.0 2014/09/12)
    Reply With Quote #6

    but what If I would want to read it out with a script? for example GetClientAuthString(clieant, steamid, 32); isn't working.
    arYx is offline
    ddhoward
    Veteran Member
    Join Date: May 2012
    Location: California
    Old 09-17-2014 , 04:44   Re: [TF2] My SteamID (v1.0 2014/09/12)
    Reply With Quote #7

    Quote:
    Originally Posted by arYx View Post
    but what If I would want to read it out with a script? for example GetClientAuthString(clieant, steamid, 32); isn't working.
    Well, if you're using SM 1.7, GetClientAuthId is a new native that can return either the Steam2, the Steam3, or even the community ID ("76561197968573709" for example).

    If you're still using SM 1.6, as you should be, I think you might have to stick to GetClientAuthString and then manually run some math on the old-style ID it gives you. Convert it yourself to the new format.




    Also, you shouldn't use "32" as the third argument for GetClientAuthString. Just do sizeof(steamid).

    GetClientAuthString(client, steamid, sizeof(steamid));
    __________________

    Last edited by ddhoward; 09-17-2014 at 04:45.
    ddhoward is offline
    Reply



    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 11:04.


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