ABaumher / galaxy-integration-steam

Integration with Steam for Galaxy
Other
743 stars 17 forks source link

Last played is not working #21

Open Barleyman opened 1 year ago

Barleyman commented 1 year ago

I usually browse my games library based on "last played", as that shows, well, what I was playing.

The 1.0.5 plugin does work (thanks!) but it doesn't seem to pull this stat from Steam. GOG does remember what you started from GOG, but given it's been a while since we had a working Steam plugin, it's not exactly up to date.

I can find and start games manually just fine, though, so my library is pulled from Steam with new purchases.

ABaumher commented 1 year ago

Steam can give us this info (and maybe does somewhere) but right now i don't think we get it. The good news is that there may be a call we can use to get it that will have the benefit of making our code less terrible (it'll get the games as well, so we don't have to use a different, terrible call). It's going to need testing though, so you may have to wait a bit, sorry.

ABaumher commented 1 year ago

Update: we do get that info, i'll need to dig into why it's not working. I'm prioritizing getting to 2.0, which will simplify the code, so i apologize that i won't get to this immediately. This includes what messages we send and receive to/from steam, which will make things like this easier to debug and fix. If you are curious, the current process of moving to 2.0 is over at #17

Barleyman commented 1 year ago

No need to apologize for making a free tool that restores GOG to usefulness.. As for getting the information from Steam, obviously the old plugin does that somehow, so you don't have to figure out the relevant API call from scratch. Being able to parse the code, however :-)

ABaumher commented 1 year ago

looked at the messages we use. Is your profile private, by any change? our call might be using a public-only service call, so it wouldn't get that info. If it is private, you could check to see if this works as expected by swapping to public, at least temporarily. It's not the ideal solution so i won't close this if that does work, but it would be useful information going forward to look for a better solution.

Barleyman commented 1 year ago

I wonder if this didn't have something to do with wiping the steam database (as suggested), I installed it on my 2nd computer now and skipped that part - It's pulling last played data apparently.

And I didn't touch the privacy settings.

ABaumher commented 1 year ago

it's possible that we just didn't fill that database back up, as that can take some time. First runs from an empty db are always slow, because it needs to cache everything. good to know that was likely the issue.