The Long Dark Modding Wiki
Advertisement

Last update 16 November 2020
This is a WIP based around my personal experience writing my first TLD mod. As I complete the steps, I will flesh them out into more detail.

Brief Overview[]

1. pull the source from 1.56's AssemblyCsharp.dll using dnSpy
2. identify the method that handles what I'm doing
3. think about whether I should alter the variables before or after that method runs
4. create a VS project using the instructions in #tutorials
5. write a prefix or postfix patch using harmony https://github.com/pardeike/Harmony/wiki
6. compile and smile

Step 1: Pull source[]

Step 2: Identify the method[]

Step 3: Create implementation plan[]

Step 4: Create VS project[]

Step 5: Write the patch using Harmony[]

Advertisement