Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A solution for Chinese users #73

Open
AnticPan opened this issue Oct 14, 2024 · 6 comments
Open

A solution for Chinese users #73

AnticPan opened this issue Oct 14, 2024 · 6 comments

Comments

@AnticPan
Copy link

AnticPan commented Oct 14, 2024

The project cannot run directly for the CN server. I made some modifications, and somehow it works.

  1. Modify login/login.c and replace https://battle.net/login/?app=wtcg with https://account.battlenet.com.cn/login/?app=wtcg.
  2. Run ./craft.sh with kr region first. After all downloads are finished, modify hearthstone/client.config and replace the line Aurora.Env=cn.actual.battlenet.com.cn. When download Unity in the craft.sh, a proxy may be necessary.

项目无法直接在国服运行。我做了一些修改,现在可以运行了。

  1. 修改 login/login.c,将 https://battle.net/login/?app=wtcg 替换为 https://account.battlenet.com.cn/login/?app=wtcg
  2. 首先使用 kr 区域运行 ./craft.sh。下载完成后,修改 hearthstone/client.config,将其中的 Aurora.Env=cn.actual.battlenet.com.cn 替换掉。在 craft.sh 中下载 Unity 时,可能需要使用代理。
@zfro
Copy link

zfro commented Oct 25, 2024

Tried it but not work for me so far. failed to fetch unity archive.I downloaded the .tar.xz and how to get it work .should I exact the .xz and copy that to some path?

@chinaywx
Copy link

There is no .login file in the downloaded files, resulting in the inability to log in.

@DawnMagnet
Copy link

我也提了一个pr #72

@DawnMagnet
Copy link

我的pr修改后可以正常使用cn区域下载

@AnticPan
Copy link
Author

AnticPan commented Nov 5, 2024

Tried it but not work for me so far. failed to fetch unity archive.I downloaded the .tar.xz and how to get it work .should I exact the .xz and copy that to some path?

If you have proxy running in local, you can try to install proxychains package. After configure the proxychains config, run proxychains4 ./craft.sh.

@AnticPan
Copy link
Author

AnticPan commented Nov 5, 2024

There is no .login file in the downloaded files, resulting in the inability to log in.

You can cd into the hearthstone-linux/login folder and try to compile the login.c. Some packages may be missing and needs to be installed. I compiled the executable login with g++ login.c `pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0` -lcryptopp -o login. Finally, move the login to ../hearthstone.

ChatGPT can help when compile the login file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants