User:Discode/Modding Getting Started: Difference between revisions
(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...") |
|||
Line 4: | Line 4: | ||
[https://visualstudio.microsoft.com/downloads/ Download Visual Studio 2019 or 2022] | [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. | Make sure to install '''.NET desktop development'''. It should say ".NET Framework 4.7.2 development tools" is included on the right. | ||
[[File:Visual Studio Installer.png|thumb|Visual Studio Installer|500px|right]] | [[File:Visual Studio Installer.png|thumb|Visual Studio Installer|500px|right]] | ||
Revision as of 22:24, 22 November 2024
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.
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)
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
After creating your project, go to your Solution Explorer, right click References, click Add References.
In the Reference Manager, browse to the 3 folders you created and add all the .dlls from the Elin and BepInEx folder you made.
Make sure they're checked marked to the left on each .dll's name.