The project cannot run directly for the CN server. I made some modifications, and somehow it works.
Modify login/login.c and replace https://battle.net/login/?app=wtcg with https://account.battlenet.com.cn/login/?app=wtcg.
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.
Modify hearthstone/.region and replace kr to cn.
Replace all kr.patch to cn.patch in hearthstone/.ngdp/keg.conf and hearthstone/.ngdp/keg.db (this step may not be necessary)
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?
The project cannot run directly for the CN server. I made some modifications, and somehow it works.
login/login.c
and replacehttps://battle.net/login/?app=wtcg
withhttps://account.battlenet.com.cn/login/?app=wtcg
../craft.sh
withkr
region first. After all downloads are finished, modifyhearthstone/client.config
and replace the lineAurora.Env=cn.actual.battlenet.com.cn
. When download Unity in the craft.sh, a proxy may be necessary.hearthstone/.region
and replacekr
tocn
.kr.patch
tocn.patch
inhearthstone/.ngdp/keg.conf
andhearthstone/.ngdp/keg.db
(this step may not 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 时,可能需要使用代理。hearthstone/.region
,将kr
替换为cn
。hearthstone/.ngdp/keg.conf
和hearthstone/.ngdp/keg.db
中,将所有的kr.patch
替换为cn.patch
(这步可能不是必须的)。