[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
About Steam syncing
« on April 5th, 2017, 12:08 AM »
You can quote me from yesterday: "Hmm, if everything goes well maybe I can finish this feature in a few minutes." I was off by a few minutes. I mean by 8 hours of work or something.

NEW: You can now import your Steam library anytime after your initial Barter import (or any time if you don't have a Barter account).

- Needs more testing[1], but it worked for me and a tester who agreed to click my link. :P I can also restore anyone's libraries to their initial state if they find any problems, but I'm confident it should all work. The only problem I can see occurring is people not seeing the 'Import from Steam' button. My logic for showing it is pretty complicated, especially when tired.

- If you have a Barter account and haven't imported your library, your first import will come from Barter. Subsequent imports will come from Steam. If you don't have a Barter account, obviously your first import will come from Steam. It's really fast (0.5s for 60 games but 0.8s for 3000 games, so it scales really well). I'll be keeping stats on imports in case I need to look into performance. If you get crashes while doing your first time import, be sure to notify me.

Now that that is done, I should be able to look into wishlist syncing as well. :)

UPDATE: Your library now shows your Steam playtimes again. The good news is, they're now updated about 100 times faster than they used to, so I can envision updating them automatically on a regular basis. For now, you can simply click that Import button to update your playtimes. Don't forget to play your games, it's what we're supposed to do when we're not trading them. ;)

NEW: games not found in your Steam library that were previously there (or in your Barter library) are now marked as 'Removed' in your list. It has no bearing on anything, it's just something I think you'd like to know.

NEW: if a game is marked as removed, you can go to its LT game page, and remove it definitely from your library by clicking, err, remind me what it was? 'Remove from Library', I think... I did that for Castle of Illusion. It felt good. 8-)

NEW: (Just for fun) Profile pages now show the total number of hours spent on Steam games. It's 'for fun' because unfortunately, it also includes everything you farmed... And some of us, including me, farm everything before they even start playing the games. Maybe I should only calculate the value for games played for more than 5 hours or something... I don't know. I may remove that feature later, because it's useless.
 1. I'm off to bed soon, so I'll check from my smartphone but if anything goes wrong, it'll have to wait until tomorrow. Worry not though, libraries aren't used yet in trading math, so it will have no bearing on your actions.

/u/humpaaa

  • Full Member
  • ▶ ¦ Yep
  • Posts: 190
  • Trades: 10

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: About Steam syncing
« Reply #2, on April 5th, 2017, 12:23 AM »
I'll do it, I'll do it. Even *I* miss the checkboxes. ;)
Not for libraries though, obviously. Today is about libraries ;)
Hopefully wishlist syncing will be a tad easier, as I don't need to import playtimes *and* I've already got my code written, I'd just need to duplicate it and tailor it for wishlists...

/u/humpaaa

  • Full Member
  • ▶ ¦ Yep
  • Posts: 190
  • Trades: 10

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222

joaoarena

  • Jr. Member
  • Posts: 99
  • Trades: 26
My real wishlist is on steam.
My wishlist here is for trading purposes.
I like to trade for games I do not own based on Want/Have Ratio, rather than other approaches.

/u/humpaaa

  • Full Member
  • ▶ ¦ Yep
  • Posts: 190
  • Trades: 10
Re: About Steam syncing
« Reply #6, on April 5th, 2017, 04:19 AM »
Quote from Lestrade 尚 on April 5th, 2017, 02:46 AM
150?!
Yeah, the account is a trading account only, i wanted to unclutter it a little bit.
Quote from ☺☺☺ on April 5th, 2017, 03:50 AM
Did you pay attention what you removed?

If you had your library listing previously synced from Barter, and if you had custom-added items (like owned DLC that don't show in public Steam library listing) there, then all those items have the 'Removed' tag here now.
Don't think i had custom added items, ever.
If i had some, then it happended by accident. The button to "add to library" is dangerously close to the wishlist button :P

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: About Steam syncing
« Reply #7, on April 5th, 2017, 09:54 AM »
Quote from ☺☺☺ on April 5th, 2017, 03:50 AM
Did you pay attention what you removed?
Yes.
Quote
If you had your library listing previously synced from Barter, and if you had custom-added items (like owned DLC that don't show in public Steam library listing) there, then all those items have the 'Removed' tag here now.
I don't think so.

Here's what LT does when importing from Steam:
- retrieves app IDs for your existing library (library IDs)
- gets all your Steam app IDs through API (API IDs)
- does its magic (not important here)
- then it substracts all API IDs from library IDs.
- from that point on, we have a list of library IDs that aren't returned by the Steam API.
- then I set a 'removed' flag to all those library IDs, with the added condition that (1) they're from the Steam store (i.e. not GOG, UPlay, etc, for which I have to way to retrieve libraries), and (2) they're classified as games inside the database.

Now, this is where the problem might happen: I get my 'game' classification from Barter imports, where a game is neither a package, nor a tool, nor 'junk' (trailers, videos, demos...), and, more importantly, not a DLC (DLCs have their own 'dlc' item type.)
It looks like you have hundreds of items classified as games that, in your opinion, shouldn't be (i.e. they're actually DLCs). In this case, I suggest that you tell me of a way to classify them as DLCs. The only way I see is to change my scraper to scrape from Steam (or SteamSpy now), rather than Barter. It's not a priority for me (unless the Barter admin asks me to), I'd like to finish the trading system and list editor first... I don't know what else to say. ;)
Quote
I understand the "removed" tag is nice little feature to spot games that have got revoked or otherwise removed from the Steam library. However, customly added items to library listing should be flagged somehow like Barter does,
Again, if you can custom-add something to your library, then it will NOT be touched by the process. If this happens (i.e. you clearly remember adding them manually and now it's marked as Removed), then please give me some examples. :)
Quote
Same with wishlist, since you can custom-add game to wishlist here on LT, such adds should be flagged, because Steam syncing should ignore them. (here I'm assuming you are making wishlist-syncing so (as Barter) that if previously wishlisted game is no longer present in Steam wishlist, then it gets auto-removed from LT wishlist at sync?)
I flag items as imported from Steam, whether it be the library or the future wishlist, yes. I'm not sure it's very important for the library, I'm thinking of dropping the flag, but for the wishlist it'll be important yes. I'm not 100% certain how I'll manage automatic wishlist drops, though. I'm thinking maybe I'd show these games in first position with a warning asking whether to delete them from your wishlist or add them to your LT wishlist. I'm also considering allowing you to 'protect' any item imported from Steam to be removed automatically. As for preventing them from showing up in your wishlist here, the only way will be to set quantity to 0, just like at Barter's.

PS: I wasted two hours last night trying to find out why 47 people (outside of myself) on LT had Kyodai Mahjongg in their libraries. They were all added automatically through the final automated Barter sync on March 23. I removed them manually, but I'm still wondering if there wasn't anything else weird. I've compared some libraries with Barter's and it looks fine to me, except for that dreaded addition of my own game to libraries. I'm not gonna lie, I hate it when I find a weird bug that's probably not my fault and still can't find a reason for it...

Akylen

  • Full Member
  • Posts: 218
  • Trades: 61

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: About Steam syncing
« Reply #9, on April 12th, 2017, 12:30 AM »
Yes, yes.
Just working on the comment system for now. Been busier than usual IRL since last weekend, too, so I can only work in rare sessions of 1-2 hours.