From c50891a09367169f47c80d11ae5b5bcb0d3c50a2 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sun, 20 Mar 2016 15:43:31 -0400 Subject: Zoryn returns. Added JSON. Added Config.cs. --- TrainerMod/TrainerMod.csproj | 25 ++++++++++++++++--------- TrainerMod/packages.config | 4 ++++ 2 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 TrainerMod/packages.config (limited to 'TrainerMod') diff --git a/TrainerMod/TrainerMod.csproj b/TrainerMod/TrainerMod.csproj index ddf1b317..2baa6a26 100644 --- a/TrainerMod/TrainerMod.csproj +++ b/TrainerMod/TrainerMod.csproj @@ -34,16 +34,16 @@ false - - - $(SteamInstallPath) + + + $(SteamInstallPath) - - - - ..\..\..\..\Games\SteamLibrary - - + + + + ..\ + + @@ -52,6 +52,10 @@ False + + ..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll + True + $(SteamPath)\steamapps\common\Stardew Valley\Stardew Valley.exe False @@ -80,6 +84,9 @@ False + + + diff --git a/TrainerMod/packages.config b/TrainerMod/packages.config new file mode 100644 index 00000000..583acbdf --- /dev/null +++ b/TrainerMod/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file -- cgit From f0cb2c0e63c9e00a7a902a7729c862a569d21061 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sun, 20 Mar 2016 17:19:02 -0400 Subject: converted mod loading to a manifest structure. mods now go in ./Mods// - in there you need a 'manifest.json' and your dll. See trainermod for example. --- TrainerMod/TrainerMod.cs | 2 ++ TrainerMod/TrainerMod.csproj | 1 + TrainerMod/manifest.json | 7 +++++++ 3 files changed, 10 insertions(+) create mode 100644 TrainerMod/manifest.json (limited to 'TrainerMod') diff --git a/TrainerMod/TrainerMod.cs b/TrainerMod/TrainerMod.cs index e2482c5d..bed66b21 100644 --- a/TrainerMod/TrainerMod.cs +++ b/TrainerMod/TrainerMod.cs @@ -16,6 +16,7 @@ namespace TrainerMod { public class TrainerMod : Mod { + /* public override string Name { get { return "Trainer Mod"; } @@ -35,6 +36,7 @@ namespace TrainerMod { get { return "Registers several commands to use. Most commands are trainer-like in that they offer forms of cheating."; } } + */ public static int frozenTime; public static bool infHealth, infStamina, infMoney, freezeTime; diff --git a/TrainerMod/TrainerMod.csproj b/TrainerMod/TrainerMod.csproj index 2baa6a26..6424ecdb 100644 --- a/TrainerMod/TrainerMod.csproj +++ b/TrainerMod/TrainerMod.csproj @@ -85,6 +85,7 @@ + diff --git a/TrainerMod/manifest.json b/TrainerMod/manifest.json new file mode 100644 index 00000000..a85f8dc3 --- /dev/null +++ b/TrainerMod/manifest.json @@ -0,0 +1,7 @@ +{ + "Name": "Trainer Mod", + "Authour": "Zoryn", + "Version": "1.0", + "Description": "Registers several commands to use. Most commands are trainer-like in that they offer forms of cheating.", + "EntryDll": "TrainerMod.dll" +} \ No newline at end of file -- cgit From cb9cdad62d4f457ab3081854e5aa363d03630bb8 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sun, 20 Mar 2016 17:45:45 -0400 Subject: adds support for old-style mods that don't use manifest. It will be removed in future version --- TrainerMod/TrainerMod.csproj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'TrainerMod') diff --git a/TrainerMod/TrainerMod.csproj b/TrainerMod/TrainerMod.csproj index 6424ecdb..8f1a494f 100644 --- a/TrainerMod/TrainerMod.csproj +++ b/TrainerMod/TrainerMod.csproj @@ -54,7 +54,7 @@ ..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll - True + False $(SteamPath)\steamapps\common\Stardew Valley\Stardew Valley.exe @@ -85,7 +85,9 @@ - + + PreserveNewest + -- cgit From 17021ae35162cfa4a6dad2c0457d4981f38878bc Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sun, 20 Mar 2016 18:50:31 -0400 Subject: commit things --- TrainerMod/FodyWeavers.xml | 4 ++++ TrainerMod/TrainerMod.csproj | 11 ++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 TrainerMod/FodyWeavers.xml (limited to 'TrainerMod') diff --git a/TrainerMod/FodyWeavers.xml b/TrainerMod/FodyWeavers.xml new file mode 100644 index 00000000..52e39c5e --- /dev/null +++ b/TrainerMod/FodyWeavers.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/TrainerMod/TrainerMod.csproj b/TrainerMod/TrainerMod.csproj index 8f1a494f..1638a3c8 100644 --- a/TrainerMod/TrainerMod.csproj +++ b/TrainerMod/TrainerMod.csproj @@ -12,12 +12,14 @@ v4.5 512 + + true full false - ..\StardewModdingAPI\bin\x86\Debug\Mods\ + ..\StardewModdingAPI\bin\x86\Debug\Mods\TrainerMod\ TRACE prompt 4 @@ -52,10 +54,6 @@ False - - ..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll - False - $(SteamPath)\steamapps\common\Stardew Valley\Stardew Valley.exe False @@ -90,6 +88,9 @@ + + + -- cgit