Every time I trying to run Genshin in wine (macOS) with patch (from cultivation version.dll or directly RSApatch with PublicKey) it shows me a cmd window with something like ReadToEnd : 00007FFFDCB512F0
Hooked ReadToEnd - Original at : 00007FFF9CB40120
And then I get 4201 error in game, and nothing work out. Any suggestions on patching?
#I have a problem with wine and RSA patch
31 messages · Page 1 of 1 (latest)
If you got the cmd window then you already patched properly
the issue is not the patch
So what it may be?
Without any other info about your setup, anything
You're using genshin through wine, but where are you trying to play? Local? Public?
MacOS Ventura and Crossover (wine), im trying to connect to my local server on Win (in the same network)
Maybe I should use mitmproxy instead of hosts file
You can't use hosts alone, that is correct
Did you also configure your server already?
Simply running default GC won't work, you have to make the proper edits to your config.json so that the server is hosted on the local network address
Server is hosted 100% and I can connect and see GC message on address
Also I shouldn’t use “Proxy” tick in Cultivation settings?
If you're using Cultivation to connect then you must have that checked
make sure you changed both accessAddresses in your config (yes, both, there are two) and have both useEncryption and useInRouting set to false
unless you're using a different proxy, but that would sorta defeat some of the point of using culti in the first place
I’m using hosts file to connect and cultivation to run a server
Cultivation on Win and hosts on Mac
Ok that's going to be the main issue, while you're welcome to continue trying with hosts, I don't know a single person that has gotten in to Grasscutter with hosts alone
At least, not in a very very long time, might have been some way back in the day
You'll want to get some true proxy to redirect traffic
Thanks, then I will setup mitmproxy and try to connect
Now, when I set up mitmproxy and turned off useEncryption and useInRouting I get Server TLS handshake failed. The remote server does not speak TLS. and 500~ errors in client when trying to connect
I'm not trusted any certificates and I'm using this command to run mitm — mitmdump -s proxy.py --ssl-insecure --set block_global=false --no-http2 -p 1234
for mitm you'll need encryption and inrouting set to true (must restart gc after), you will want to trust the cert for it to work correctly as well
Where can I get my cert?
Is it in cultivation dir or somewhere in my macos mitmproxy install dir?
visit http://mitm.it/ when you have mitmproxy running
Yep I've got it and trusted, and TLS handshake successfull, but I still get errors like this — POST https://myserverip/account/risky/api/check?
<< 400 Bad Request 2.6k
I disabled SSL in proxy_config.py script and now I get 4206 error but I see connection attempts in grasscutter console
If you have the 4206 error, either your encryption settings are incorrect (please disable encryption in Cultivation settings) or your device has not reached the server. Please make sure that Cultivation's proxy is turned on in the settings panel and that encryption is disabled.
Unfortunately I'm not as versed with mitm, so can't give any good advice regarding mitm settings