Creating Your Project

Now that we have set up our development tools, we will create our project for our first mod.

To do this, we will use a command line tool to copy files from a template from us.

Begin by opening a command line and typing;

dotnet new install VoidBehemoth.SMLTemplate::1.0.0

TIP

1.0.0 is a working version, but 1.1.0 includes an unresolved path that does not work out of the box, so don't install the latest version.

After installing the template, navigate to a folder that you wish to create a project in. You can do this with cd folder or simply by right clicking while in a folder and clicking 'Open in Terminal.'

Then, copy your Steam library path and run the command;

dotnet new smlmod -s "C:\Program Files (x86)\Steam"

This will create the project in your current directory. Ensure that everything has copied successfully by looking at the output of dir or ls and you should see the following file tree;

└─ project
   ├─ .gitignore
   ├─ obj
   ├─ resources
   ├─ src
   ├─ SteamLibrary.targets
   └─ project.csproj

If you see the files in your folder, you have successfully completed the first step of creating your mod! 🚀

Last Updated:
Contributors: nyapat, pat