Replies: 0 comments 2 replies
-
I have tested this and it does look great, I have some experience with AHK as well and the script seems pretty straight forward and I like it. I have run into 1 issue with Baldur's gate 3 though, after 10ish seconds it just ends the stream (game still running on host). Any idea what would cause that? The exe is correct (bg3.exe) and the script works great on other steam games like Helldivers 2. Just wondering if you had any idea because I can't figure it out. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A problem I've experienced with Moonlight/Sunshine is that the stream session stays active even after a game is finished. This is mainly the case when launching games through Steam and similar launchers. Sunshine is not able to figure out which process to join for the duration of the session.
I have worked around this problem using AutoHotKey by writing a script that runs the game and then waits for a specified executable to start. The script keeps running until that process stops. Since Sunshine is watching the script, the streaming session will stop as it should when the game ends.
I'm pretty sure this could be implemented in Sunshine, however I do not know how to make it cross-platform. My script is limited to Windows due to AutoHotkey.
TLDR
Here's a rundown of the features:
Installation and usage:
sunshine.png
in the same directory as the script.Now you can configure an application to launch using a command like:
Both "Continue streaming..." options should be unchecked.
Note that you have to provide the name of an executable as well. This should be the main .exe for the game, which you can usually find in the game installation folder or by inspecting the task manager when the game is running.
Small caveat: There is a chance this script doesn't work well with games that run in borderless windowed mode, this is because the overlay is set to AlwaysOnTop. You can remove this from the script if it's a problem, but it will make the taskbar visible during launch.
Beta Was this translation helpful? Give feedback.
All reactions