#Starting modding using Jetbrains Rider
1 messages · Page 1 of 1 (latest)
.NET setup
You'll need to have the latest version of .NET installed.
Downloads for .NET can be found here: https://dotnet.microsoft.com/download
Note that you may need to restart your PC to complete the installation process.
Verify the installation was completed successfully by running the following command in a terminal:
dotnet --list-sdks
You should receive a reply with numbers matching the version you installed.
Rider setup
This tutorial assumes you own and already have Rider installed. If not, this guide by Jetbrains should get you through it much better than I could:
https://www.jetbrains.com/help/rider/Installation_guide.html
BepInEx setup
Please following this excellent guide by @graceful umbra to install BepInEx for Shadows of Doubt. I recommend using the mod manager installation, using Thunderstore:
#1109504609287938148 message
BepInEx templates
You'll want to install the BepInEx templates, so that Rider can automatically created a templated project for you to start with.
Run the following command in a terminal to install the templates, and make them available to Rider (and any other C# IDE):
dotnet new -i BepInEx.Templates::2.0.0-be.2 --nuget-source https://nuget.bepinex.dev/v3/index.json
Creating a new Rider solution
When opening Rider, you can create a new solution from the following screen.
Simply press the "new solution" button to start the process of creating a new project!
Creating a new Rider solution - part 2
Once the new solution window is open, you can select a template and configure your project's directory.
I highly recommend enabling the option to create a git directory. Git is a version control system, and adds significant benefits to your project - even if you're not actively using it. It allow you to easily roll back to previous versions of your mod, in case you mess something up, and allows others to collaborate with you on your project, if you choose to set up a GitHub repository. Simply enabling it from the start does not have any drawbacks, but enabling it at a later point means you might lose out on some of its benefits.
For more information, here is a git for dummies tutorial: https://www.youtube.com/watch?v=mJ-qvsxPHpY
Note that Rider has a menu for git integration, so you do not need to run any of the commands featured in this video
You will also want to choose a descriptive name for your project. This means that your mod's name should give a decent idea as to what it does. For this example, I've named my project MyFirstMod.
The Best Place To Continue Learning Git / Github - https://bit.ly/3MFZLIZ
Preparing For Your Coding Interviews? Use These Resources
————————————————————
(My Course) Data Structures & Algorithms for Coding Interviews - https://thedailybyte.dev/courses/nick
AlgoCademy - https://algocademy.com/?referral=nickwhite
Daily Coding Interview Questions -...
Creating a new Rider solution - part 3
Now, before creating our project, we'll want to actually use those BepInEx templates we installed earlier!
On the left you see a number of existing, default templates. Scroll down this list to the bottom, and you should see a category called Other. In this category, you should see a number of BepInEx ... options.
At the current time of writing this guide, Shadows of Doubt uses Il2Cpp. Hence, we'll use this template.
If everything went right, you should see a window comparable to the following screenshot.