Giter Site home page Giter Site logo

weedwacker's Introduction

Weedwacker

Private Server reimplementation of a certain anime game. Join us on our discord!

Features:

  • Ability Framework (funeral parlor director's health reduction works correctly, and as intended!)
  • Native Lua 5.3 integration
  • Independent and highly customizable WebServer powered by microsoft's kestrel with the necessary json data structures properly represented in the code
  • Authentication framework
  • Organized Avatar framework faithfully reflecting the data and the game design
  • A very organized inventory system with type safety
  • Use of the Official c# driver for mongodb (with godly documentation), the ability to update, save, delete documents as needed
  • Resource loading and management of $type polymorphism
  • Extensive debug logging and the option to save to disk (only in the DEBUG build)
  • Microsoft's System.CommandLine library to handle both shell and ingame commands (via the chat)

Contributing:

View our contributing guidelines.

Requirements:

  • .NET 6

  • MongoDB

  • Proxy Daemon: Fiddler Classic (recommended), mitmproxy (mitmdump, recommended), etc.

  • mhypbase patch (Optional): if you want to enable Server.Account.UsePassword, you need to patch yor cilent according to mhypbase project.

Building:

any .NET 6 compatible compiler

Running:

Weedwacker has 2 different executables. one for the HTTP web server, one for the UDP game server

    1. Download and put at the root of the project the resources folder
  • 1b) Check out DataParser if you're interested.
    1. Run both the WebServer and the GameServer executables (also generates the configuration jsons if not present).
  • 2b) If you plan to host multiple game server instances, or run over a network, make the appropriate changes/additions to the config jsons (each server should have its own MongoDB Database).

Connecting:

½. Make sure you've set up/modified your client correctly to connect to private servers.

  1. Create an account on the web server (NOT the game server) using the account create <username> command from the console, or set AutoCreate to true in WebConfig.json.
  2. Use your preferred method to proxy web traffic from official servers to the webserver.
  3. Launch the game and play!

FiddlerScript:

Go to Tools->Options->HTTPS enable Decrypt HTTPS traffic. use the following script with fiddler to proxy the traffic to your webserver:

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.host = "localhost"; // This can also be replaced with another IP address.
            oS.port = 443; // Change to the port of the WebServer
		}
		
		if (oS.host.Equals("overseauspider.yuanshen.com:8888")) {
            oS.oRequest.FailSession(404, "Blocked", "Not Found");
        }
        
	}
};

weedwacker's People

Contributors

hkunogi avatar akatatsu27 avatar swety2003 avatar 24karatt avatar baisugar avatar tamilpp25 avatar 14eyes avatar phuchptty 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.