The modding API for Stardew Valley.
Go to file
Zoryn Aaron a9955e0a73 binaries 2016-02-28 16:15:53 -05:00
Release binaries 2016-02-28 16:15:53 -05:00
StardewModdingAPI update 2016-02-28 16:01:24 -05:00
.gitignore binaries 2016-02-28 16:15:53 -05:00
LICENSE Initial commit 2016-02-28 06:44:19 -05:00
README.md no message 2016-02-28 07:02:50 -05:00
StardewModdingAPI.sln no message 2016-02-28 06:55:35 -05:00
StardewModdingAPI.vssscc no message 2016-02-28 06:55:35 -05:00

README.md

SMAPI

A Modding API For Stardew Valley

There is no documentation right now. You compile this if you're interested and throw it next to your StardewValley.exe and run it. It should open the game and a beautiful black box that look atrocious honestly. That's the modding api. You can make a project and reference that to add functionality. Below is my test mod class. Mods go in C:\Users<USERNAME>\AppData\Roaming\StardewValley\Mods or something like that.

It is currently 7AM EST and I have not slept in over 40 hours, so good night/morning/etc to anyone reading, I'll make this more proper some other time.

TestMod.cs:

public class TestMod : Mod
{
    public override string Name
    {
        get { return "Test Mod"; }
    }

    public override string Authour
    {
        get { return "Zoryn Aaron"; }
    }

    public override string Version
    {
        get { return "0.0.1Test"; }
    }

    public override string Description
    {
        get { return "A Test Mod"; }
    }

    public override void Entry()
    {
        Console.WriteLine("Test Mod Has Loaded");
        Program.LogError("Test Mod can call to Program.cs in the API");
        Program.LogColour(ConsoleColor.Magenta, "Test Mod is just a tiny DLL file in AppData/Roaming/StardewValley/Mods");

        Events.GameLoaded += Events_GameLoaded;
    }

    void Events_GameLoaded()
    {
        
        Program.LogInfo("[Game Loaded Event] I can do things directly to the game now that I am certain it is loaded thanks to events.");
    }
}