Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Genshin for Linux #8

Open
nighteous opened this issue May 23, 2022 · 11 comments
Open

Genshin for Linux #8

nighteous opened this issue May 23, 2022 · 11 comments

Comments

@nighteous
Copy link

it would be awesome if you dont limit GrassClipper to just .exe file of genshin impact.

As a player who plays on linux, we need to start the game using a bat file instead so GrassClipper won't let me use that to run the game.

@Birdulon
Copy link
Member

I do my testing with this script rather than using a launcher:

#!/usr/bin/bash
if test "$#" -ge 2; then
    d_name=$1;
    d_size=$2;
else
    d_name=animegame;
    d_size=1920x1080;
fi
echo Opening in virtual desktop "$d_name" with window size $d_size

PROXY_ENV="http_proxy https_proxy ftp_proxy all_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY ALL_PROXY"
for envar in $PROXY_ENV; do
    export $envar=http://127.0.0.1:8080/
done
cd "/home/user/.local/share/anime-game-launcher/game/drive_c/Program Files/Genshin Impact"
export WINEFSYNC="1" WINEESYNC="1"
#export DXVK_HUD="fps,frametimes,version,gpuload"
export DXVK_HUD="fps,gpuload"
# export DXVK_HUD=""
export WINEPREFIX="/home/user/.local/share/anime-game-launcher/game"
export PROTON="/home/user/.local/share/anime-game-launcher/runners/lutris-GE-Proton7-9-x86_64/bin/wine64"
gamemoderun $PROTON explorer /desktop=$d_name,$d_size GenshinImpact.exe -screen-fullscreen 0 -popupwindow
# $PROTON explorer /desktop=$d_name,$d_size GenshinImpact.exe -screen-fullscreen 0 -popupwindow

The commented line at the bottom launches it without a wine virtual desktop which is better in some ways but worse in others. Usage is just ./LaunchAnimeGame.sh animegame1 1280x720 (different names are required for doing concurrent clients)

@nighteous
Copy link
Author

kinda having a hard time with the virtual window

is it possible to run it without the virtual window?

@Birdulon
Copy link
Member

Oops, last line was still in a virtual desktop.
$PROTON GenshinImpact.exe should be fine, in my case I had to comment out export WINEFSYNC="1" WINEESYNC="1" to have it work like that.

@Birdulon
Copy link
Member

i.e. something like

#!/usr/bin/bash
PROXY_ENV="http_proxy https_proxy ftp_proxy all_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY ALL_PROXY"
for envar in $PROXY_ENV; do
    export $envar=http://127.0.0.1:8080/
done
cd "/home/user/.local/share/anime-game-launcher/game/drive_c/Program Files/Genshin Impact"
export WINEPREFIX="/home/user/.local/share/anime-game-launcher/game"
export PROTON="/home/user/.local/share/anime-game-launcher/runners/lutris-GE-Proton7-9-x86_64/bin/wine64"
$PROTON GenshinImpact.exe

@nighteous
Copy link
Author

01fc:err:d3d:wined3d_debug_callback 0x2c960770: "GL_INVALID_OPERATION error generated. Texture is already resident for this context.". this comes up and the game hangs

@nighteous
Copy link
Author

nighteous commented May 23, 2022

#!/usr/bin/bash
if test "$#" -ge 2; then
    d_name=$1;
    d_size=$2;
else
    d_name=animegame;
    d_size=1920x1080;
fi
echo Opening in virtual desktop "$d_name" with window size $d_size

PROXY_ENV="http_proxy https_proxy ftp_proxy all_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY ALL_PROXY"
for envar in $PROXY_ENV; do
    export $envar=<link>
done
cd "/mnt/storage/WinePrefix/Genshin/drive_c/Program Files/Genshin Impact/Genshin Impact game"
#export WINEFSYNC="1" WINEESYNC="1"
#export DXVK_HUD="fps,frametimes,version,gpuload"
export DXVK_HUD="fps,gpuload"
# export DXVK_HUD=""
export WINEPREFIX="/mnt/storage/WinePrefix/Genshin"
export LUTRIS="/home/varoo/.local/share/lutris/runners/wine/lutris-fshack-7.2-x86_64/bin/wine64"
prime-run gamemoderun $LUTRIS GenshinImpact.exe
# $PROTON explorer /desktop=$d_name,$d_size GenshinImpact.exe -screen-fullscreen 0 -popupwindow

LaunchAnimeGame script (modified a bit)

@Birdulon
Copy link
Member

hmm, might be hitting some version-specific wine bugs. If you have an existing working config with a batch file elsewhere it should be enough to just add in the proxy env variables to that.

@nighteous
Copy link
Author

thats weird, Seems like it works through lutris but not with script

@nighteous
Copy link
Author

If you have an existing working config with a batch file elsewhere it should be enough to just add in the proxy env variables to that.

image
added it to environment variables

cant figure out what to do next (cause running the game takes me straight to official genshin)

@Birdulon
Copy link
Member

ah no, those are unrolled in a loop that goes like

http_proxy="https://129.154.227.167:8443"
https_proxy="https://129.154.227.167:8443"
ftp_proxy="https://129.154.227.167:8443"

etc.
No idea about which ones are actually critical and the lowercase vs uppercase vars, I got them from elsewhere and didn't test them one-by-one.

@nighteous
Copy link
Author

nighteous commented May 23, 2022

image
currently the env variables look like this
(also did i do it right?)
the game loads up but I cant seem to login to it with my hoyo account
is anything special needed to be done?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants