-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
Justin Oroz edited this page Jul 2, 2017
·
28 revisions
After setting up an SMAPI mod there are a few quick steps to adding your mod to the Mod Config tab.
First, we need to allow your project to reference the necessary classes.
- Open the project Solution in Visual Studio
- Right click the
Referencesoption in the Solution Explorer, usually on the left side, and selectEdit References.
- Select the
.Net Assemblytab and browse for the downloadedStardewConfigFramework.dll. Download here. Ensure the assembly file is selected with a check by the name.
- That's it! Hit OK, and you now have a reference to the Framework.
In order for the Framework to be accessed it must be loaded prior to your mod, to ensure this we will add StardewConfigFramework as a dependency. Add the following lines to your manifest.json file.
"Dependencies": [
{ "UniqueID": "Juice805.StardewConfigMenu" }
]
For Example, your manifest may look like this:
{
"Name": "Framework Example",
"Authour": "Juice805",
"Version": {
"MajorVersion": 1,
"MinorVersion": 0,
"PatchVersion": 0,
"Build": ""
},
"Description": "A short description of your app.",
"UniqueID": "You.ModID",
"EntryDll": "Example.dll",
"Dependencies": [
{ "UniqueID": "Juice805.StardewConfigMenu" }
]
}