Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Request]: Add custom gamescope options

Open arm32x opened this issue 1 year ago • 5 comments

Tell us the problem or your need

gamescope has lots of command-line options, most of which aren't exposed by the Bottles GUI. I would like to be able to set these options.

Describe the solution you'd like

To fix this, I would add a text field in the gamescope settings panel where you could enter custom command-line arguments for gamescope. These would be used in addition to the regular arguments set by Bottles.

Other solutions?

Adding individual GUI controls for each option would also work.

Additional context and references

For my use case, I'm interested in the -s/--mouse-sensitivity option, but I would like to be able to set other options as well if I need to in the future.

arm32x avatar Aug 27 '24 02:08 arm32x

I would like to see this added too! I'm interested in --filter option that allows me to upscale pixelated games. There is a currently available solution though - you should disable the gamescope in the bottle's settings and instead go to the ⋮ menu of your game's executable. In it, you should go to "Change Launch Options...". There, you should write gamescope %command% in the "Command Arguments" text field. Between gamescope and %command% you can write any options that you like. In my case this looks like gamescope -w 640 -h 480 -F nearest -S integer -f %command%

Akeem29 avatar Aug 31 '24 14:08 Akeem29

Definitely need this, especially since gamescope as a launch argument doesn't work on flatpak, meaning the only way to get extra options is to edit winecommand.py to add extra args like --hdr-enabled.

CallieEZ avatar Sep 18 '24 00:09 CallieEZ

I would also love for this to be added as I'm really struggling to add certain non-gamescope-related command arguments.

I would like to see this added too! I'm interested in --filter option that allows me to upscale pixelated games. There is a currently available solution though - you should disable the gamescope in the bottle's settings and instead go to the ⋮ menu of your game's executable. In it, you should go to "Change Launch Options...". There, you should write gamescope %command% in the "Command Arguments" text field. Between gamescope and %command% you can write any options that you like. In my case this looks like gamescope -w 640 -h 480 -F nearest -S integer -f %command%

This doesn't seem to work for me... the commands after "gamescope" still work but it isn't actually loading gamescope anymore. @Akeem29, any tips?

Definitely need this, especially since gamescope as a launch argument doesn't work on flatpak, meaning the only way to get extra options is to edit winecommand.py to add extra args like --hdr-enabled.

Also trying to use this solution, I can't seem to find where the winecommand.py file is. I'm working on a Steam deck and there doesn't seem to be a "backend" folder that I see when I google that filename. I'd gladly go through the manual steps of editing these files if it would let me add more commands. @cncz42, could you possibly point me in the right direction?

bbilford83 avatar Sep 28 '24 09:09 bbilford83

Commenting again for anyone else facing the same problem, but I finally solved the issue by changing my executables to be ahk scripts (converted into exes) that launch the original executable with the command arguments added. This worked out fine, though obviously it's a ton more work than if the command arguments worked in Bottles itself.

bbilford83 avatar Oct 02 '24 21:10 bbilford83

Also trying to use this solution, I can't seem to find where the winecommand.py file is. I'm working on a Steam deck and there doesn't seem to be a "backend" folder that I see when I google that filename. I'd gladly go through the manual steps of editing these files if it would let me add more commands. @cncz42, could you possibly point me in the right direction?

The winecommand.py file should be in /var/lib/flatpak/app/com.usebottles.bottles/x86_64/stable/active/files/share/bottles/bottles/backend/wine/ but steam deck is immutable afaik so you may need to change things with a custom repo. The line you want to edit is whichever call to gamescope_cmd.append matches the active options for your game.

CallieEZ avatar Oct 02 '24 22:10 CallieEZ

I would also love to see this for toggling --hdr-enabled.

Schmiggolas avatar Nov 28 '24 19:11 Schmiggolas

UP!

procobain avatar Jan 04 '25 18:01 procobain

This issue has been automatically closed as part of a cleanup process to help the team manage issues more effectively.

If the problem still persists, feel free to comment and we will gladly reopen it.

github-actions[bot] avatar May 29 '25 23:05 github-actions[bot]

customization is needed. How to pass --force-orientation?

bademux avatar Jun 06 '25 19:06 bademux

Still an issue but not addressed.

dacampsss avatar Jul 04 '25 06:07 dacampsss

@mirkobrombin Could you please re-open this issue? I encountered a game that requires gamescope to be run with --force-grab-cursor --backend sdl otherwise the mouse cursor is confined to the desktop's true resolution and will slap against the screen "edges" instead of letting the player rotate 360 degrees in game. That game cannot be played in Bottles. Having a field for "custom arguments" would solve that.

Arcitec avatar Jul 19 '25 16:07 Arcitec

Would like to echo what @Arcitec said. The newest version of Escape from Tarkov has a bug at least under XFCE where it stops responding to mouse clicks if you alt tab. The fix, initially, for me was to use gamescope, but once I got control of my character I ran into the same issue where it hits the "edges" of the screen. I couldn't figure out how to use the winecommand.py trick to add the force-grab-cursor command.

Leniptic avatar Jul 31 '25 19:07 Leniptic