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

Accessing the Steam Friends list [TF2]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Antithasys
Moderator
Join Date: Apr 2008
Old 09-12-2008 , 15:11   Accessing the Steam Friends list [TF2]
Reply With Quote #1

A few updates back valve added the ability to see the people in your friends list while looking at the scoreboard in TF2. They now have this little friend or person icon next to the players name.

I bring this up because I had a request to make peoples friends stick together on the autobalancer I just wrote. The request was to add friends when joining a server and then have the balancer make sure you guys are not separated by it.

Instead of basically recreating the friend system, I figured using the steam one was better, and since it appears you can get that information from within the game, it would also alleviate any map change storage issues related to creating my own list.

So my question is does anyone know any code, or where to go to get some code, to identify players friends in TF2?

Thanks in advance.
Antithasys is offline
GManNickG
Junior Member
Join Date: Feb 2008
Old 09-12-2008 , 21:37   Re: Accessing the Steam Friends list [TF2]
Reply With Quote #2

I'm sure that showing that information is client-side, since the server doesn't need to know who the clients friends are; the client does.
GManNickG is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 09-13-2008 , 02:03   Re: Accessing the Steam Friends list [TF2]
Reply With Quote #3

Hmm. Not promising.

So what would the best way to store this information then?

I have seen plugins do it with kvfiles and I have seen databases.

The kvfiles is interesting, but the database has long term benefits as well as multi-thread capability.

All I really want to do is allow for a client to store a few friends and have that information retained during a map load.

Anyone know the best solution?
Antithasys is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 09-24-2010 , 14:04   Re: Accessing the Steam Friends list [TF2]
Reply With Quote #4

Quote:
Originally Posted by Antithasys View Post
Hmm. Not promising.

So what would the best way to store this information then?

I have seen plugins do it with kvfiles and I have seen databases.

The kvfiles is interesting, but the database has long term benefits as well as multi-thread capability.

All I really want to do is allow for a client to store a few friends and have that information retained during a map load.

Anyone know the best solution?
I know this is an old thread. But did you ever get anything like this working?
__________________
ichthys is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 09-24-2010 , 15:57   Re: Accessing the Steam Friends list [TF2]
Reply With Quote #5

Access steam community page, parse it, store info. Basically a shitload of work.
FaTony is offline
Dragonshadow
BANNED
Join Date: Jun 2008
Old 09-26-2010 , 10:23   Re: Accessing the Steam Friends list [TF2]
Reply With Quote #6

https://forums.alliedmods.net/showthread.php?t=129763 might be able to do something with it
Dragonshadow is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-26-2010 , 11:53   Re: Accessing the Steam Friends list [TF2]
Reply With Quote #7

You would need to do what FaTony said, the friends marks on the scoreboard are entirely client-side.
__________________
asherkin 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 23:50.


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