michael-n0813 / linux-idle-master

Linux version of idle-master, a simple script that emulates being in a steam game to unlock trading cards.
GNU General Public License v2.0
27 stars 8 forks source link

SteamAPI_Init() failed #15

Closed Animal-Machine closed 1 year ago

Animal-Machine commented 1 year ago
[ 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.

michael-n0813 commented 1 year ago

Hey, you need to have the steam client running while running this script.

Animal-Machine commented 1 year ago

Hey! My Steam client is running... flatpak version, maybe it has something to do with it?

michael-n0813 commented 1 year ago

Um, yeah the client is running in an encapsulated environment with separate localization. Meaning calling the API from outside this environment will check outside the encapsulated space and not be able to see steam running, that is kinda the point of flatpaks to create separate environments to the main system. Is there some way to run the script from within the flatpak environment? I'm sorry but I don't know much about running flatpaks, maybe have a look at Flatseal that may work for you?

Animal-Machine commented 1 year ago

Installing the .deb version will be easier