-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
Fetch SteamGridDB assets when adding game to Steam #3543
Open
EmoonX
wants to merge
8
commits into
bottlesdevs:main
Choose a base branch
from
EmoonX:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(`bottle name + program name`` is used instead)
Pylint result on modfied files:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As of now, when using the "Add to Steam" feature, games are added to Steam in a barebones state. This PR improves upon that by fuzzy-searching the game title (program name) on SteamGridDB and, when available, downloading the respective assets and saving them to the designated user directory (
.../steam/userdata/<user_id>/config/grid
); in a similar vein to what happens when using Steam ROM Manager.Since Steam relies on appIDs for game identification, one is now generated by a hash method (for uniqueness) and saved to
shortcuts.vdf
. Same appID is then used for naming downloaded assets.Makes use of
steamgrid-proxy
, in particular the changes introduced by bottlesdevs/steamgrid-proxy#1 and bottlesdevs/steamgrid-proxy#2. However, these don't seem to be in production (https://steamgrid.usebottles.com/api) yet, so the only way to currently test it is by running the API webserver locally.Further improvements?
SteamGridDB search can occasionally fail or even return the wrong match. Perhaps one way to solve that would be adding a
Custom SteamGridDB Game ID
setting for individual programs. Will wait for further feedback.Type of change
How Has This Been Tested?
First of all, make sure
steamgrid-proxy
is running, on the correct port and with the right SteamGridDB API key.Add a game executable to a bottle, renaming it if needed. Then right click ->
Add to Steam
. Open (or restart) Steam as needed. All the available assets (grid, hgrid, hero, logo and icon) should be loaded as expected.You can check for match correctness by comparing it to the
Add to Library
option: if the latter produces a nonempty grid for Bottles's library, then likewise both it and its sibling assets should be visible on Steam.before:
after: