JustArchiNET / ArchiSteamFarm

C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
Apache License 2.0
11.25k stars 1.05k forks source link

Add support for steam family sharing #225

Closed JustArchi closed 8 years ago

JustArchi commented 8 years ago

I think it's not possible to receive any steam notification when other user tries to launch a game when we're farming already, so it'd involve new bot config property such as FamilySharingSteamIDs as HashSet<ulong> which would allow users to !status and !pause only.

There should be a notification of user starting a game though, so I could probably add reverse-engineered logic for that and don't farm until user stopped playing. This is optional though, as with above property user could decide himself when bot is farming and when not.

Although that's plans for now, I'll need to check how it's implemented before deciding which approach to take, wishlist.

JustArchi commented 8 years ago

Another random idea: I'm wondering if it's possible to get allowed steamIDs for family sharing from steam client itself, this would be even better as there would be no need of extra property. I'm not sure if that's possible though.

Piehthyte commented 8 years ago

I know this doesn't answer your question but you can use something like this with an API key.

https://api.steampowered.com/IPlayerService/IsPlayingSharedGame/v0001/?key=%s&steamid=%s&appid_playing=4000

JustArchi commented 8 years ago

This doesn't help at all, it requires not only steamID but also appID, totally opposite of what I'm trying to achieve.

Thanks for heads up though.

irmandos commented 8 years ago

I believe it is possible to play a game when farming in offline mode. I can try to verify this but I am almost certain I did it by accident over the weekend.

JustArchi commented 8 years ago

It should not be possible.

Adziej commented 8 years ago

I'm in same situation as irmandos. Account has offline farming activated but I'm logged in and playing other game and still receive card drops. I don't know if it's a bug or what but that's great. :smile:

JustArchi commented 8 years ago

... Unbelievable.

lainverse commented 8 years ago

I don't have offline farming on any accounts, but I do recall receiving some occasional drops from other games while playing a game like time between bot's attempts to connect and report game activity occasionally counted.

...on the other hand when I going away from my PC with active game I rarely end up in a situation when ASF takes priority and my real Steam client ends up disconnected and refuse to login until I reboot ASF.

JustArchi commented 8 years ago

And this is definitely Volvo fuckup because ASF doesn't include code for forcing reclaim of game session (which your steam client does when you want to launch a game while ASF is farming). If ASF tries to launch a game while you're playing, it will get disconnected, same as it happened with older versions before I moved to event-based scheme.

lainverse commented 8 years ago

Thought so. BTW, is there a way to auto-disconnect when a real client attempts to connect? It doesn't happen often, but it's really annoying to reboot ASF to be able to login. At least I have it on the same PC I using for gaming.

JustArchi commented 8 years ago

Why do you need to do that? You can have ASF and real steam client running at the same time on the same account, even from same PC.

lainverse commented 8 years ago

I haven't asked to keep it that way while the real client is logged in, but only when real client attempts to login. Because when ASF "takes priority" I can't login back into real client until I stop ASF. Alternatively I can close a game and try to restart whole Steam client. Never tried to do so since stopping ASF is much easier for me. It just asks me to type my login credentials again and again until I stop ASF.

JustArchi commented 8 years ago

Then it's Volvo fuckup once again, and ASF can't even detect when it happens, because it's impossible for it to guess the difference between farming a game and farming a game that made you disconnect because of fuckup. Nothing to fix on my side, even if I wanted.

Besides, this is not the right issue for such discussion, as it has nothing to do with family sharing.

JustArchi commented 8 years ago

Bump priority due to non-hold issue that is being open for nearly 4 months now.

JustArchi commented 8 years ago

https://github.com/JustArchi/ArchiSteamFarm/releases/tag/2.1.5.5

Feedback and tests welcome, I tested it only briefly and it looks OK to me 😀