Switching to MelonLoader 0.6.0 - gurrenm3/BTD-Mod-Helper GitHub Wiki
MelonLoader 0.6.0 alpha is the first official release that works for BTD6 v34, but NO OLD MODS will work on it; EVERYTHING will need to be updated.
This page covers some tips for users / modders for dealing with the update to 0.6.0
Tips for Users:
- To see 0.6.0 in the MelonLoader installer, you need to check the "Show ALPHA Pre-Releases" box in the settings. You can also directly download it from the GitHub release to manually install it.
- If you get any error about "il2cpp_init_detour ..." You need to download a newer version of dotNet from Microsoft's website. Your best will be the ".NET Runtime 6.0.12" in the bottom right, choosing the installer appropriate for your operating system (most commonly Windows x64). Once you download the installer, you'll need to run it and let it properly install on your system.
- Since no old mods will work without being updated, you may as well take all other mod .dlls you already had in your Mods folder and move them into the Disabled folder.
Tips for Modders:
- Switch your .csproj to targeting
net6.0
instead ofnet48
.
-
If you aren't already, it'd really make your life easier to make use of the
btd6.targets
file that Mod Helper provides. The updatedbtd6.targets
will already handle switching to the new dll references, so most of what's left is fixing yourusing ...
statements. -
0.6.0 replaces the old Unhollower library with the new Il2CppInterop library. Anywhere where you have
using UnhollowerBaseLib;
should be replaced with one of the following:
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
-
0.6.0 also renames many other packages to have
Il2Cpp
in their name, most notableAssets
=>Il2CppAssets
. You can address this pretty easily by doing a project-wide Find + Replace forusing Assets
tousing Il2CppAssets
. -
Some Il2Cpp classes will simply require a
using Il2Cpp;
-
As of Mod Helper 3.1.1, only mods that include the "WorksOnVersion" property with a value of "34" / "34.3" or higher will show up in the Mod Browser to make it clearer what mods will actually work. Once you've fixed your mods, update your ModHelperData in a similar way to Ultimate Crosspathing