This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Convert STEAMID to Steam Community ID


Post New Thread Reply   
 
Thread Tools Display Modes
teddyruxpin
Overseer of lost packets
Join Date: Feb 2008
Old 05-04-2008 , 16:03   Re: Convert STEAMID to Steam Community ID
Reply With Quote #61

Sorry to resurrect such an old thread but how would I use this to block and entire steam user group? I want to block a group of 200+ members from my hosts and can not seem to figure out how to make it pull down all the groups details and then give me a steam ID for each of them

Any tips would be greatly apperciated. Free cake and juice to all that help.

-Teddy
teddyruxpin is offline
Cooltad
Veteran Member
Join Date: Apr 2008
Old 05-05-2008 , 09:02   Re: Convert STEAMID to Steam Community ID
Reply With Quote #62

Before I say anything on doing so, what group do you wish to ban? Thats a lot of people.
Cooltad is offline
V I R U S
Senior Member
Join Date: Jul 2004
Location: Russia / Germany
Old 05-07-2008 , 06:31   Re: Convert STEAMID to Steam Community ID
Reply With Quote #63

Think about, group is nothing, everyone can leave it and still play on your server. Better get their Steam ID and ban every single member you not like...
__________________
V I R U S is offline
Send a message via ICQ to V I R U S
teddyruxpin
Overseer of lost packets
Join Date: Feb 2008
Old 05-07-2008 , 15:17   Re: Convert STEAMID to Steam Community ID
Reply With Quote #64

Quote:
Originally Posted by V I R U S View Post
Think about, group is nothing, everyone can leave it and still play on your server. Better get their Steam ID and ban every single member you not like...
Please re-read my post. I do not want to block the group. I want to block the group members by fetching the members of the group and then get their steam id's to block at the server level.

I can already get the steam community ID's easily enough off their group page by viewing the page source and pushing it through sed and awk to clean up. Just need some help converting those into steam id's so I can then block them.

As for which group this is I would rather not say.

-Teddy

Last edited by teddyruxpin; 05-07-2008 at 18:28.
teddyruxpin is offline
madlep
New Member
Join Date: May 2008
Location: Melbourne, Australia
Old 05-07-2008 , 19:03   Re: Convert STEAMID to Steam Community ID
Reply With Quote #65

I had the same issue a while back, and wrote something similar up in Ruby (if anyone is running a Rails based website, this might be useful).

It's a command line script at the moment, so some of the extra fluff at the end could be taken out if you're just after the functionality.

(It says 'php', but there were no 'ruby' tags )
PHP Code:
#!/usr/bin/env ruby
def steam_2_friend(steam_unique_id)
  
check_format steam_unique_id
  tokens 
steam_unique_id.split ':'
  
type tokens[1].to_i
  id 
tokens[2].to_i
  base 
76561197960265728
  
(id*2) + type base
end

def check_format
(steam_unique_id)
  
raise "Expected format is STEAM_0:1:123456789 provided id #{steam_unique_id} is not correct" unless steam_unique_id =~ /STEAM_\d+:\d+:\d+/
end

steam_unique_id 
ARGV[0]
profile_id steam_2_friend steam_unique_id

puts 
"Steam unique ID:#{steam_unique_id}"
puts "profile ID:#{profile_id}"
puts "profile page link:http://steamcommunity.com/profiles/#{profile_id}" 
madlep is offline
JDoc0512
Member
Join Date: Feb 2008
Old 05-17-2008 , 00:58   Re: Convert STEAMID to Steam Community ID
Reply With Quote #66

doesn't hlstatsx do this already?
JDoc0512 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-17-2008 , 08:40   Re: Convert STEAMID to Steam Community ID
Reply With Quote #67

Yes, it does. Why do you ask? There are plenty of other places where it would be useful to convert a Steam ID to a Profile ID.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
#Barracuda
Junior Member
Join Date: May 2008
Location: Germany
Old 05-31-2008 , 13:44   Re: Convert STEAMID to Steam Community ID
Reply With Quote #68

I wrote a PHP script similar to 8088's one, but it has some differences:
  • Fully object-oriented for PHP5
  • It outputs the player's status to a PNG-image
  • Internal caching for the generated images (5 minutes on default)
Because of the image generation, however, it's not possible to show up a menu with steam://-links like in 8088' script. But you could use the SteamProfile class to write a HTML-Based script for your own.

Some examples:

Online:


Ingame:


Offline:


You can find further information in this thread (german).
#Barracuda is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 05-31-2008 , 19:21   Re: Convert STEAMID to Steam Community ID
Reply With Quote #69

thanks alot man, testing it and it seems to be working fine...
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
KoST
Senior Member
Join Date: Jul 2005
Old 06-26-2008 , 05:40   Re: Convert STEAMID to Steam Community ID
Reply With Quote #70

here is anoter solution which requires no installation on the webserver. just insert a line of html to make it work.

http://forums.alliedmods.net/showthread.php?t=73268

__________________
KoST 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 12:48.


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