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

Script for running it when opening a game in lutris #30

Open
noxxy7777 opened this issue Aug 27, 2022 · 3 comments
Open

Script for running it when opening a game in lutris #30

noxxy7777 opened this issue Aug 27, 2022 · 3 comments

Comments

@noxxy7777
Copy link

noxxy7777 commented Aug 27, 2022

Is there a way to do this if so can you help because I cant figure it out.

@Priton-CE
Copy link

Priton-CE commented Feb 4, 2023

Might be a bit late but just in case anyone faces a similar issue:
The solution I came up with was just to add a Lutris game (+ -> add existing game) and just point it to the prefix of your choice. I then moved the .exe to some directory in the prefix ("Program Files" in my case) and pointed to it in the new Lutris Game, pointed the working directory to it's directory and made sure the FSync, ESync and runner settings matched.

Just need to launch it before running your game. It will stop automatically upon exiting your game.
(tested with Hunternet Starfighter)

In theory you can also just create a bash script that calls your runner and runs the bridge with that runner's wine but I did not try that yet. Then that bash could just be added to the lutris startup script option. But it would also require some delay to wait for the bridge to come online.

@sysrq-reisub
Copy link

sysrq-reisub commented Apr 15, 2023

Might be a bit late but just in case anyone faces a similar issue: The solution I came up with was just to add a Lutris game (+ -> add existing game) and just point it to the prefix of your choice. I then moved the .exe to some directory in the prefix ("Program Files" in my case) and pointed to it in the new Lutris Game, pointed the working directory to it's directory and made sure the FSync, ESync and runner settings matched.

Just need to launch it before running your game. It will stop automatically upon exiting your game. (tested with Hunternet Starfighter)

In theory you can also just create a bash script that calls your runner and runs the bridge with that runner's wine but I did not try that yet. Then that bash could just be added to the lutris startup script option. But it would also require some delay to wait for the bridge to come online.
immagine

I'm messing with that right now, trying to avoid creating a bat by running the commands directly as the lutris game executable, but it's frustrating because for some reason I cannot launch more than two executables, running the same script in a manually opened wine terminal works as intended

Also, using "command prefix" from lutris settings doesn't work if there is a game launcher which terminates (because it would also kill the process)

@Yaikava
Copy link

Yaikava commented May 10, 2023

This is working for me.
image
presence.bat

start "" "Z:\opt\discord-ipc-bridge\winediscordipcbridge.exe"
timeout 2
start "" "Z:\media\games\Lutris\league-of-legends\drive_c\Riot Games\Riot Client\RiotClientServices.exe" --locale=en_US --launch-product=league_of_legends --launch-patchline=live

For some reason it does not work without the timeout.

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

4 participants