Environment Setup
Intended scope
Section titled “Intended scope”- Install the modded client first — MelonLoader only generates
Il2CppAssemblies/andUserLibs/after the first launch. - Create a MelonLoader IL2CPP project — fastest path is the Visual Studio template pointed at the modded
SCPSL.exe. - Add references to
Anomaly.Client.Api.dllandAnomaly.Shared.dll(both from the moddedUserLibs/). - Do not reference
Anomaly.Client.dll— it loads as a peer mod at runtime. - Declare the dependency:
[assembly: MelonAdditionalDependencies("Anomaly")]forces correct load order. - Choose a mod id — the namespace regex and why
anomaly/anomaly.*is reserved.
Sources
Section titled “Sources”E:\Projects\AnomalyLabs\Anomaly\Anomaly.Client.Api\MODDING.md— “Prerequisites”, “Load order”, “Picking an id”.