Code Monkey home page Code Monkey logo

hutao-gs's Introduction

HuTao-GS

pc-fork

EN | 简中

For support please join our Discord.

HuTao-GS's current features

  • Logging in
  • Automatically gives all characters
  • Combat
  • 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

 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 stop in the server console then press enter to stop the server

If you did not use the stop command 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

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.json or 127.0.0.1 if 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 sslDir of config.json or ./ssl if 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

hutao-gs's People

Contributors

notarandomguy avatar crowity avatar sycamore0 avatar kuma-dayo avatar yincql avatar wcjqwq avatar chisatonishikigi73 avatar sirdarwin avatar 0eromacys avatar wanderer-fly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.