User:Discode/Modding Getting Started

From Ylvapedia
< User:Discode
Revision as of 22:23, 22 November 2024 by Discode (talk | contribs) (Created page with " This a guide on how to setup the development environment and a quickstart guide to modding using an example. == Getting Started == [https://visualstudio.microsoft.com/downloads/ Download Visual Studio 2019 or 2022] Make sure to install .NET desktop development. It should say ".NET Framework 4.7.2 development tools" is included on the right. thumb|Visual Studio Installer|500px|right Create a new folder where you would like to store...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This a guide on how to setup the development environment and a quickstart guide to modding using an example.

Getting Started

Download Visual Studio 2019 or 2022

Make sure to install .NET desktop development. It should say ".NET Framework 4.7.2 development tools" is included on the right.

Visual Studio Installer

Create a new folder where you would like to store your mods, name it whatever you want.

Create 3 folders inside this folder named: Elin, BepInEx and Mods.

Navigate to your Elin folder. (You can find your Elin folder by going to Steam, right clicking Elin>Properties, and under Installed Files, click "Browse".)

Under /Elin/Elin_Data/BepInEx/core, copy these files to the BepInEx folder you made:

  • 0Harmony.dll
  • BepInEx.Core.dll
  • BepInEx.Core.xml
  • BepInEx.Unity.dll
  • BepInEx.Unity.xml

Under /Elin/Elin_Data/Managed/, copy these files to the Elin folder you made:

  • Elin.dll
  • Plugins.BaseCore.dll
  • Plugins.UI.dll
  • Reflex.dll
  • UnityEngine.dll
  • UnityEngine.CoreModule.dll

If a .dll is missing in a project you're trying to build, simply go to your game's folder and look for them.

Now run Visual Studio, create a new project: Class Library (.Net Framework)

Create a new project

Set the location to the Mods folder you created

Check the box that says Place solution and project in the same directory.

Set the Framework as .NET Framework 4.7.2

Configure your new project

After creating your project, go to your Solution Explorer, right click References, click Add References.

Create a new project

In the Reference Manager, browse to the 3 folders you created and add all the .dlls from the Elin and BepInEx folder you made.

Create a new project

Make sure they're checked marked to the left on each .dll's name.