Skip to content

IroriPowered/hyinit

Repository files navigation

Hyinit

A restriction-free Mixin bootstrapper for HytaleServer. Backwards compatible with Hyxin.

User Guide

Hyinit is NOT a standard early plugin, so do not place it in the earlyplugins folder. Instead, use Hyinit-X.X.X.jar instead of your standard HytaleServer.jar to launch the server. When launching, make sure that both Hyinit and HytaleServer JARs are in the same directory.

For example, if you are currently using a command like this to start the server normally:

java -Xms10G -Xmx10G -jar HytaleServer.jar --assets=../Assets.zip

You may start the server through Hyinit using the following command instead:

java -Xms10G -Xmx10G -jar Hyinit-X.X.X.jar --assets=../Assets.zip

Now, you can install mod JARs that depend on Hyinit Mixin environment in the earlyplugins folder.

Developer Guide

Dependencies

Hyinit currently does not have its own API, so you should depend directly on FabricMC's Mixin fork and MixinExtras:

dependencies {
    // Mixin
    compileOnly("net.fabricmc:sponge-mixin:${MIXIN_VERSION}")
    // MixinExtras
    compileOnly("io.github.llamalad7.mixinextras:mixinextras-fabric:${MIXINEXTRAS_VERSION}")
}

Adding Mixins

Put JARs with your Mixins in the earlyplugins folder. In manifest.json, add the following entry:

{
    "Mixins": [
        "your_mixin_config.mixins.json"
    ]
}

Hyxin Compatibility

manifest.json with the following entry will also be read for compatibility with Hyxin:

{
    "Hyxin": {
        "Configs": [
            "your_mixin_config.mixins.json"
        ]
    }
}

Note

The MixinService and the Mixin class loader implementations are partially based on fabric-loader's Knot implementation.

About

A restriction-free Mixin bootstrapper for Hytale

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages