A solution for Chinese users
The project cannot run directly for the CN server. I made some modifications, and somehow it works.
- Modify
login/login.cand replacehttps://battle.net/login/?app=wtcgwithhttps://account.battlenet.com.cn/login/?app=wtcg. - Run
./craft.shwithkrregion first. After all downloads are finished, modifyhearthstone/client.configand replace the lineAurora.Env=cn.actual.battlenet.com.cn. When download Unity in the craft.sh, a proxy may be necessary.
项目无法直接在国服运行。我做了一些修改,现在可以运行了。
- 修改
login/login.c,将https://battle.net/login/?app=wtcg替换为https://account.battlenet.com.cn/login/?app=wtcg。 - 首先使用
kr区域运行./craft.sh。下载完成后,修改hearthstone/client.config,将其中的Aurora.Env=cn.actual.battlenet.com.cn替换掉。在craft.sh中下载 Unity 时,可能需要使用代理。
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?
There is no .login file in the downloaded files, resulting in the inability to log in.
我也提了一个pr https://github.com/0xf4b1/hearthstone-linux/pull/72
我的pr修改后可以正常使用cn区域下载
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.
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.
PR #94 redirect download cdn to Netease Leihuo. By selecting region cn, you could download game files without proxychains. PR #94 修正了下载cdn选项,国服玩家可以直接选择cn地域以完成游戏下载与更新。但是登录还是存在问题,需要进一步检查
PR #94 redirect download cdn to Netease Leihuo. By selecting region cn, you could download game files without proxychains.PR #94 将下载 cdn 重定向至网易雷火。选择地区 cn,即可无需代理链下载游戏文件。 PR #94 修正了下载cdn选项,国服玩家可以直接选择cn地域以完成游戏下载与更新。但是登录还是存在问题,需要进一步检查
After your PR, there are still two steps:
- change the url in login.c to cn version
"https://account.battlenet.com.cn/login/?app=wtcg" - change the aurora in client.config to
Aurora.Env=cn.actual.battlenet.com.cn
提醒国服玩家注意,由于Unity官方基于GeoIP对所有 https://download.unity3d.com/ 的访问进行了重定向,现有脚本无法安装对应Unity包。如果在安装过程中在Unity更新阶段遇到如下错误,请大家使用用户侧代理。
Attentions for players in mainland china, due to unexpected redirections of unity china the craft.sh script would not be able to download the correct version of Unity packages. Please use user-sider proxys during installation.
Downloading Unity from ***.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
Extracting Unity ...
tar: This does not look like a tar archive
xz: (stdin): File format not recognized
参照/References Redirection Issues
提醒国服玩家注意,由于Unity官方基于GeoIP对所有
https://download.unity3d.com/的访问进行了重定向,现有脚本无法安装对应Unity包。如果在安装过程中在Unity更新阶段遇到如下错误,请大家使用用户侧代理。 Attentions for players in mainland china, due to unexpected redirections of unity china the craft.sh script would not be able to download the correct version of Unity packages. Please use user-sider proxys during installation.Downloading Unity from ***. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Extracting Unity ... tar: This does not look like a tar archive xz: (stdin): File format not recognized 参照/References Redirection Issues
你好 @michaelGuo1204 ,我看到你链接了这个 issues。关于UnityCN官方是否采用GeoIP判断ip属地只是我的推断,尚未经过官方证实。目前因为官方的阻断无法获取全部6000版本及其他国际版,也就是说除了6000版本其他的都有相对应国内版本。
Hello @michaelGuo1204, I noticed you linked to this issue. Regarding whether UnityCN officially uses GeoIP to determine IP location, that's merely my speculation and hasn't been confirmed by the official team. Currently, due to the official block, we can't access all 6000 versions or other international editions. This means that aside from the 6000 versions, all others have corresponding domestic versions.