原神CBT2搭建教程

原神 CBT2搭建教程

二测版本我用的是0.7.0
这个服务器没有数据库

安装Python3.11:
安装:
https://python.org

windows系统下安装记得勾选add python to ‘PATH’

①下载CBT2的游戏本体。

开头说过CBT2可以用的版本号,应该是0.7到0.8都行。建议使用的是0.7.1的版本。

https://d3ln624mszu7ty.cloudfront.net/client_app/pc_plus19/Genshin_0.7.1.zip

下载完成后解压缩。

下载服务器

https://github.com/NickTheHuy/CockPY

备用:https://github.com/UserCudcan/Test_/releases/download/py3.11/CockPY-main2.zip

点击 code download

在文件夹里输入CMD

安装依赖:
pip install -r ./requirements.txt

如果使用备用点击launch启动

不是备用:
克隆pyenet:
git clone https://github.com/lilmayofuksu/pyenet —recursive && cd pyenet

安装
python setup.py build

安装
python setup.py install

安装Fiddler:
https://www.telerik.com/download/fiddler/fiddler4

点击Fiddlerscript

Ctrl + a 全选
复制:
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
class Handlers
{
static function OnBeforeRequest(oS: Session) {
if
(
oS.host.EndsWith(“.yuanshen.com”)
|| oS.host.EndsWith(“.hoyoverse.com”)
|| oS.host.EndsWith(“.mihoyo.com”)
|| oS.uriContains(“http://overseauspider.yuanshen.com:8888/log“)
|| oS.host.EndsWith(“.yuanshen.com:12401”)
) {

        oS.host = "127.0.0.1";
        // Only for CBT-2
        oS.oRequest.headers.UriScheme = "http";
        oS.port = 80;
    }
}

};

如果游戏打不开替换MHYPROT2文件:
https://github.com/UserCudcan/saturnine-CHS/releases/download/mhyprot2/mhyprot2.Sys

win10才能玩
win11不可以(说是和系统有兼容问题)