an-anime-team / an-anime-game-launcher

An Anime Game launcher for Linux with telemetry disabling
https://discord.gg/ck37X6UWBp
GNU General Public License v3.0
1.59k stars 67 forks source link

"Could not connected to network" in Chinese edition, before seeing the door #447

Open CHN-beta opened 1 week ago

CHN-beta commented 1 week ago

After launch the game, it complains "network error: could not connect to network, please check your network settings, error code: 4201".

图片

The following command is used in launcher: %command% -platform_type CLOUD_THIRD_PARTY_PC

Fearyncess commented 1 week ago

i also encounter this problem. it seems an another anti-cheat detection, i guess.

ps. this error msg in eng. is "Failed to connect, please check your network settings. Error code: 4201".

Fearyncess commented 1 week ago

oh i see, GI need a hot patch in game. so you should manually unblock dispatchcnglobal.yuanshen.com domain in /etc/hosts for updating... after updates, you may add hosts blocklist back. 图片

c02y commented 1 week ago

oh i see, GI need a hot patch in game. so you should manually unblock dispatchcnglobal.yuanshen.com domain in /etc/hosts for updating... after updates, you may add hosts blocklist back. 图片

What is the purpose of blocking dispatchcnglobal.yuanshen.com, what if I delete the line?

CHN-beta commented 1 week ago

oh i see, GI need a hot patch in game. so you should manually unblock dispatchcnglobal.yuanshen.com domain in /etc/hosts for updating... after updates, you may add hosts blocklist back. 图片

What is the purpose of blocking dispatchcnglobal.yuanshen.com, what if I delete the line?

I do not know. I just unblocked it and everything works fine now.

CHN-beta commented 1 week ago

oh i see, GI need a hot patch in game. so you should manually unblock dispatchcnglobal.yuanshen.com domain in /etc/hosts for updating... after updates, you may add hosts blocklist back. 图片

What is the purpose of blocking dispatchcnglobal.yuanshen.com, what if I delete the line?

I remember it now. https://github.com/an-anime-team/an-anime-game-launcher/issues/368 remove this will cause a wine error.

CHN-beta commented 2 days ago

This issue occured again some days ago. If i banned dispatchcnglobal.yuanshen.com, game will complain "no network connection", but if I unbanned dispatchcnglobal.yuanshen.com, game will crash at startup.

lilydjwg commented 2 days ago

Don't ban that domain. Instead, disconnect the network before launching, and reconnect just before the window appears.

You can use nmcli or iptables to do it, e.g.:

sudo -v
systemd-run --user --scope --slice=genshin --unit=genshin env DXVK_FRAME_RATE=60 mangohud wine YuanShen.exe -platform_type CLOUD_THIRD_PARTY_PC -is_cloud 1 &
sudo sh -c 'iptables -A OUTPUT -p all -m cgroup --path /user.slice/user-1000.slice/user@1000.service/genshin.slice -j DROP; sleep 5; iptables -D OUTPUT -p all -m cgroup --path /user.slice/user-1000.slice/user@1000.service/genshin.slice -j DROP'
wait