DoctorMcKay / node-globaloffensive

A Node.js module to connect to and interact with the CS2 game coordinator. Mostly used to get item data.
https://www.npmjs.com/package/globaloffensive
MIT License
262 stars 61 forks source link

No GC response #18

Closed kiwec closed 4 years ago

kiwec commented 5 years ago

CSGO was launched on the account ; it is level 2 in-game.

Logging in to Steam...
Logged in to Steam as [some SteamID]
Connecting because we're playing CS:GO
Sending GC message ClientHello
Sending hello, setting timer for next attempt to 2000 ms
Sending GC message ClientHello
Sending hello, setting timer for next attempt to 4000 ms
# etc.

Here's the entire source code : https://gist.github.com/kiwec/48dc3a12bd1b31064ad7037ca982cc37

Any ideas as to why it doesn't work ?

DoctorMcKay commented 5 years ago

Does your account own CS:GO?

kiwec commented 5 years ago

CSGO was launched on the account

DoctorMcKay commented 5 years ago

Maybe the GC was down at the time.

kiwec commented 5 years ago

Nope, it wasn't. I launched the game to test it.

fantik11 commented 5 years ago

Have this problem too

chavychaze commented 4 years ago

It looks like some problem with CS GO id(730) connection, cuz when I change to Team Fortness id(440), it connects fine. Any ideas?

DoctorMcKay commented 4 years ago

Does your account own CS:GO?

chavychaze commented 4 years ago

yes, for sure, but I definitely don't have team fortness

DoctorMcKay commented 4 years ago

TF2 is in Steam sub 0, so all Steam accounts own it without having to request a license for it.

When your bot "launches" CS:GO, does it display that on its profile?

chavychaze commented 4 years ago

and I also use steam key to login(mb it gives a clue)

chavychaze commented 4 years ago

TF2 is in Steam sub 0, so all Steam accounts own it without having to request a license for it.

When your bot "launches" CS:GO, does it display that on its profile?

CS GO also free to play now, or I should buy some premium account to have access. When I console.log csgo, or client variable, it gives some information from my steam account, so I think yes. It starts reconnecting when send a steam game key(730), and error occurs on this step

DoctorMcKay commented 4 years ago

CS:GO is free to play, yes, but it's not in Steam sub 0. You need to request a free-on-demand license (once) to actually own it.

chavychaze commented 4 years ago

thank you, I'll try it tomorrow, and thanks to answering me in such short period of time, thank you))

chavychaze commented 4 years ago

Still, don't work, requestFreeLicense on callback returns that err === null, but other two variables are empty arrays. Also, ask my friends steam key (he bought CS GO) and the result is the same. Maybe some problem with my code https://gist.github.com/chavychaze/b16994afc4a4549f903a830a8f3e933a

DoctorMcKay commented 4 years ago

You still need to specify your accountName even if you're logging in with a loginKey.

chavychaze commented 4 years ago

I updated the file to a working version. Thank you very much everything works fine. I think you can close this issue, cuz except me, this guys probably gives up))