Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking game time #2

Open
Bobcat90 opened this issue Jun 10, 2020 · 2 comments
Open

Tracking game time #2

Bobcat90 opened this issue Jun 10, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Bobcat90
Copy link

I mentioned this on the other integration, but the itch client seems to track game time and when the game was last played, is it possible to import this data to Galaxy? You can see this if you click on a game, there's a panel at the bottom showing hours played and last played:

@tauqua
Copy link
Owner

tauqua commented Jun 10, 2020

I'll investigate whether this is possible. Thanks for pointing this out.

@tauqua tauqua added the enhancement New feature or request label Jun 12, 2020
@tauqua tauqua added this to To do in Full Functionality Aug 8, 2020
tauqua pushed a commit that referenced this issue Nov 6, 2021
@Nutzzz
Copy link

Nutzzz commented Dec 13, 2023

I assume this integration is no longer seeing updates, but this issue bugs me, and I figured I'd record what I've discovered in my travels as a starting point if I, or someone else, decide to work on this:

  • FWIW, the itch client is on GitHub: https://github.com/itchio/itch
  • The itch client's record of this data can be read from the SQLite database in %AppData%\itch\db\butler.db, specifically the "last_touched_at" and "seconds_run" columns in the "caves" table. Note that this plugin is inspecting this table already, though not these columns.
  • However, since this integration uses the .exe of the program to launch the game directly, the itch client doesn't collect this info when launched from Galaxy.
  • The itch client can be opened to a specific game entry by using the URL "itch://games/[game_id]". I don't see a way to actually launch the game automatically, but I suppose it's easy enough to hit the Launch button once the client opens to the appropriate entry. Perhaps this behavior could be optional. In any case, this should be used when the Install button is clicked.
  • Alternatively, the integration could track the playtime itself. Ertego's plugin is doing this [and this plugin appears to have similar code to do this as well, but it is apparently not functioning].
  • For keeping optional settings and tracking playtime, this module might be helpful: https://github.com/tylerbrawl/Galaxy-Utils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants