0xf4b1 / hearthstone-linux

Play Hearthstone from Blizzard Entertainment natively on Linux without the Battle.net Desktop App and Wine
127 stars 18 forks source link

A solution for Chinese users #73

Open AnticPan opened 1 week ago

AnticPan commented 1 week ago

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.
  3. Modify hearthstone/.region and replace kr to cn.
  4. Replace all kr.patch to cn.patch in hearthstone/.ngdp/keg.conf and hearthstone/.ngdp/keg.db (this step may not 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 时,可能需要使用代理。
  3. 修改 hearthstone/.region,将 kr 替换为 cn
  4. hearthstone/.ngdp/keg.confhearthstone/.ngdp/keg.db 中,将所有的 kr.patch 替换为 cn.patch(这步可能不是必须的)。
zfro commented 7 hours ago

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?