Mod/DLL support for Doki Doki Literature Club Plus.
I'm working again on this project, obviously I have other things to do, so if you want to add something any PR is welcome.
NOTE: This might be pretty obvious but for developing/using mods you need to have a copy of the game, You can buy it on https://ddlc.plus.
This is just a work-in-progress, so don't expecto something too stable or a massive amount of mods.
- Download a patched
DDLC.dll
from the Releases page - Put the patched
DDLC.dll
in the folderDoki Doki Literature Club Plus_Data/Managed/
of the game - Download the
DDLC+ Injector.dll
file from Releases or compile it by yourself cloning this repository and compiling the Injector solution - Put the downloaded file in the root of the folder of the game
- In the root of the game folder create the
mods/
folder - Install mods and put them into the
mods/
folder
Please, before doing anything do a backup of the original DDLC.dll
file, Because if something goes wrong you will have to reinstall the game.
Now the DDLC Plus folder should look like this :)
This is just a little guide of how to develop mods for DDLC Plus in a easy way.
- Create a C# solution (Specifically a DLL .NET Standard solution) using Visual Studio (You can use any IDE but I haven't tested with others)
- In the project dependencies add the *.DLL's that are in the DDLC Plus folder (
Doki Doki Literature Club Plus_Data/Managed
) - Add your code
- Compile the project
- After compiling, Put the DLL file in a folder called
mods/
in the DDLC Plus base folder - Test (Obviously for testing you have to install the Injector first)
In order to interact with the game, you should write the mod like a Unity game, with the MonoBehavieour GameObjects.
using UnityEngine;
namespace DDLCPlus
{
public class Mod
{
public static void Start()
{
Debug.Log("Hello, World!");
Debug.Log("This message comes from an loaded mod!");
}
}
}
Now, if you run the game and you see the Unity's 'Player.log' file, You will see this:
This step is necessary when you want to patch the Assembly-CSharp.dll
file by yourself. But you have to know that you will have to make many modifications to the file for making the mods work.
- Install dnSpy
- With dnSpy open the
Assembly-CSharp.dll
file (That is inDoki Doki Literature Club Plus_Data/Managed/Assembly-CSharp.dll
) - Patch the 'Awake' method in the 'LauncherMain' class using the code in the
Patch
folder - Compile the patched file
Team Salvato: The creators and the owners of "Doki Doki Literature Club Plus" and "Doki Doki Literature Club".