Jump to content


Photo

Getting current game?

node.js node-steamcommunity

Best Answer Royalgamer06 , 08 May 2018 - 09:01 PM

You can do it with steam-user:
 

const steamid = 123456;
client.getPersonas([steamid], personas => {
console.log(personas[steamid].game_name); // Non-steam game name
});
Go to the full post


  • Please log in to reply
11 replies to this topic

#1 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 01 May 2018 - 03:31 PM

How do you get the current gameS of you and your friends?

(including non-steam game)



#2 TomYoki

TomYoki

    Advanced Member

  • Member
  • PipPipPip
  • 82 posts
  • LocationRiga, Latvia

Posted 01 May 2018 - 04:45 PM

For getting their Steam games you can use:

http://api.steampowe...nedGames/v0001/

 

Non-Steam games are not real games, so you cannot get them using any official Steam methods.

Only way I can think of is scraping their profiles, yet that would be very unreliable and inefficient way to do it.



#3 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 01 May 2018 - 07:52 PM

You sure there isn't something like

new SteamID("STEAMID").getGames() ?

am not asking for API methods. asking inside the doctormckay steam community section



#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 01 May 2018 - 09:36 PM

There's nothing in the steamcommunity module to get a user's games. Generally it doesn't include stuff for things you can do with the WebAPI.



#5 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 02 May 2018 - 11:08 AM

but you can't get the non-ingame name of a game?

 

am talking about what games the user is current playing


Edited by QuestionRealQuick1, 02 May 2018 - 11:08 AM.


#6 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 02 May 2018 - 11:15 AM

You should use GetPlayerSummaries to get what game someone is playing.



#7 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 02 May 2018 - 11:20 AM

yea but that don't show non ingame :/ thanks you anyways



#8 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 02 May 2018 - 02:16 PM

How would you get the name of the game someone is playing if they're not in-game?



#9 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 03 May 2018 - 11:35 AM

https://i.imgur.com/uQsOqNm.png

thats what am looking for meant non steam game.



#10 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 03 May 2018 - 11:46 AM

That was originally in there, dunno where it went.



#11 Royalgamer06

Royalgamer06

    Advanced Member

  • Member
  • PipPipPip
  • 87 posts

Posted 08 May 2018 - 09:01 PM   Best Answer

You can do it with steam-user:
 

const steamid = 123456;
client.getPersonas([steamid], personas => {
console.log(personas[steamid].game_name); // Non-steam game name
});

  • QuestionRealQuick1 likes this

#12 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 22 May 2018 - 06:30 AM

thanks ^^ figured there was a bit for that 







Also tagged with one or more of these keywords: node.js, node-steamcommunity

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users