A somewhat general guide on how to create mods for certain Unity games.
This tutorial assumes you already have coding knowledge.
Copy Nuget source: https://nuget.bepinex.dev/v3/index.json
📕 Resources:
• Modding Communities https://thunderstore.io/communities/
• BepInEx github: https://github.com/BepInEx/BepInEx
• .Net SDK: https://dotnet.microsoft.com/en-us/do...
• Visual Studio: https://visualstudio.microsoft.com/
• ILSpy: https://github.com/icsharpcode/ILSpy
• Harmony: https://harmony.pardeike.net/articles...
Time Stamps:
00:00 Intro
00:24 Install BepInEx
00:44 .NET SDK Review
01:41 Install Visual Studio
02:11 Install ILspy
02:57 Project Setup
03:53 How to setup nuget packages
07:21 Nuget overview
09:26 ILSpy
11:23 Adding the game assembly
13:08 Patching
16:09 Accessing private methods
18:00 Understanding __instance
19:26 Prefix Method
19:58 Patching all methods
20:45 BepInEx Setup
22:20 Testing Peak Mod
23:26 Lethal Company Mod