Jump to content


Photo
Question

how can i get my games?

node.js node-steam-user

  • Please log in to reply
21 replies to this topic

#1 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 19 August 2018 - 12:18 AM

how can i get friends/mine games using node-steam-user?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,787 posts

Posted 19 August 2018 - 12:53 AM

https://github.com/D...er#getownedapps



#3 DalexHD

DalexHD

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 19 August 2018 - 03:22 AM

Is there any way to get friends game list? I know that steam api, provides it, but if the friend has private profile (private info o ly for friends), how could I get it? Currently, before verifying my users on csgo, they need to launch csgo, and then, I can see which game is playing via playersummaries. Is there any way to bypass that?

#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,787 posts

Posted 19 August 2018 - 02:14 PM

No, it's not possible to get a friend's games list except through the WebAPI.



#5 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 23 August 2018 - 03:48 AM

enablePicsCache = true

function login(username, password, code) { 
     let client = new Steam.CMClient(); 
     let user = new SteamUser(client, {enablePicsCache: true}); 
     user.logOn({"accountName": username,"password": password, "authCode": code, promptSteamGuardCode: false});
}

if im loggining from 5 accounts and do user.getOwnedApps(); on last account, it will return all games from all these 5 accounts, not from only last account. why??


Edited by FunnyCheeze, 23 August 2018 - 03:52 AM.


#6 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 23 August 2018 - 11:33 AM

help. user.getOwnedApps() returns all cache games from ALL logged accounts!



#7 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,787 posts

Posted 23 August 2018 - 03:01 PM

It's not, you're doing something wrong.



#8 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 24 August 2018 - 03:31 AM

what i can do wrong, if empty account returns array 

[5,7,8,90,92,205,211,215,218,219,310,410,440,480,510,564,570,575,630,635,640,730,740,745,760,761,764,765,766,767,1007,1213,1273,1840,2145,2403,4270,4940,8230,8680,8710,8730,8770,13180,13260,17505,17510,17515,17520,17525,17530,17535,17550,17555,17575,17585,17700,17705,17730,17740,18010,18030,22150,24920,27040,34120,41005,41015,41040,41080,42300,42320,42750,43210,55280,61800,61810,61820,61830,63220,70010,72310,72780,91720,92500,96810,111710,202351,202352,203300,203600,208050,212542,215350,215360,216280,216840,218800,220070,221410,223160,223240,223250,223910,224620,229950,230030,231390,233780,235780,236390,236600,236650,237410,238670,238690,238960,241100,243730,243750,244310,248210,250820,255470,258680,259080,261020,261140,261310,261820,261980,265360,266910,294420,301070,302530,302550,304930,311730,312070,313250,315420,316000,319070,320420,321770,322050,323010,332850,355840,366490,373300,374980,381690,382030,396050,399030,399080,399150,399160,399170,399190,399200,399210,399220,399290,399300,399310,399320,399330,399340,399350,399360,399370,399380,399390,399400,399440,399450,399470,399480,399490,399500,399510,399740,401530,405270,405630,406790,407350,413080,413090,413100,424690,438100,443030,443510,476580,503590,551410,568880,588460,613220,624820,733580,736120,744350,763700,795560,807210,817760,858280,875860,891390]


#9 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,787 posts

Posted 24 August 2018 - 12:11 PM

Looks like that account owns these apps, beyond the basic ones everyone owns:

  • 730 - CS:GO
  • 745 - CS:GO SDK
  • 236390 - War Thunder (free on demand)
  • 238960 - Path of Exile (free on demand)
  • 304930 - Unturned (free on demand)
  • 311730 - Dead or Alive 5 Last Round (free on demand)
  • 355840 - Survarium (free on demand)
  • 438100 - VRChat (free on demand)
  • 624820 - CS:GO - General
  • 763700 - Smart Mummy
  • 817760 - The Castle Disaster


#10 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 24 August 2018 - 08:48 PM

NO! This is doesnt work! user.getOwnedApps() returns all cache games from ALL logged accounts!

I tested:

Empty profile: https://steamcommuni...61198855742337/

Empty profile login: testemptyaccountwithoutgames

Empty profile password: testemptyaccountwithoutgame

(you can login and check it)

 

code:

 

734vQKkgdE0.jpg

 

 

console:

 

8I50L8yBDjo.jpg

 

 

profile screenshot: (with steamid64, you can check console and see the same steamid64)

 

ERhaYknT3v0.jpg

 

getOwnedApps array:

