Added block_analytics.sh script
This commit is contained in:
parent
4060fb5d4e
commit
612c2e74e6
@ -22,9 +22,9 @@ The anticheat the games use is fundamentally incompatible with Wine in multiple
|
|||||||
|
|
||||||
Manual usage instructions:
|
Manual usage instructions:
|
||||||
- Download the game you want to run
|
- Download the game you want to run
|
||||||
- Download a release from this repository
|
- Download the latest release from this repository
|
||||||
- Extract the archive (**NOT INTO THE GAME DIRECTORY! THIS IS IMPORTANT!**)
|
- Extract the archive (**NOT INTO THE GAME DIRECTORY! THIS IS IMPORTANT!**)
|
||||||
- Block analytics servers in your `hosts` file. You can find the list in SERVERS.txt
|
- Run `./block_analytics.sh` from the archive to block the games from accessing analytics servers. This will require superuser privileges
|
||||||
- Run `wine jadeite.exe 'Z:\wine\path\to\game.exe'`
|
- Run `wine jadeite.exe 'Z:\wine\path\to\game.exe'`
|
||||||
|
|
||||||
This tool is capable of starting the games from a different process. This may be useful for spoofing the parent process (SR is known to report it). Use `wine jadeite.exe 'Z:\wine\path\to\game.exe' 'Z:\wine\path\to\launcher.exe'`. `explorer.exe` is used as the default.
|
This tool is capable of starting the games from a different process. This may be useful for spoofing the parent process (SR is known to report it). Use `wine jadeite.exe 'Z:\wine\path\to\game.exe' 'Z:\wine\path\to\launcher.exe'`. `explorer.exe` is used as the default.
|
||||||
|
18
SERVERS.txt
18
SERVERS.txt
@ -1,18 +0,0 @@
|
|||||||
# Honkai Impact 3rd logging servers (glb/sea/tw/kr/jp):
|
|
||||||
0.0.0.0 log-upload-os.hoyoverse.com
|
|
||||||
0.0.0.0 sg-public-data-api.hoyoverse.com
|
|
||||||
0.0.0.0 dump.gamesafe.qq.com
|
|
||||||
|
|
||||||
# Honkai Impact 3rd logging servers (cn):
|
|
||||||
0.0.0.0 log-upload.mihoyo.com
|
|
||||||
0.0.0.0 public-data-api.mihoyo.com
|
|
||||||
0.0.0.0 dump.gamesafe.qq.com
|
|
||||||
|
|
||||||
|
|
||||||
# Honkai Star Rail logging servers (oversea)
|
|
||||||
0.0.0.0 log-upload-os.hoyoverse.com
|
|
||||||
0.0.0.0 sg-public-data-api.hoyoverse.com
|
|
||||||
|
|
||||||
# Honkai Star Rail logging servers (China)
|
|
||||||
0.0.0.0 log-upload.mihoyo.com
|
|
||||||
0.0.0.0 public-data-api.mihoyo.com
|
|
36
block_analytics.sh
Normal file
36
block_analytics.sh
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
analytics_servers=$(cat <<EOF
|
||||||
|
|
||||||
|
# Honkai Impact 3rd analytics servers (glb/sea/tw/kr/jp):
|
||||||
|
0.0.0.0 log-upload-os.hoyoverse.com
|
||||||
|
0.0.0.0 sg-public-data-api.hoyoverse.com
|
||||||
|
0.0.0.0 dump.gamesafe.qq.com
|
||||||
|
|
||||||
|
# Honkai Impact 3rd analytics servers (cn):
|
||||||
|
0.0.0.0 log-upload.mihoyo.com
|
||||||
|
0.0.0.0 public-data-api.mihoyo.com
|
||||||
|
0.0.0.0 dump.gamesafe.qq.com
|
||||||
|
|
||||||
|
|
||||||
|
# Honkai Star Rail analytics servers (os)
|
||||||
|
0.0.0.0 log-upload-os.hoyoverse.com
|
||||||
|
0.0.0.0 sg-public-data-api.hoyoverse.com
|
||||||
|
|
||||||
|
# Honkai Star Rail analytics servers (cn)
|
||||||
|
0.0.0.0 log-upload.mihoyo.com
|
||||||
|
0.0.0.0 public-data-api.mihoyo.com
|
||||||
|
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
if [[ ! `cat /etc/hosts` == *"$analytics_servers"* ]]; then
|
||||||
|
echo "Blocking analytics servers. This will require superuser privileges"
|
||||||
|
echo "$analytics_servers" | pkexec tee -a /etc/hosts 2>&1 >> /dev/null
|
||||||
|
if test $? -ne 0; then
|
||||||
|
echo "Could not block analytics servers. Please add the following lines to your /etc/hosts manually:"
|
||||||
|
echo "$analytics_servers"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Analytics servers are already blocked"
|
||||||
|
fi
|
1
build.sh
1
build.sh
@ -14,6 +14,7 @@ mkdir out
|
|||||||
cp ./build/injector/jadeite.exe ./out
|
cp ./build/injector/jadeite.exe ./out
|
||||||
cp ./build/injector/launcher_payload.dll ./out
|
cp ./build/injector/launcher_payload.dll ./out
|
||||||
cp ./build/game_payload/game_payload.dll ./out
|
cp ./build/game_payload/game_payload.dll ./out
|
||||||
|
cp ./block_analytics.sh ./out
|
||||||
cp ./LICENSE.txt ./out
|
cp ./LICENSE.txt ./out
|
||||||
|
|
||||||
$strip ./out/*.{exe,dll}
|
$strip ./out/*.{exe,dll}
|
||||||
|
Loading…
Reference in New Issue
Block a user