GithubHelp home page GithubHelp logo

michael-n0813 / linux-idle-master Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 8.0 145 KB

Linux version of idle-master, a simple script that emulates being in a steam game to unlock trading cards.

License: GNU General Public License v2.0

Python 100.00%

linux-idle-master's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

linux-idle-master's Issues

Invalid cookie data, cannot log in to Steam

It has been a few months I've not been using Linux Idle Master. When I tried today, I got an error like cannot read badge data but I saw the 2.1 update and installed it.

Now I get this:

[ 03/09/2024 03:56:46 PM ] WELCOME TO IDLE MASTER - v2.1
[ 03/09/2024 03:56:46 PM ] Finding games that have card drops remaining
[ 03/09/2024 03:56:46 PM ] Reading badge page, please wait
[ 03/09/2024 03:56:46 PM ] Invalid cookie data, cannot log in to Steam
Press Enter to continue...

I'm following the same instructions as before, I've checked my cookie data more than twice, on different browsers.

steam-idle.py is using python2

process_idle = subprocess.Popen(["python2", "steam-idle.py", str(appID)])

By running steam-idle.py with python2, the python libraries installed through the package manager as indicated in the example in the README for Arch are python 3 versions so they fail to be found by python2.

Setting the subprocess to open with python instead of python2 seems to work fine.

Error launching steam-idle with game ID

Hi,

I am getting the below error, starting today:

[ 10/12/2022 09:44:14 PM ] WELCOME TO IDLE MASTER
[ 10/12/2022 09:44:14 PM ] Finding games that have card drops remaining
[ 10/12/2022 09:44:15 PM ] 11 badge pages found. Gathering additional data
[ 10/12/2022 09:44:28 PM ] No games have been blacklisted
[ 10/12/2022 09:44:28 PM ] Idle Master needs to idle 6 games
[ 10/12/2022 09:44:29 PM ] Starting game App 1252330 to idle cards
[ 10/12/2022 09:44:29 PM ] Error launching steam-idle with game ID 1252330
Press Enter to continue...

(and then it exits)

Seems that ID belongs to Deathloop, not sure if it is relevant. Tried blacklisting it, and the next App doesn't work either, so I assume something changed on Steam side?

settings.txt looks OK.

Script does not switch to the next game

Hello !

Thanks for making this for Linux, it works fine, except for a little detail : whenever the current game being processed is done and there's no drops anymore for it, the script just goes to sleep and doesn't switch to the next game, I have to restart it.

Sample log :

[ 08/13/2023 11:04:10 PM ] Checking to see if App 257350 has remaining card drops
[ 08/13/2023 11:04:13 PM ] Suspending operation for App 257350
[ 08/13/2023 11:04:13 PM ] Closing game App 257350
[ 08/13/2023 11:04:13 PM ] App 257350 took 4:15:39 to idle.
[ 08/13/2023 11:04:13 PM ] Sleeping for 5 minutes.
[ 08/13/2023 11:09:14 PM ] Sleeping for 5 minutes.
[ 08/13/2023 11:14:15 PM ] Sleeping for 5 minutes.
[ 08/13/2023 11:19:16 PM ] Sleeping for 5 minutes.
[ 08/13/2023 11:24:17 PM ] Sleeping for 5 minutes.
[ 08/13/2023 11:29:17 PM ] Sleeping for 5 minutes.

Is there something I'm missing or is that a bug?

Logging error when some games were skipped

Hello :)

When skipping some games and idle-master completes, it prints out an error upon exiting.

Not a big issue since the script finished gathering all cards, but... :)

Traceback (most recent call last):
  File "/home/aterizak/dev/linux-idle-master/./start.py", line 359, in <module>
    logging.warning(Fore.YELLOW + numSkip + " games skipped" + Fore.RESET)
                    ~~~~~~~~~~~~^~~~~~~~~
TypeError: can only concatenate str (not "int") to str

SteamAPI_Init() failed

[ 07/23/2023 03:24:43 PM ] Idle Master needs to idle 2 games
[ 07/23/2023 03:24:43 PM ] Starting game App 261570 to idle cards
Loading Linux 64bit library
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
[ 07/23/2023 03:24:44 PM ] App 261570 has 5 card drops remaining
[ 07/23/2023 03:24:44 PM ] Sleeping for 15.0 minutes

and I don't see myself playing a game when connected on Steam.

Error launching steam-idle with game ID

Hello,

i've tried using your application, it starts to scan my library just fine but when it tried to launch a game it failed with the following error message

[ 09/08/2022 04:41:53 PM ] WELCOME TO IDLE MASTER
[ 09/08/2022 04:41:53 PM ] Finding games that have card drops remaining
[ 09/08/2022 04:41:54 PM ] Reading badge page, please wait
[ 09/08/2022 04:41:54 PM ] No games have been blacklisted
[ 09/08/2022 04:41:54 PM ] Idle Master needs to idle 40 games
[ 09/08/2022 04:41:54 PM ] Starting game App 379720 to idle cards
[ 09/08/2022 04:41:54 PM ] Error launching steam-idle with game ID 379720
Press Enter to continue...

Why does it fail to launch the game? Can I enable a more verbose logging output?

Thanks in advance :)

proxy

Du you have any idea how I can use this script with proxy?

Feature request : automatically retrieve steamLoginSecure from the chromium browser

For the record : with a bit of JavaScript and a quick-and-dirty 1-line addition to start.py, it is possible to automatically retrieve steamLoginSecure from a chromium browser :

master...Saroumane:linux-idle-master:master

Prerequisites :

Node.js must be installed.
For example with :
$ sudo pacman -Suy nodejs

Install rookie from https://github.com/thewh1teagle/rookie/tree/main
For example with :
$ npm install @rookie-rs/api

Caveat : this js script is intended only for chromium browsers, but rookie supports also other browsers.

start.py script lacks a shebang

The start.py script lacks a shebang on first line ( #!/bin/env python )
So : if the user does not follow the safe way (recommended in README.txt) to invoke the script :
python ./start.py
Then the script is run as a bash file and the desktop hangs after a few seconds (at least on my Ubuntu 21.10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.