An (unofficial) Visual Studio template for an unofficial modloader.
Requires Visual Studio and the SalemModLoader by Curtis. Knowledge of the C# language (and possibly the .NET framework) is strongly recommended. Only works on Windows.
- Install all prerequisites and this template.
- Open Visual Studio.
- Select File > New > Project in Visual Studio. This should open the project creation window.
- Search for 'SalemModLoader Mod' in the search bar. Select it.
- Hit 'Next.'
- Fill out your project name and location. Keep in mind that the project name will be used as the default for a lot values.
- Press 'Create.'
- You made a mod! Remember to change the SteamLibraryPath property in the '<yourprojectname>.csproj' file.
- Select Build > Build Solution in Visual Studio.
- Open File Explorer. Navigate to where you created your mod.
- Look for a folder called 'bin,' inside of it should be file called '<yourmodname>.dll.'
- Drag that file into your mods folder.
- Install all prerequisites.
- Download one of the releases (or manually build it.)
- Navigate to your project templates folder.
- Place the .zip file in said folder.
- Download the repo.
- Navigate to the ModTemplate folder.
- Select all of its contents.
- Select 'Send to' > 'Compressed (zipped) folder.'
- Rename the zip file to your liking. That is the template.
If you are on Windows, it can be found at C:\Users\<username>\Documents\Visual Studio <version>\Templates\ProjectTemplates\
Open Steam. Right click on Town of Salem 2. Select Manage > Browse local files. This should open up your game folder. Look for a folder called 'SalemModLoader,' and open it. Inside of that folder should be a 'Mods' folder.