[5,7,8,90,92,205,211,215,218,219,310,410,440,480,510,564,570,575,630,635,640,740,760,761,764,765,766,767,1007,1213,1273,1840,2145,2403,4270,4940,8230,8680,8710,8730,8770,13180,13260,17505,
17510,17515,17520,17525,17530,17535,17550,17555,17575,17585,17700,17705,17730,17740,18010,18030,22150,24920,27040,34120,41005,41015,41040,41080,42300,42320,42750,43210,55280,61800,61810,
61820,61830,63220,70010,72310,72780,91720,92500,96810,111710,202351,202352,203300,203600,208050,212542,215350,215360,216280,216840,218800,220070,221410,223160,223240,223250,223910,224620,
229950,230030,231390,233780,235780,236600,236650,237410,238670,238690,241100,243730,243750,244310,248210,250820,255470,258680,259080,261020,261140,261310,261820,261980,265360,266910,294420,
301070,302530,302550,312070,313250,315420,316000,319070,320420,321770,322050,323010,332850,366490,373300,374980,381690,382030,396050,399030,399080,399150,399160,399170,399190,399200,399210,
399220,399290,399300,399310,399320,399330,399340,399350,399360,399370,399380,399390,399400,399440,399450,399470,399480,399490,399500,399510,399740,401530,405270,405630,406790,407350,413080,
413090,413100,424690,443030,443510,476580,503590,551410,568880,588460,613220,733580,736120,744350,795560,807210,858280,875860,891390,930400]

(for example user.ownsApp("480") will return true)

 

 

 

I think the problem is cause enablePicsCache save apps info to some cache file and get it when test.js starts with cache info from another accounts. (In which I logged before this test, which have these games), so i think i need clearPicsCache method. 

 

 

 

Hope you understand me  :)


Edited by FunnyCheeze, 25 August 2018 - 03:35 AM.


#11 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,787 posts

Posted 24 August 2018 - 10:23 PM

I think the problem is cause enablePicsCache save apps info to some cache file and get it when test.js starts with cache info from another accounts. (In which I logged before this test, which have these games), so i think i need clearPicsCache method.

 

I assure you that it doesn't.

 

z0DeG.png



#12 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 25 August 2018 - 03:25 AM

I assure you that it doesn't.

 

 

So why did i get 204 apps in empty account?  What am I doing wrong? Can you test my account? login: testemptyaccountwithoutgames pass: testemptyaccountwithoutgames

upd: guard off


Edited by FunnyCheeze, 25 August 2018 - 03:49 AM.


#13 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 25 August 2018 - 05:53 AM

my bad.. that's steam apps! 

can i get appname by appid? like you?

 

  • 730 - CS:GO
  • 745 - CS:GO SDK
  • 236390 - War Thunder (free on demand)
  • 238960 - Path of Exile (free on demand)
  • 304930 - Unturned (free on demand)
  • 311730 - Dead or Alive 5 Last Round (free on demand)
  • 355840 - Survarium (free on demand)
  • 438100 - VRChat (free on demand)
  • 624820 - CS:GO - General
  • 763700 - Smart Mummy
  • 817760 - The Castle Disaster


#14 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,787 posts

Posted 25 August 2018 - 05:06 PM

https://github.com/D...tokens-callback



#15 Royalgamer06

Royalgamer06

    Advanced Member

  • Member
  • PipPipPip
  • 87 posts

Posted 30 August 2018 - 05:06 PM

Or check McKay's IRC bot script for an alternative way  ;)



#16 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 14 September 2018 - 08:43 PM

