Raised This Month: $51 Target: $400
 12% 

Difference SteamID?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gilmon
Senior Member
Join Date: Feb 2011
Location: China
Old 09-23-2015 , 22:27   Difference SteamID?
Reply With Quote #1

Hello i notice something strange about steamid between sourcemod and some website result.

For example a player's steamid bySteam ID Finderwill be show as

Code:
"STEAM_0:0:12345678"
But in sourcemod this will be
PHP Code:
decl String:steamid[30];
GetClientAuthString(clientsteamidsizeof(steamid)); 
Code:
"STEAM_1:0:12345678"
or
Code:
"STEAM_1:1:12345678"
Any help about this? why?

Last edited by gilmon; 09-23-2015 at 22:28.
gilmon is offline
Send a message via MSN to gilmon
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 09-24-2015 , 01:56   Re: Difference SteamID?
Reply With Quote #2

"STEAM_0" vs "STEAM_1" has to do with which steam universe the game youre pulling the ID from uses. e.g. CS:GO uses "STEAM_1", whereas the same player can connect to CS:S and their ID would be "STEAM_0". The third scenario of "STEAM_0:1" vs ""STEAM_0:0" I think might be in your head. From my recollection, that digit is constant for any ID. For more info, look up converting from steam community ID to the steam ID forms you mention.

https://developer.valvesoftware.com/wiki/SteamID
__________________
ThatOneGuy is offline
SoulSharD
Member
Join Date: Oct 2013
Location: United Kingdom
Old 09-24-2015 , 06:29   Re: Difference SteamID?
Reply With Quote #3

Use GetClientAuthId instead of GetClientAuthString.

This way you can define what type of ID you want using:

PHP Code:
AuthId_Steam2/**< Steam2 rendered format, ex "STEAM_1:1:4153990" */     
AuthId_Steam3/**< Steam3 rendered format, ex "[U:1:8307981]" */     
AuthId_SteamID64/**< A SteamID64 (uint64) as a String, ex "76561197968573709" */ 
__________________

SoulSharD is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 09-24-2015 , 20:38   Re: Difference SteamID?
Reply With Quote #4

Quote:
Originally Posted by SoulSharD View Post
Use GetClientAuthId instead of GetClientAuthString.

This way you can define what type of ID you want using:

PHP Code:
AuthId_Steam2/**< Steam2 rendered format, ex "STEAM_1:1:4153990" */     
AuthId_Steam3/**< Steam3 rendered format, ex "[U:1:8307981]" */     
AuthId_SteamID64/**< A SteamID64 (uint64) as a String, ex "76561197968573709" */ 
That doesnt address the OPs questions...
__________________
ThatOneGuy is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-24-2015 , 21:09   Re: Difference SteamID?
Reply With Quote #5

Older Source games used to use STEAM_0 even though they should have used STEAM_1. The Valve games afflicted by this problem are, as of their last update, all on Steam ID 3 now (the [U:1:1234567890] format)

The :0: or :1: in SteamID2 depends entirely on the SteamID. If your community ID (aka SteamID64) is even, the number will be 0. If your community ID is odd, it will be 1.

In SteamID3, the middle number is actually the number after STEAM in Steam ID2.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-24-2015 at 21:11.
Powerlord is offline
gilmon
Senior Member
Join Date: Feb 2011
Location: China
Old 09-24-2015 , 23:34   Re: Difference SteamID?
Reply With Quote #6

Thanks everyone here, will going to check about it.
gilmon is offline
Send a message via MSN to gilmon
SoulSharD
Member
Join Date: Oct 2013
Location: United Kingdom
Old 09-25-2015 , 04:39   Re: Difference SteamID?
Reply With Quote #7

Quote:
Originally Posted by ThatOneGuy View Post
That doesnt address the OPs questions...
I was advising him to use GetClientAuthId, as GetClientAuthString is marked as deprecated.
__________________

SoulSharD is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 09-25-2015 , 10:33   Re: Difference SteamID?
Reply With Quote #8

Just use the right half of the steam ID and be done with it.

Coincidentally, GetSteamAccountID does precisely this.
Potato Uno 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 04:46.


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