Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register game before starting to idle #9

Closed
imaknightmare opened this issue Apr 28, 2023 · 8 comments
Closed

Register game before starting to idle #9

imaknightmare opened this issue Apr 28, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@imaknightmare
Copy link

When idling in csgo, the bot starts but does not start idling if the game has not been run at least once on the account, how is it possible to fix this so that there is no need to make the first login to the game on each account?

@3urobeat
Copy link
Owner

Hey, thanks for opening an issue!
I think a game must first be registered on an account, which is something the bot does not do. I'm not sure if and how it would be possible to register a game beforehand but I'm going to take a look at it. Thanks for the idea :)
I'll keep this issue open so I won't forget about it and I'll keep you updated when I have more to share

@3urobeat 3urobeat added the enhancement New feature or request label Apr 28, 2023
@3urobeat 3urobeat changed the title csgo idle Register game before starting to idle Apr 28, 2023
@tailon2k
Copy link

tailon2k commented May 18, 2023

Hii, I'm not a programmer but i manage to do it. I used the function:
https://github.com/DoctorMcKay/node-steam-user#requestfreelicenseappids-callback
so for example if you want to add csgo to your account you can add this: bot.requestFreeLicense(730);
I also add a delay between the requestFreeLicense function and the gamesPlayed function because sometimes it doesn't start the game although it was added successfully.

@3urobeat
Copy link
Owner

Ah, very cool! Thanks for sharing :)
I'll add it soon. (If you are familiar with Git and Pull Requests you could add it yourself if you want but no stress)

@tailon2k
Copy link

Sadly i don't know how to do that, also i did it with an older version of this app, i think it was the version 1.2 so is a little bit old..
I'm sure you can do it way better than me, but how i would do it in this version is: i would go to the bot.js file then in between the line 82 and 83 i would add a line like this: this.client.requestFreeLicense(config.playingGames); then use the setTimeout function on the line 83 (this.client.gamesPlayed(config.playingGames);). This way it will add the free games to the account that has been set on the cfg file. (which are the same as the idling games).
I know is maybe a bit confusing but i tried to explain it as good as i could. :)

@3urobeat
Copy link
Owner

Yeah, no worries, I'll take care of it soon. I was on vacation for the past few days.

@3urobeat
Copy link
Owner

Version 1.6 is out which adds support for automatically requesting licenses.
Please let me know if I missed something!

@tailon2k
Copy link

tailon2k commented May 26, 2023

I see you are using the same appID list for idling and reedem the free games (which for me is good) but, keep in mind that is rate limited to 50 per hour. So if someone adds more than 50 games or changes the list to a different in less than 1 hour the game(s) would not add to the account, just a little note, it would be cool to add that to the readme file.

@3urobeat
Copy link
Owner

Yeah, you are right, that would be a good idea. I didn't really think about that as 50 games is quite a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants