Clone the UnknownAnimeGamePS fork of grasscutter.
git clone https://github.com/XeonSucksLAB/UnknownAnimeGamePS
Make sure java 17 is installed.
./gradlew jar
Boom. UnknownAnimeGamePS-1.7.4.jar
popped into existence.
Now for the resources, do
wget https://github.com/pmagixc/5.2-res/archive/refs/heads/main.zip -O resources.zip
Do not unzip it.
Containers make life easier. I use podman, you can use docker if you want. Same command.
podman run --name mongodb -p 27017:27017 -d mongodb/mongodb-community-server:latest
You only need to run this the first time. If you stop the container or restart your computer and need to start mongodb again, just
podman start mongodb
To make sure you don't need root, you need to modify the config.
In the UnknownAnimeGamePS
directory, create config.json
. Copy the contents of my config. It should use port 21000 instead of 443.
My config also makes sure resources.zip
is used rather than the ./resources
directory (recommended)
Now it's easy:
java -jar UnknownAnimeGamePS-1.7.4.jar
Wait a few seconds for it to start up. Warnings are expected.
Once you see the prompt (>
), create an account: account create username
.
First you obviously need Genshin 5.2 installed. A new update is coming out on new years so you will need to download the correct game version when the time comes.
Download link | Package size | Decompressed package size | MD5 checksum |
---|---|---|---|
GenshinImpact_5.2.0.zip.001 | 10.0 GB | 20.0 GB | 651a72b1adb3bb5be28dcffded9ee7ec |
GenshinImpact_5.2.0.zip.002 | 10.0 GB | 20.0 GB | ecfcb0aa4b403608aa0089e8cbc0c618 |
GenshinImpact_5.2.0.zip.003 | 10.0 GB | 20.0 GB | 5bac8cd01f87d13dd3e20cbf897731d9 |
GenshinImpact_5.2.0.zip.004 | 10.0 GB | 20.0 GB | 84501620dded6000f758bfc4bde68d50 |
GenshinImpact_5.2.0.zip.005 | 10.0 GB | 20.0 GB | 2d47ee68d07fd698c02001311998498f |
GenshinImpact_5.2.0.zip.006 | 10.0 GB | 20.0 GB | 8246d93ee1f93ed787bf87314220ed4e |
GenshinImpact_5.2.0.zip.007 | 7.24 GB | 14.49 GB | fda38b6c9a5f746829abd8b561f51f54 |
Audio_Chinese_5.2.0.zip | 13.42 GB | 26.84 GB | 10dd6595c3687dec572afdc329c47eec |
Audio_English(US)_5.2.0.zip | 15.46 GB | 30.93 GB | c67d7e98f823afce67fe662f76d27388 |
Audio_Korean_5.2.0.zip | 13.17 GB | 26.35 GB | 071cfaab116ac1578fb6d755c34634e0 |
Audio_Japanese_5.2.0.zip | 17.41 GB | 34.84 GB | 285fba0cf723fc0ec033944caa1ada5c |
Now from the game directory, go to GenshinImpact_Data/Plugins
. Back up Astrolabe.dll
to a location of your choice, then delete it.
If you trust me, download my build:
wget https://github.com/gptlang/hk4e-patch-universal/releases/download/v5.2/Astrolabe.dll
If not, you can build it yourself with Rust cross
cross build --target x86_64-pc-windows-gnu --release
It will show up in target/x86_64-pc-windows-gnu/release/ext.dll
Make sure mitmproxy
is installed. Do pip install mitmproxy
Download genshin_proxy.py and run mitmproxy -s genshin_proxy.py -k
That's it. Pretty simple. You can change ports around if you modified the config.
Now you need to trust the mitmproxy certificate in wine. Make sure you have set your wine prefixes correctly before doing this.
wine rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl
Go to content -> certificates -> import.
This should pop up a wizard. Choose ~/.mitmproxy/mitmproxy-ca-cert.cer
. Because it's in a hidden directory, it may be hard to find.
Copy the file to ~/Downloads/
or somewhere more accessible if so. Usually your Linux files are in the Z:
drive in wine.
Now go to connections -> proxy server. Set the address as 127.0.0.1 and port as 8080. Make sure "Use a proxy server" is checked.
Run GenshinImpact.exe
and log in with the username you created in grasscutter.
It might take a few tries with "Connection timed out". Just try again.
wine rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl
Disable proxy connections.
Delete Astrolabe.dll
from GenshinImpact_Data/Plugins
and put back the backup of the original Astrolabe.dll
.
Now you can run Genshin safely again.