ArchiSteamFarm icon indicating copy to clipboard operation
ArchiSteamFarm copied to clipboard

Add FarmingOrder by OwnedCards and BadgeLevels

Open iFantz7E opened this issue 9 years ago • 13 comments

I wish my main account farms order by my owned cards from each game that I got from my bots first. And more options to farms order by badge level of each game.

Example for OwnedCards: Magma Tsunami - 20 cards owned - 5 cards remaining Particula - 16 cards owned - 4 cards remaining

Example for BadgeLevels: Lucius - badge level 4 - 3 cards remaining Paranormal Psychosis - badge level 1 - 3 cards remaining

Suggest: OwnedCardsAscending - Try to farm games with lowest number of cards owned first (if owned cards are more than half set) OwnedCardsDescending - Try to farm games with highest number of cards owned first (if owned cards are more than half set) BadgeLevelsAscending - Try to farm games with lowest number of badge levels first BadgeLevelsDescending - Try to farm games with highest number of badge levels first

iFantz7E avatar Mar 22 '17 15:03 iFantz7E

While badge level can be read from badge page, which is good because it's basically free request, I don't see cards number anywhere, and I'm definitely not going to fetch inventory just to see how many cards given user has. Is there any place on badge page where you can read how many cards you have?

JustArchi avatar Mar 22 '17 15:03 JustArchi

Can ASF read this example page http://steamcommunity.com/my/gamecards/407750/ ?

iFantz7E avatar Mar 22 '17 15:03 iFantz7E

Yes, but this won't return number of cards if badge is ready to be crafted. You can't know if you have 30 cards or just 5 required for badge.

JustArchi avatar Mar 22 '17 15:03 JustArchi

I think yes

(1)

2017-03-22 16:06 GMT+01:00 Łukasz Domeradzki [email protected]:

While badge level can be read from badge page, which is good because it's basically free request, I don't see cards number anywhere, and I'm definitely not going to fetch inventory just to decide how many cards given user has. Is there any place on badge page when you can read how many cards you have?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JustArchi/ArchiSteamFarm/issues/510#issuecomment-288428198, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7G-FweckCrKMjZlE1cAkN-n7r9OKSGks5roTjjgaJpZM4MlVwB .

reeporter avatar Mar 22 '17 15:03 reeporter

Nice, so it is possible from that page, but I doubt this info is anywhere on badge page, and asking for 200+ pages if somebody has 200 games to idle is not going to end good.

JustArchi avatar Mar 22 '17 15:03 JustArchi

Oh you meant the badge summary page where you see all availible badges...

I only see it on the specific badge page for a game

2017-03-22 16:15 GMT+01:00 Łukasz Domeradzki [email protected]:

Nice, so it is possible from that page, but I doubt this info is anywhere on badge page, and askin for 200+ pages if somebody has 200 games to idle is not going to end good.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JustArchi/ArchiSteamFarm/issues/510#issuecomment-288431141, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7G-EhCDz1T8B1KY1v3hbIK6GRyjeYhks5roTr_gaJpZM4MlVwB .

reeporter avatar Mar 22 '17 15:03 reeporter

The difference between parsing 7 badge pages and 700 pages if somebody has 700 games to idle is quite huge and totally not worth the network overhead, but since that info is there and it's still better than asking for inventory, I think both can be added as valid enhancements, since people don't really need to pick that option if they don't want to.

JustArchi avatar Mar 22 '17 15:03 JustArchi

Example in my each badge page: http://i.imgur.com/XqPANLC.png And I think request 200+ pages is not good too.

Maybe implement BadgeLevels first and hold OwnedCards to find more solutions.

iFantz7E avatar Mar 22 '17 15:03 iFantz7E

May add ReadyCrafts instead of OwnedCards.

ReadyCraftsAscending - Try to farm games that ready to craft and have lowest number of cards remaining first ReadyCraftsDescending - Try to farm games that ready to craft and have highest number of cards remaining first

iFantz7E avatar Mar 22 '17 15:03 iFantz7E

I dont know much about all of this but give my two cents. Maybe you dont need the badge page for counting the cards. Steampi has an endpoint that returns all cards, but i think you are using it already and know much better about it.

http://steamcommunity.com/id/STEAMID/inventory/json/753/6

You could additionaly parse that data to count cards. Maybe also cache them on disk?

2017-03-22 16:19 GMT+01:00 7-elephant [email protected]:

Example in my each badge page: http://i.imgur.com/XqPANLC.png And I think request 200+ pages is not good too.

Maybe implement BadgeLevels first and hold OwnedCards to find more solutions.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JustArchi/ArchiSteamFarm/issues/510#issuecomment-288432456, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7G-P2ucgRg6A3t2mBPsJddQAu4vm3rks5roTv3gaJpZM4MlVwB .

reeporter avatar Mar 22 '17 15:03 reeporter

(Which is even worse due to rate-limiting and crapload of inventory issues that ASF is dealing with since at least a year, if there was no info on the badge page then I'd reject the issue already).

JustArchi avatar Mar 22 '17 15:03 JustArchi

Without performance impact. I suggest to add 2 options - BadgeLevels and ReadyCrafts. These can check values just in main badge page.

iFantz7E avatar Mar 22 '17 16:03 iFantz7E

Since ReadyCrafts actual progress is impossible to check without querying game badge page, I decided to reject that one, as ASF has no way of knowing cards progress from just main page - only if badge is ready to be crafted or not, and that information alone is useless. BadgeLevels is OK though.

JustArchi avatar Jul 23 '17 03:07 JustArchi