-
Notifications
You must be signed in to change notification settings - Fork 0
Creating a mod
This is cool and all, but how do you go about writing a mod? Well, it's quite simple.
Download the Loadson MDK (Mod Dev Kit) found here (direct download).
Run ModBuilder.exe to initialize your project.
You will be asked to select your Karlson install. This will copy all the game files you need to compile your mod.
Additionally, 0Harmony.dll and LoadsonAPI.dll will be downloaded from the compiled binaries (see Releases for more info)
After that, you will be prompted to enter a mod name.
This is very important, pick a unique name. You won't be able to change your GUID
You can now open the LoadsonMod.sln solution with Visual Studio and start writing your mod.
Create a Main.cs file in your LoadsonMod project.
Delete using directives and replace with LoadsonMod using directives:
using Loadson;
using LoadsonAPI;
using UnityEngine;Make your class public and inherit Loadson.Mod:
public class Main : Mod
{
}Now, you can take a look at the API Documentation and Compiling your mod