-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Tool marked as unused even if it is the "global" compatibility tool. #254
Comments
Good suggestion.
Yes, currently tools are only marked as used if they are configured for individual games. It should be possible to also detect global compatibility tools and set it as used.
We could do that too. We need to find some place to put it in the ui. |
I'm not sure how protonup-qt works internally, but if you're working directly with the configuration files then it shouldn't be too hard (see the guide I linked before). The global configuration just corresponds to the game with ID |
Detecting if a tool is used globally should be straightforward enough, I wonder how we'd handle the game count though? Maybe it won't be a problem, if individual (Windows) games are set to use a tool with ID
Perhaps it could go in the ctinfo dialog? It could go below the compat tool info but above the list of games in use. If memory serves there is a row of buttons on the right, this button could go on the left. It could say something like "Mark Global" or "Mark Default, with an accompanying tooltip. Though it may be worth warning a user beforehand, since we're already in a dialog, that might be a bit cluttered 😄 When a tool is already the global default, we could grey out the button and change the tooltip/show a label if there is room somehow to say something like "This tool is already the default". (or button text, but not sure if this is good from a UIX perspective...) Instead of a button here, we could also have a context menu when you right click on a tool, but pretty much everything in ProtonUp-Qt can be done currently from a button on the menus and using a context menu would "hide" this option. Not to mention, not showing the context menu for an already global tool, or showing the one-item context but having the option disabled, might not be very neat. Though using a context menu would alleviate the issue of showing a warning dialog, so I'm not sure 😅 To display a tool as being the global one, we could also have some additional text beside a tool in the compat tool list on the main menu. We mark when a tool is unused, perhaps we could visually mark when a tool is selected globally. We could mark the tool name in bold, append Though some tools may not be available to be selected globally, such as anticheat runtimes, so we'll need to remember to exclude these. |
I think the game id is "0": "CompatToolMapping"
{
"0"
{
"name" "proton_experimental"
"config" ""
"priority" "75"
}
}
Sounds good
I think the first solution you described is more touch screen friendly.
A small badge saying "global" with a tooltip in the main window would be cool. I'm not sure how easy that can be done though. For now, appending |
When investigating, something I noticed is that seemingly, if a game in the Though having said that, I'm not sure how that works for games which have a "recommended" version from Valve (on desktop and on Steam Deck). If Valve recommend, say, I did a quick test and on a branch (sonic2kk@3b755bd) I was able to put together a way to mark a tool as global, but not to stop it being marked as unused. As part of not marking a global tool as unused, there's an implicit expectation that the game count would be accurate too, but at the same time, that game count could easily be hundreds if not thousands, and it's slightly less useful to see. Though thanks to the search feature, it might be a bit more useful, but still this global tool game list would essentially be a catch-all for games that don't have a compatibility tool explicitly set. So when a name entry in |
I think it is fine to only display the number of compatibility tools which are explicitly overwritten.
Maybe we can do something like ProtonUp-Qt/pupgui2/steamutil.py Line 84 in 4d6eb49
|
With #314 the core of this feature request has been added; ProtonUp-Qt will now mark when a tool is global. There are a couple of remaining things that could be done however, which I noted on the PR but will quickly summarize here as well:
There are implementation details to each of these of course but that's a high level list of some further improvements. |
Thank you so much. I'm closing this issue now since it has been addressed, but I would love to see those additional features you listed (especially the last one to allow choosing the global tool through protonup-qt rather than having to go through steam/the config). Feel free to reopen if you'd still like to track those features on this issue. |
I got a couple of PRs up to address some of the more "quick win" elements of what remains (#326, #327). This should knock two of the items off the list, I can work on hiding the games list after #319, and the last two will be the trickier ones to implement. For marking tools as global, I also had a look back at #314, and it seems the ctinfo dialog was decided as the place to put the button to mark a tool as global. There are a couple of things we'll need to consider for that, such as perhaps showing a confirmation dialog and warning if Steam is running (editing For adding a badge to display that a tool is global, we would probably also want to do the same for unused (see DavidoTek's mockup from earlier in this issue). I have no idea how to implement that with the current way the tool list is implemented, so I don't even see a high level implementation path yet. |
Even though this is closed and that's totally fine to me, just in case I caused any misunderstanding, this is not in a release yet just fyi :-) It will be in the next release though unless it needs reverted for some reason. |
Describe the bug
Compatibility tools are marked as "(unused)" even if the tool is set as the global compatibility tool (under steam settings, steam play, run other titles with)
To Reproduce
Proton-stl
set it to the Proton GE version that was installed instead.Expected behavior
I expect it to not be marked as unused. Ideally there'd also be a way to enable setting it as the global compatibility tool so that it's not necessary to go through all of the hassle of manually editing config file.
Desktop (please complete the following information):
protonup-qt
Terminal output
The text was updated successfully, but these errors were encountered: