[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: What's up at Lestrade's?
« Reply #750, on July 25th, 2019, 10:08 AM »
FIX: Fixed various video playing issues on game pages:

- Opera now properly disables the pop out icon (which is useless because my player does pretty much the same thing), and thus I was able to use the Chrome codepath for it.
- Chrome (and thus Opera) now has the opening animation. (This is likely due to a bug in Chrome. It doesn't seem to trigger CSS animations if an element was moved around the DOM in the same function. I had to deport the animation start to an event.)
- Firefox no longer has weird window sizes during the opening animation, because it now only triggers the animation when the video's dimensions are properly retrieved.

Well, looks like we're good now...

Annoyer13

  • Newbie
  • Posts: 7
  • Trades: 0

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: What's up at Lestrade's?
« Reply #753, on August 11th, 2019, 11:00 PM »
NEW: the games page now offers a dropdown list of options to filter out stuff you might not want to see... You can include or exclude specific stores, app types, delisted status or package status.

Note: this isn't actually a new feature to me, I wrote it alongside the rest of the game page code, I just forgot to make it public or something. Maybe it means it's buggy, but since I've been using it without issues for literally years, I don't see any reason not to make it public.
Re: What's up at Lestrade's?
« Reply #754, on August 12th, 2019, 01:01 AM »
FIX: in the game matching page, the other user's side showed an incorrect number of items when they were hidden from view. (e.g. "150 more" instead of "10 more".)
This was due to my code incorrectly using the number of items in your side here.
Re: What's up at Lestrade's?
« Reply #755, on August 29th, 2019, 07:25 PM »
NEW: Worked on the Export feature.

- Added a "Steam only" option: don't export non-Steam items. (TF2 keys and such are considered non-Steam items, here.)
- The textarea will now indicate the length of the text inside. That's important because both websites targeted officially by the Export feature have a limit.
(a) Barter has a 40.000 character limit, although it can (thankfully) be avoided with a short manipulation. There's a warning that shows up if you choose the JSON format, with an additional link to the tutorial.
(b) SteamTrades has 60.000 character limits on both wishlist & tradables. I was able to confirm that the website counts line breaks as two bytes, instead of one. This is probably a leftover from the Internet Explorer area... I don't know. But I'm taking this into account when calculating the text size.
- Finally, I've modified the links to use a new shortened URL[1] for games. They will transparently be turned into full-form URLs, but in the meantime this saved about 10% off all list sizes. (I guess at this point, you can tell both my wishlist and tradables are JUST a couple kilobytes above 60.000 chars, so it's quite useful to me.)
 1. Note: it's encoded in base 64, I could have gone for a higher base by using more characters like @ or ! or commas, etc. but adding one more character only shaved about 3 bytes off the total list size for me, so it was useless. Removing the only two non-alphanumeric characters added about 300 bytes though, so I guess 64 was just the 'right' size for encoding game IDs. Nao out.
Re: What's up at Lestrade's?
« Reply #756, on August 29th, 2019, 09:10 PM »
FIX: Game pages will now show owners sorted by unfarmed playtime, that is, it will respect the data shown in the user's library. (Previously, it wouldn't remove farmed time from the recorded playtime.)
Re: What's up at Lestrade's?
« Reply #757, on September 6th, 2019, 04:22 AM »
FIX: SteamSpy stopped serving the 'all' version of its API, which is a real bummer (I suppose it got abused by other websites; Lestrade's would only retrieve it once in a while, and then cache it for further processing.)
I modified my code to instead recover the data I used to get there, but game by game. It'll take longer to update (I guess a week for the first pass..? Maybe a bit less?), but it'll get done eventually.
Well, I guess now there's not much that prevents me from directly scraping the Steam store... At least I'd be able to consolidate multiple APIs into a single process, ah ah.

/u/humpaaa

  • Full Member
  • ▶ ¦ Yep
  • Posts: 190
  • Trades: 10
Re: What's up at Lestrade's?
« Reply #758, on September 9th, 2019, 08:17 PM »
Quote from [Lestrades.com]Nao 尚 on August 29th, 2019, 07:25 PM
NEW: Worked on the Export feature.

- Added a "Steam only" option: don't export non-Steam items. (TF2 keys and such are considered non-Steam items, here.)
- The textarea will now indicate the length of the text inside. That's important because both websites targeted officially by the Export feature have a limit.
(a) Barter has a 40.000 character limit, although it can (thankfully) be avoided with a short manipulation. There's a warning that shows up if you choose the JSON format, with an additional link to the tutorial.
(b) SteamTrades has 60.000 character limits on both wishlist & tradables. I was able to confirm that the website counts line breaks as two bytes, instead of one. This is probably a leftover from the Internet Explorer area... I don't know. But I'm taking this into account when calculating the text size.
- Finally, I've modified the links to use a new shortened URL[1] for games. They will transparently be turned into full-form URLs, but in the meantime this saved about 10% off all list sizes. (I guess at this point, you can tell both my wishlist and tradables are JUST a couple kilobytes above 60.000 chars, so it's quite useful to me.)
 1. Note: it's encoded in base 64, I could have gone for a higher base by using more characters like @ or ! or commas, etc. but adding one more character only shaved about 3 bytes off the total list size for me, so it was useless. Removing the only two non-alphanumeric characters added about 300 bytes though, so I guess 64 was just the 'right' size for encoding game IDs. Nao out.
I love reading these updates so much. <3

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: What's up at Lestrade's?
« Reply #760, on September 14th, 2019, 12:26 AM »
FIX: I broke some scripts on the site earlier today by mistake, sorry about that. Should be fixed now. (For instance, it had become impossible to add games to your wishlist from a bundle page.)
Re: What's up at Lestrade's?
« Reply #761, on September 15th, 2019, 02:52 PM »
NEW: This is a quick hack I devised for my own use[1], like often here, except I couldn't be arsed to add a UI for it...
Go to one of your lists (library, wishlist, tradables, blacklist), and add the following to the URL: "?tag=195", and the list will now only show games that have the desired tag number. If there's already a question mark in your list's URL, just add ";tag=195" instead (a semicolon, rather than a question mark.)
To find a tag number, just find a game that has the tag you want, click its tag name, and the tag ID is in the URL, obviously.
 1. I'm trying to find a specific hidden object game I played months ago just by remembering a specific set of backgrounds it uses, but I'm at a loss right now...
Re: What's up at Lestrade's?
« Reply #762, on September 17th, 2019, 12:15 AM »
NEW: I'm testing out a new system where I'm showing Steam game banners for itch.io and Epic games, instead of a boring placeholder.

The idea is that I'm getting the 'related' items from those, and if one of them is on Steam, it's very likely that it's the Steam version, so I'm using its banner. If there are multiple Steam apps associated to the game, the oldest one will be used (it may not be a great fallback, so you might find errors here and there, feel free to report them, either here or on the game page, or by PM.)

Epic sample: https://lestrades.com/bundle/7305/
itch.io sample: https://lestrades.com/bundle/7330/

As you can see, I used a custom logo for itch.io, but I'm thinking of just using regular text like with Epic, for consistency.
PS: I'm also planning to do that for GOG and others, but I'm not in a hurry for anything. I was planning to support Groupees, but most of their associated Steam items are marked as children, rather than loosely related. I don't know. I guess I can take that data from their children, too.

/u/humpaaa

  • Full Member
  • ▶ ¦ Yep
  • Posts: 190
  • Trades: 10
Re: What's up at Lestrade's?
« Reply #763, on September 18th, 2019, 01:38 AM »
Seems like a good idea, to get rid of a lot of placeholders.
Visibility on the logos could be improved.

Suggestion:

Steam has colourfull banners for categories like "DLC (purple) or "Mod" (yellow).
Maybe style the EPIC and ITCH-Banners like them.

[Lestrades.com] Nao 尚

  • I'm Share-Locked
  • Administrator
  • Posts: 1,396
  • Trades: 222
Re: What's up at Lestrade's?
« Reply #764, on September 19th, 2019, 11:23 AM »
The advantage of showing the names as text is that it doesn't actually hide said category banners. I could simply move the store name to the right side of the banner and have it use a similar plain background, I actually started doing it this way before falling back to a drop shadow. The problem is that I have very limited space on banners :) Perhaps I should just write 'Epic' for Epic Games Store, and 'Rockstar' for Rockstar Social Club (I just realized the names actually overflowed in mobile mode, I'll have to reduce the font size for that.) But I don't know.
I'd say that for a start, it's a good one. :)
And I know a thing or two about incremental UI improvements, ah ah, see my post about the new Steam library interface!