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

support for multiple banners #147

Open
papaj-na-wrotkach opened this issue Apr 10, 2023 · 4 comments
Open

support for multiple banners #147

papaj-na-wrotkach opened this issue Apr 10, 2023 · 4 comments

Comments

@papaj-na-wrotkach
Copy link

When hovering over Steam game in grid library view the banners show up.
Currently steamgrid supports only one image for banner, but most Steam games have multiple banners playing in slide show:

out.mp4

First and second are original Steam games and the third is a non-Steam game (banner trimmed but as you can see it's static)

I'd like to have multiple custom banners for non-Steam and steam games where for Steam games they should be added to existing banners - not overwrite them.

@nondetect
Copy link

nondetect commented Apr 10, 2023

There're not banners, when you are hovering mouse on game Steam shows screenshots from store page. You can use animated file in this case

@papaj-na-wrotkach
Copy link
Author

Yes, I know they are screenshots, but steamgrid uses the .banner.ext file for this type of image, so I called it by that name. I mentioned this in #148 and #146. The image shown for the most recently played game should be called header (Steam calls it header.jpg) and the name banner could be used for the "hovered" screenshots or other images.

The animated files are a really good idea, but they would "overwrite" the existing ones for Steam games. A solution for this would be a feature to automatically create animated images for banner type images. It's better to use the "native" method (the way Steam displays banners) if possible, otherwise this is the best solution.

This feature could automatically fetch screenshots or other existing images from Steam (and maybe other sources) and merge them with the user images (in the games folder). The user images would be named something like Game Title.banner.##.ext, where ## stands for image index. This would allow users to insert Steam-fetched images between their own images.

Example - the files in the user's directory look like this (0-based indexing)

  • Game Title.banner.00.jpg (1st one)
  • Game Title.banner.02.jpg (3rd one)
  • Game Title.banner.05.jpg (6th one)

The 1st image would be taken from the games directory, the 2nd from Steam, the 3rd from the games directory, the 4th and 5th from the games directory, and so on.
There should be an option to limit the number of images, so that the last one could be from the games directory or not. For this example

  • -bannerlimit 3 last image = Game Title.banner.02.jpg.
  • -bannerlimit 7 last image = the 4th image fetched from Steam.

This limit would also allow user to use only their own images.

Another possible option is to store the order in some kind of config file, but that would change the whole structure of this project, so maybe we'll skip that idea for now.

Of course there should be switches to enable/disable the automatic creation of animated banners.

@Lucki
Copy link
Contributor

Lucki commented Apr 30, 2023

Those images are loaded on demand and not requested from disk like all the other library art steamgrid handles. You'd have to catch the request and manipulate the answer to your needs. IMHO not worth it for something you don't even see all the time and IMHO beyond the scope of this project as it'll require a permanently running web server answering steams requests.
Might be possible to find the temporary folder and replace the images there but as the name suggests that's temporary and will reset once the cache is cleared.

@papaj-na-wrotkach
Copy link
Author

papaj-na-wrotkach commented May 1, 2023

How about support for non-Steam games only? I primarily wanted it for non-Steam games because they appear different than native Steam games.
I think the only solution for this would be to generate a looped video/gif with all of requested images/screenshots as I suggested earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants