Grasscutters / Grasscutter

A server software reimplementation for a certain anime game.
https://grasscutter.io/
GNU Affero General Public License v3.0
16.18k stars 4.47k forks source link

Full offline support maybe #326

Closed Pull256 closed 2 years ago

Pull256 commented 2 years ago

When I disconnected the internet, the game will display an error 4201, which means "No network connection". I think the proxy setting does not cut down all connections with mihoyo, may be the game itself need internet connection to mihoyo for update? If possible, it should be possible to remove the network detection in some way to prevent the game from updating or chanting Mihayo to find out what we are doing.

Thanks for all the developers of this software.

memetrollsXD commented 2 years ago

The server should already support having no internet, are you sure you redirected all traffic?

Pull256 commented 2 years ago

I just make a small test with fidder to find out why it happened, here are my result. The fidder script I use have 24 rules downloaded from github. When I start the game and enter the login screen, the game send many request to log-upload-os.mihoyo.com:443. But when the internet is disconnected, the DNS lookup will failed and throw an error which can be seen in fidder response headers like this: "HTTP/1.1 502 Fiddler - DNS Lookup Failed". Under this situation I can not login to the game. When I reconnect the Internet the responce headers will change into "HTTP/1.1 200 Connection Established", and the game can be logined. I don't know if my guess is accurate, because I don't know much about network. Here is the file output by fidder, hope it works. Thanks to the developers who are concerned about this issue, I don't think it's very urgent and maybe in the future we can get a complete solution to this problem (or maybe it's just a glitch in my settings o(╥﹏╥)o).

FidderPackage.zip

lunaticwhat commented 2 years ago

closed to clean up the workspace !