From 698930820cc59c5e7193283afb7e9d535391afdb Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 28 May 2017 00:39:01 -0400 Subject: log debug command output (#297) --- src/TrainerMod/TrainerMod.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/TrainerMod') diff --git a/src/TrainerMod/TrainerMod.cs b/src/TrainerMod/TrainerMod.cs index 95c7cbaf..815cfb17 100644 --- a/src/TrainerMod/TrainerMod.cs +++ b/src/TrainerMod/TrainerMod.cs @@ -124,9 +124,17 @@ namespace TrainerMod switch (command) { case "debug": + // build debug string string debugCommand = string.Join(" ", args); this.Monitor.Log($"Sending debug command to the game: {debugCommand}...", LogLevel.Info); + + // submit command + string oldOutput = Game1.debugOutput; Game1.game1.parseDebugInput(debugCommand); + + // log command output (if any) + if (Game1.debugOutput != oldOutput) + this.Monitor.Log($"> {Game1.debugOutput}", LogLevel.Info); break; case "save": -- cgit From 0c992e562ad1d3aafd12d0820bbd8ce0bb580c5d Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 28 May 2017 00:46:25 -0400 Subject: simplify debug command output (#297) --- src/TrainerMod/TrainerMod.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/TrainerMod') diff --git a/src/TrainerMod/TrainerMod.cs b/src/TrainerMod/TrainerMod.cs index 815cfb17..9a3a8d0b 100644 --- a/src/TrainerMod/TrainerMod.cs +++ b/src/TrainerMod/TrainerMod.cs @@ -124,17 +124,15 @@ namespace TrainerMod switch (command) { case "debug": - // build debug string - string debugCommand = string.Join(" ", args); - this.Monitor.Log($"Sending debug command to the game: {debugCommand}...", LogLevel.Info); - // submit command + string debugCommand = string.Join(" ", args); string oldOutput = Game1.debugOutput; Game1.game1.parseDebugInput(debugCommand); - // log command output (if any) - if (Game1.debugOutput != oldOutput) - this.Monitor.Log($"> {Game1.debugOutput}", LogLevel.Info); + // show result + this.Monitor.Log(Game1.debugOutput != oldOutput + ? $"> {Game1.debugOutput}" + : "Sent debug command to the game, but there was no output.", LogLevel.Info); break; case "save": -- cgit From 3a8e77a3098572fa413a27f41f832563daec3453 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 2 Jun 2017 18:25:11 -0400 Subject: update for release --- src/GlobalAssemblyInfo.cs | 4 ++-- src/StardewModdingAPI/Constants.cs | 2 +- src/TrainerMod/manifest.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/TrainerMod') diff --git a/src/GlobalAssemblyInfo.cs b/src/GlobalAssemblyInfo.cs index 93ff68ec..4344dbce 100644 --- a/src/GlobalAssemblyInfo.cs +++ b/src/GlobalAssemblyInfo.cs @@ -2,5 +2,5 @@ using System.Runtime.InteropServices; [assembly: ComVisible(false)] -[assembly: AssemblyVersion("1.13.1.0")] -[assembly: AssemblyFileVersion("1.13.1.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.14.0.0")] +[assembly: AssemblyFileVersion("1.14.0.0")] \ No newline at end of file diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs index ef131575..4e53387e 100644 --- a/src/StardewModdingAPI/Constants.cs +++ b/src/StardewModdingAPI/Constants.cs @@ -33,7 +33,7 @@ namespace StardewModdingAPI ** Public ****/ /// SMAPI's current semantic version. - public static ISemanticVersion ApiVersion { get; } = new SemanticVersion(1, 13, 1); + public static ISemanticVersion ApiVersion { get; } = new SemanticVersion(1, 14, 0); // alpha-{DateTime.UtcNow:yyyyMMddHHmm} /// The minimum supported version of Stardew Valley. public static ISemanticVersion MinimumGameVersion { get; } = new SemanticVersion("1.2.30"); diff --git a/src/TrainerMod/manifest.json b/src/TrainerMod/manifest.json index 8bddf02d..1232a365 100644 --- a/src/TrainerMod/manifest.json +++ b/src/TrainerMod/manifest.json @@ -3,7 +3,7 @@ "Author": "SMAPI", "Version": { "MajorVersion": 1, - "MinorVersion": 9, + "MinorVersion": 14, "PatchVersion": 0, "Build": null }, -- cgit