Current version supports MelonLoader 0.5.7.
Loader for BepInEx to be able to use MelonLoader plugins.
BepInEx/config
. Additional options configuring the internal components of MelonLoader are also located here. The configuration file will be generated on the first launch automatically.MLLoader/Mods
and MLLoader/Plugins
folders respectively. Other folders and files have been moved to the MLLoader
folder, but some plugins/mods won't respect this.Some mods or plugins won't work out of the box with this. Some things you can do to fix this:
<your game directory>/mono/Managed
. This folder should already exist if you've installed the IL2CPP version of BepInEx correctlyBepInEx/DeobfuscationMap.csv.gz
. (This will sometimes need to be updated when the game updates)Sometimes the unhollowed assemblies generated by BepInEx can differ significantly from assemblies generated by MelonLoader (due to a reason I haven't diagnosed yet). ML plugins and mods will typically complain about missing types or methods in such unhollowed assemblies. Follow this guide to fix this problem:
BepInEx/config/io.bepis.melonloader.loader.cfg
and set EnableAssemblyGeneration
to true.MelonLoader/AssemblyOutput
. Open BepInEx/unhollowed
, delete ONLY the .dll files, and move the .dll files from AssemblyOutput to here.EnableAssemblyGeneration
back to false.You will have to do this every time the game updates. Make sure to only delete the .dll files and don't touch assembly-hash.txt
; if it has been deleted or modified, BepInEx will assume that the unhollowed assemblies have to be regenerated, and will overwrite the MelonLoader generated .dll files.
Some mods have a check to ensure that you are running an official build of MelonLoader with full obfuscation detection support. The version of BepInEx.MelonLoader.Loader posted here does not have this check, and as such these mods will not work. Fixes for this will not be committed here at the request of Knah.
This repo uses code adapted from MelonLoader itself, which is under the Apache 2.0 license (included in the repo)
As per licensing, the changes included in this repository are:
MLLoader
The repository contains only the BepInEx plugin and all modified MelonLoader assemblies. Unmodified assemblies are built directly from MelonLoader source.