-
Notifications
You must be signed in to change notification settings - Fork 34
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
Shorthand code for launching an exe file inside a running game #238
Comments
If you can install Protontricks and your distro is new enough, But going by "not install the entire library" I guess you want to avoid installing Protontricks unless necessary. In this case, you could look into Steam Runtime docs here for running commands inside a container. This requires more fiddling and you have to change the app startup parameters, though, and I have tested it only briefly. After changing the launch options to
Launching a Wine application that can interact with a running Proton app has also been discussed in this thread: |
@Matoking I start the game in the usual way. And I want to run a game trainer inside the game. What command should be run for this? Right now I'm using SteamTinkerLaunch. But I don't like this solution, because it makes its settings and games run worse than on normal launch. All I need is to start the game in the usual way and run the game trainer (exe file) inside the game. Something like this:
|
I listed the two options in the previous comment. I updated the first one since it was missing the The second option is:
You can find Steam Linux Runtime - Sniper in the Tools section of your Steam library. Open its installation directory under Properties -> Installed Files -> Browse and adjust the path in the second command accordingly. For comparison, a complete command would look something like this:
Hope this helps! |
@Matoking Thank you! I will test. Can I manually install Protontricks to the directory I need? For example:
And what if the game is not a Steam game? If the game does not have a Steam App ID. |
Not working:
steam-runtime-launch-client[11597]: E: Can't find session bus: Command line `dbus-launch --autolaunch=43edbcd8b22c4fd78a3929799c67f53f --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch requested, but X11 support not compiled in.\nCannot continue.\n And if it is executed without SUDO, then it complains that --bus-name is not correct |
Try running the following command without sudo while the Steam app is running:
This should print a list of bus names you can use with Also, there's a chance the Soldier version of Steam Runtime is being used for your Steam app depending on the Proton version; in this case, try substituting |
I launched the game and entered the command but the game is not in this list. Why is that? (deck@steamdeck ~)$ /home/deck/.steam/steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/steam-runtime-launch-client --list (deck@steamdeck ~)$ /home/deck/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/steam-runtime-launch-client --list |
How have you installed Steam? Is it a native package or the Flatpak version? The method likely won't work with the latter. Also, are you using Steam's own Proton for the game in question, or is it a third-party release of Proton such as Proton-GE? |
@Matoking I have Steam Deck. I didn't install Steam. It is installed automatically. |
I don't have a Steam Deck, so I can't check what could be happening here. One thing you could double-check here is that the launch options are set to |
How to download only the |
As covered earlier, Flatpak version of Protontricks works in its own sandbox and cannot access game memory. Instead, since you're on a Steam Deck, you could try unlocking the file system; see here under "What if I want to do more than what's available by flatpak?". This is an option more intended for power users and you can potentially mess up your Deck badly enough that you'll have to use the recovery instructions to fix it. If you're OK with that, see here for the commands to run. $ sudo pacman -S python-pip python-pipx python-setuptools python-virtualenv winetricks
$ pipx install protontricks After that, If you want to have ln -s /home/deck/.local/bin/protontricks-launch /home/deck/Desktop/protontricks-launch Just remember that you will have to repeat this whenever the SteamOS image is updated. |
@Matoking Thank you. Is there a way to launch the game via console with this Example: But it doesn't work. Or is there some kind of API to change the Launch Options via the console? Example: |
@Matoking How to reproduce this command |
@Matoking I ran this command Help me please |
I need to run the game trainer. How to do it with as little code as possible. To not install the entire library. I only need the functionality of launching an exe file.
protontricks <steam_appid> shell
path/to/your/proton ~/Downloads/trainer.exe
Is it possible to get a short script that can do this?
The text was updated successfully, but these errors were encountered: