Skip to content

Environment Setup

  • Install the modded client first — MelonLoader only generates Il2CppAssemblies/ and UserLibs/ 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.dll and Anomaly.Shared.dll (both from the modded UserLibs/).
  • 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.
  • E:\Projects\AnomalyLabs\Anomaly\Anomaly.Client.Api\MODDING.md — “Prerequisites”, “Load order”, “Picking an id”.