From 520c46fbe661acac7f6c7854b71d05f58a06cf64 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 19 Oct 2016 19:26:33 -0400 Subject: expand readme, restructure config --- README.md | 39 +++++++++++++++---------- build/smapi.targets | 82 ++++++++++++++++++++++++++++++----------------------- package.nuspec | 2 +- 3 files changed, 71 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index 6ea731d1..564f508e 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,38 @@ **Stardew.ModBuildConfig** is an open-source NuGet package which automates the build configuration for crossplatform [Stardew Valley](http://stardewvalley.net/) mods that use SMAPI. -The configuration detects the operating system (Linux, Mac, or Windows) and the Stardew Valley -install path, and injects the correct references to Stardew Valley, SMAPI, and XNA/MonoGame. -It also adds a `GamePath` variable which can be used to automate mod installation during testing -if desired. +The configuration... -## Contents -* [Installation](#installation) -* [Configuration](#configuration) -* [Versions](#versions) -* [See also](#see-also) +1. detects the operating system (Linux, Mac, or Windows) and the Stardew Valley install path; +2. injects the correct references to Stardew Valley, SMAPI, and XNA/MonoGame; +3. (on Windows) configures Visual Studio so you can launch the game for debugging; +4. and adds a `GamePath` variable which can be used to automate mod installation during testing + if desired. ## Installation -### New mod -_TODO_ +### Creating a new mod +1. Create an empty library project. +2. Reference the `Pathoschild.Stardew.ModBuildConfig` NuGet package. +3. [Write your code](http://canimod.com/guides/creating-a-smapi-mod). +4. Compile on any platform. ### Migrating an existing mod -_TODO_ +1. Remove any references to `Microsoft.Xna.*`, Stardew Valley, `StardewModdingAPI`, and xTile. +2. Reference the `Pathoschild.Stardew.ModBuildConfig` NuGet package. +3. Compile on any platform. ## Configuration -_TODO_ +### Custom game path +If you customised where Stardew Valley is installed, you can add your path to the list to try. -## Versions -_TODO_ +1. Get the full path to the directory containing the Stardew Valley executable. +2. Add this section to your `.csproj` file (anywhere before the added ` + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley + + ``` ## See also _TODO_ diff --git a/build/smapi.targets b/build/smapi.targets index 1e71d06a..6231650c 100644 --- a/build/smapi.targets +++ b/build/smapi.targets @@ -1,47 +1,57 @@ - + C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley ~\Library\Application Support\Steam\steamapps\common\Stardew Valley\Contents\MacOS - Program - $(GamePath)\StardewModdingAPI.exe - $(GamePath) - - - - - - - $(GamePath)\Stardew Valley.exe - - - $(GamePath)\StardewModdingAPI.exe - - - False - $(GamePath)\xTile.dll - - + + + + + + + + + + $(GamePath)\Stardew Valley.exe + + + $(GamePath)\StardewModdingAPI.exe + + + False + $(GamePath)\xTile.dll + + - - - - False - $(GamePath)\MonoGame.Framework.dll - - - $(GamePath)\StardewValley.exe - - - $(GamePath)\StardewModdingAPI.exe - - - $(GamePath)\xTile.dll - - + + + Program + $(GamePath)\StardewModdingAPI.exe + $(GamePath) + + + + + + + False + $(GamePath)\MonoGame.Framework.dll + + + $(GamePath)\StardewValley.exe + + + $(GamePath)\StardewModdingAPI.exe + + + $(GamePath)\xTile.dll + + + + diff --git a/package.nuspec b/package.nuspec index 5d8e5e52..a000d986 100644 --- a/package.nuspec +++ b/package.nuspec @@ -2,7 +2,7 @@ Pathoschild.Stardew.ModdingBuildConfig - 1.0-alpha + 1.0-alpha2 MSBuild config for Stardew Valley mods Pathoschild Pathoschild -- cgit