okey, sometimes I have this:

 
Bot gets ownedApps with an app that he does not have! (in my case PUBG's appid: 578080)
 
 

returned array:

[5,7,8,90,92,205,211,215,218,219,310,410,440,480,500,510,513,550,563,564,570,575,630,635,640,730,740,745,760,761,764,765,766,767,1007,1213,1273,1840,2145,2403,4000,4270,4940,8230,8680,8710,8730,8770,13180,
13260,17505,17510,17515,17520,17525,17530,17535,17550,17555,17575,17585,17700,17705,17730,17740,18010,18030,22150,24920,27040,34120,38830,41005,41015,41040,41080,42300,42320,42750,43210,55280,61800,61810,
61820,61830,63220,70010,72310,72780,91720,92500,96810,109400,111710,200110,202351,202352,203160,203290,203300,203600,206210,208050,208090,208650,208790,208791,208792,208793,208795,208796,208797,208798,
208799,208800,208806,208807,208808,208809,208810,208811,208812,208813,208814,208817,208818,212542,215350,215360,216280,216840,218230,218620,218680,218800,220070,221410,222860,223160,223240,223250,223530,
223540,223910,224620,226320,227040,227050,229950,230030,230410,231390,233780,235780,236110,236600,236650,237410,238090,238670,238690,241100,242050,243730,243750,243870,244310,248210,250820,254260,255470,
258680,259080,261020,261140,261310,261820,261980,262410,264810,265360,265630,266910,267381,271590,287920,289650,291550,294260,294420,299360,301070,302530,302550,304050,304390,304930,311340,312070,313250,
315420,316000,319070,320420,321770,322050,323010,324331,324332,324333,330960,332850,333930,335240,344600,346900,349700,356370,356472,356473,356474,356620,359550,362003,366490,368500,368870,373300,374980,
376890,381570,381690,382030,389570,391460,396050,399030,399080,399150,399160,399170,399190,399200,399210,399220,399290,399300,399310,399320,399330,399340,399350,399360,399370,399380,399390,399400,399440,
399450,399470,399480,399490,399500,399510,399680,399740,401530,401627,401634,405033,405270,405630,406790,407350,407472,407473,407530,412940,413080,413090,413100,415650,417461,417860,417962,417973,417974,
418930,420750,424280,424690,427601,429881,433850,438100,439700,443030,443510,444090,450790,455010,461960,476580,503590,530620,551410,568880,578080,588460,596350,598210,613220,622590,623990,624820,654310,
657200,666220,733580,736120,744350,795560,807210,813000,827220,858280,875860,891390,930380,930400]

Account's games:

https://steamcommuni.../games/?tab=all

 

This situation occurs on 1 account out of 50.
 
Thanks!


#17 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 15 September 2018 - 07:40 PM

this one too: https://steamcommuni.../games/?tab=all

array:

5,7,8,90,92,205,211,215,218,219,310,410,440,480,510,564,570,575,630,635,640,730,740,745,760,761,764,765,766,767,1007,1213,1273,1840,2145,2403,4000,4270,4940,8230,8680,8710,8730,8770,13180,13260,17505,
17510,17515,17520,17525,17530,17535,17550,17555,17575,17585,17700,17705,17730,17740,18010,18030,22150,24920,27040,34120,41005,41015,41040,41080,42300,42320,42750,43210,55280,61800,61810,61820,61830,63220,
70010,72310,72780,91720,92500,96810,105600,111710,202351,202352,203300,203600,208050,212542,215350,215360,216280,216840,218620,218800,220070,221410,223160,223240,223250,223910,224620,229950,230030,
231390,233780,235780,236600,236650,237410,238670,238690,241100,243730,243750,244310,248210,250820,252490,252950,254260,255470,258680,259080,259380,259381,261020,261140,261310,261820,261980,264610,
265360,266910,267380,267381,271590,275590,286160,294420,301070,302530,302550,306690,311050,311210,312070,313250,315420,316000,319070,320030,320420,321770,322050,323010,323500,331900,332850,337660,
337661,339480,344140,348090,349830,351890,358150,359550,362003,366490,366660,366840,366841,366842,366848,366850,368870,373300,374300,374301,374980,381690,382030,384020,384021,391680,391750,396050,
399030,399080,399150,399160,399170,399190,399200,399210,399220,399290,399300,399310,399320,399330,399340,399350,399360,399370,399380,399390,399400,399440,399450,399470,399480,399490,399500,399510,
399730,399740,401530,401650,405270,405630,406790,407350,408610,413080,413090,413100,420750,422400,424690,431240,431960,433730,441600,443030,443510,450660,455130,461960,468410,476580,487210,494560,
499270,503590,545100,545990,548420,548421,548422,550140,551410,568880,578080,581450,582660,588460,588650,591710,612900,613220,622590,623990,624760,624820,657200,674940,690040,700580,733580,736120,
744350,744840,744841,795560,807210,813000,858280,875860,891390,930400

this one has PUBG (578080) in array, but in reality this game is not in the games list


Edited by FunnyCheeze, 15 September 2018 - 07:49 PM.


#18 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 19 September 2018 - 09:47 AM

hello? i tried login and get apps again with this account, still giving 578080


Edited by FunnyCheeze, 19 September 2018 - 09:50 AM.


#19 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 53 posts

Posted 23 September 2018 - 10:40 AM

okey, now i know why. bot checks apps from "recent played" too, but i need only apps from "all games" (because tab "recent played" sometimes shows games, which the user does not have [in this case: pubg])

TvPQWm78Quc.jpg

 

ltZ1HmUjsOE.jpg



#20 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,787 posts

Posted 24 September 2018 - 11:53 AM

Can you please log into that account in the Steam client, open the Steam console (Win+R -> steam://nav/console), and type this: licenses_for_app 578080

 

Then paste the output here.







Also tagged with one or more of these keywords: Question, node.js, node-steam-user

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users