HuTao-GS
HuTao-GS copied to clipboard
pancake, fork, lawnmower, spaghetti
trafficstars
HuTao-GS

EN | 简中
For support please join our Discord.
HuTao-GS's current features
- Logging in
- Automatically gives all characters
- Combat (a bit laggy)
- Spawning monsters
Requirements
Setup
- Download repository
- Install dependencies by running
npm i
Building (Choose one)
Build development
Run npm run build-dev
Build release(webpack)
Run npm run build-rel
Build release(executable)
Run npm run build
Resources
Please complete the steps in Building before you continue.
Generate Data
- Download HuTao-GD
- Run
npm run build - Put resources in
./InputData/{version}/
Hutao-GD
├─InputData
│ └─X.X.X
│──├─BinOutput
│──├─ExcelBinOutput
│──└─Scripts
- Execute RunConvert.bat
- Copy ./OutputData/{version}/* -> (HuTaoGS)/data/game/{version}/
Setup Protos
- Download HuTao-GD-Protos in Discord/#resources
- Put protos in ./data/proto/*
Hutao-GS
├─data
│ └─Proto
│──├─X.X.X
│──├─ForceUpdateInfo.proto
│──├─PacketHead.proto
│──├─QueryCurrRegionHttpRsp.proto
│──├─QueryRegionListHttpRsp.proto
│──├─RegionInfo.proto
│──├─RegionSimpleInfo.proto
│──├─ResVersionConfig.proto
│──└─StopServerInfo.proto
Running
Please complete the steps in Resources before you continue.
- You need patch Metadata (Only for 3.0.0 and lower versions) You can patch it with in-console command
Starting the server (Choose one)
Starting development server
Start server by running START-DEV.bat
Starting release server(webpack)
Start server by running START-REL.bat
Starting release server(executable)
Start server by running HuTao-GS.exe (Located at ./dist directory)
Stopping
- Type
stopin the server console then press enter to stop the server
If you did not use the
stopcommand to stop the server, any unsaved data will be lost.
Connecting
Method 1: Fiddler
- Download Fiddler Classic
- Open Fiddler and go
tools -> options -> https and Open Capture Https Connect then also open decrypt https traffic and Ignore server certificate errors then click Save Script - Then click ok
- Go to Fiddler Script then paste the script below into Fiddler Script
Method 2: DNS (Recommended)
- Press Win+R
- Type
ncpa.cpl - Press enter
- Right click on your network adapter
- Select Properties
- Inside This connection uses the following items select (TCP/IPv4) or (TCP/IPv6) depending on what you are using
- Click Properties
- Select Use the following dns server addresses
- Type the ip address in hostIp of
config.jsonor127.0.0.1if hosting locally - Press OK
- (Optional but recommended) Run
ipconfig /flushdns - Have Fun!
Remember to switch back to Obtain dns server address automatically after you are done playing.
Install SSL Certificate
- Start the server
- Wait until certificates are generated
- Goto directory in
sslDirofconfig.jsonor./sslif you haven't changed it - Open
ca.crt - Click Install Certificate
- Select Local Machine
- Click Next
- Click Yes if a prompt popped up
- Select Place all certificates in the following store
- Click Browse
- Select Trusted Root Certification Authorities
- Click OK
- Click Next
- Click Finish