HGL
fair-rose

Replicate way heroic launches game in a script

For an mmorpg I host myself, I am trying to run multiple clients. It's very typical to play on multiple accounts at the same time in this game. Because I cannot do it in Heroic, which doesn't allow launching a game multiple times, i'm trying to replicate what heroic does with a script. My issue is that I don't know how to do this. Any pointers?
1 Reply
fair-rose
fair-roseOP3mo ago
I was able to launch it with this, and it works multiple times, but there are issues with it like there's no sound at all.
#!/usr/bin/env bash

WINEPREFIX="/home/hyu/Games/Heroic/Prefixes/default/Metin2Home"
WINE_BIN="/home/hyu/.config/heroic/tools/proton/GE-Proton-latest/files/bin/wine"
GAME_EXE="/home/hyu/Games/metin2/metin2-at-home/metin2client.exe"

cd "$(dirname "$GAME_EXE")"

steam-run env WINEPREFIX="$WINEPREFIX" "$WINE_BIN" "$GAME_EXE"
#!/usr/bin/env bash

WINEPREFIX="/home/hyu/Games/Heroic/Prefixes/default/Metin2Home"
WINE_BIN="/home/hyu/.config/heroic/tools/proton/GE-Proton-latest/files/bin/wine"
GAME_EXE="/home/hyu/Games/metin2/metin2-at-home/metin2client.exe"

cd "$(dirname "$GAME_EXE")"

steam-run env WINEPREFIX="$WINEPREFIX" "$WINE_BIN" "$GAME_EXE"

Did you find this page helpful?