From 7ba0518bfdfc06f2e80b6a0891689beda7f43aa7 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 9 May 2017 17:16:13 -0400 Subject: add 'debug' console command --- src/TrainerMod/TrainerMod.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/TrainerMod') diff --git a/src/TrainerMod/TrainerMod.cs b/src/TrainerMod/TrainerMod.cs index 168b7e8e..95c7cbaf 100644 --- a/src/TrainerMod/TrainerMod.cs +++ b/src/TrainerMod/TrainerMod.cs @@ -111,7 +111,9 @@ namespace TrainerMod .Add("world_setminelevel", "Sets the mine level?\n\nUsage: world_setminelevel \n- value: The target level (a number between 1 and 120).", this.HandleCommand) .Add("show_game_files", "Opens the game folder.", this.HandleCommand) - .Add("show_data_files", "Opens the folder containing the save and log files.", this.HandleCommand); + .Add("show_data_files", "Opens the folder containing the save and log files.", this.HandleCommand) + + .Add("debug", "Run one of the game's debug commands; for example, 'debug warp FarmHouse 1 1' warps the player to the farmhouse.", this.HandleCommand); } /// Handle a TrainerMod command. @@ -121,6 +123,12 @@ namespace TrainerMod { switch (command) { + case "debug": + string debugCommand = string.Join(" ", args); + this.Monitor.Log($"Sending debug command to the game: {debugCommand}...", LogLevel.Info); + Game1.game1.parseDebugInput(debugCommand); + break; + case "save": this.Monitor.Log("Saving the game...", LogLevel.Info); SaveGame.Save(); -- cgit From 17ff230d8e7f7879337011babba4f65fae5d9bf8 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 13 May 2017 15:14:32 -0400 Subject: streamline crossplatform build with Mono 5.0, update readme, tweak release notes --- src/TrainerMod/TrainerMod.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/TrainerMod') diff --git a/src/TrainerMod/TrainerMod.csproj b/src/TrainerMod/TrainerMod.csproj index 0bd667d4..191b7819 100644 --- a/src/TrainerMod/TrainerMod.csproj +++ b/src/TrainerMod/TrainerMod.csproj @@ -3,7 +3,7 @@ Debug - AnyCPU + x86 {28480467-1A48-46A7-99F8-236D95225359} Library Properties @@ -12,7 +12,7 @@ v4.5 512 - + true full true @@ -24,7 +24,7 @@ false true - + pdbonly true $(SolutionDir)\..\bin\Release\Mods\TrainerMod\ -- cgit From 1b1f37d082ea9dbea39bc13aade9d5fd8e6c5f7c Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 18 May 2017 16:56:28 -0400 Subject: fix build error with Mono 5.0 on Linux/Mac --- src/TrainerMod/TrainerMod.csproj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/TrainerMod') diff --git a/src/TrainerMod/TrainerMod.csproj b/src/TrainerMod/TrainerMod.csproj index 191b7819..46d8bef9 100644 --- a/src/TrainerMod/TrainerMod.csproj +++ b/src/TrainerMod/TrainerMod.csproj @@ -80,8 +80,7 @@ - - + \ No newline at end of file -- cgit