Git Product home page Git Product logo

ddlcplusinjector's Introduction

DDLC Plus Injector

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.

Work in progress

This is just a work-in-progress, so don't expecto something too stable or a massive amount of mods.

Installing

  1. Download a patched DDLC.dll from the Releases page
  2. Put the patched DDLC.dll in the folder Doki Doki Literature Club Plus_Data/Managed/ of the game
  3. Download the DDLC+ Injector.dll file from Releases or compile it by yourself cloning this repository and compiling the Injector solution
  4. Put the downloaded file in the root of the folder of the game
  5. In the root of the game folder create the mods/ folder
  6. 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 :)

Installed

For Developers

This is just a little guide of how to develop mods for DDLC Plus in a easy way.

  1. 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)
  2. In the project dependencies add the *.DLL's that are in the DDLC Plus folder (Doki Doki Literature Club Plus_Data/Managed)
  3. Add your code
  4. Compile the project
  5. After compiling, Put the DLL file in a folder called mods/ in the DDLC Plus base folder
  6. 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.

A little example of how write a simple mod:

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:

HelloWorld

Patching the game

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.

  1. Install dnSpy
  2. With dnSpy open the Assembly-CSharp.dll file (That is in Doki Doki Literature Club Plus_Data/Managed/Assembly-CSharp.dll)
  3. Patch the 'Awake' method in the 'LauncherMain' class using the code in the Patch folder
  4. Compile the patched file

Credits

Team Salvato: The creators and the owners of "Doki Doki Literature Club Plus" and "Doki Doki Literature Club".

ddlcplusinjector's People

Contributors

elcosmoxd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.