diff --git a/CakeBuild/CakeBuild.csproj b/CakeBuild/CakeBuild.csproj index d321c42..f65b99f 100644 --- a/CakeBuild/CakeBuild.csproj +++ b/CakeBuild/CakeBuild.csproj @@ -13,7 +13,7 @@ - game/VintagestoryAPI.dll + ../game/VintagestoryAPI.dll - \ No newline at end of file + diff --git a/VintageStorage/Properties/launchSettings.json b/VintageStorage/Properties/launchSettings.json index 88d64d4..8ba4701 100644 --- a/VintageStorage/Properties/launchSettings.json +++ b/VintageStorage/Properties/launchSettings.json @@ -2,15 +2,15 @@ "profiles": { "Client": { "commandName": "Executable", - "executablePath": "game/Vintagestory.exe", + "executablePath": "~/.local/share/vintagestory/Vintagestory", "commandLineArgs": "--tracelog --addModPath \"$(ProjectDir)/bin/$(Configuration)/Mods\"", - "workingDirectory": "$(VINTAGE_STORY)" + "workingDirectory": "~/.local/share/vintagestory" }, "Server": { "commandName": "Executable", - "executablePath": "game/VintagestoryServer.exe", + "executablePath": "~/.local/share/vintagestory/VintagestoryServer", "commandLineArgs": "--tracelog --addModPath \"$(ProjectDir)/bin/$(Configuration)/Mods\"", - "workingDirectory": "$(VINTAGE_STORY)" + "workingDirectory": "~/.local/share/vintagestory" } } } diff --git a/VintageStorage/VintageStorage.cs b/VintageStorage/VintageStorage.cs index 5333e35..5d3a8b7 100644 --- a/VintageStorage/VintageStorage.cs +++ b/VintageStorage/VintageStorage.cs @@ -1,4 +1,5 @@ -using Vintagestory.API.Client; +using System; +using Vintagestory.API.Client; using Vintagestory.API.Common; using Vintagestory.API.Config; using Vintagestory.API.Server; @@ -7,10 +8,11 @@ namespace VintageStorage { public class VintageStorage : ModSystem { + public static String MOD_ID = "vintagestorage"; // Called on server and client public override void Start(ICoreAPI api) { - api.Logger.Notification("Hello from template mod: " + Lang.Get("mymodid:hello")); + api.Logger.Notification(Lang.Get($"{MOD_ID}:start")); } public override void StartServerSide(ICoreServerAPI api) diff --git a/VintageStorage/VintageStorage.csproj b/VintageStorage/VintageStorage.csproj index 57ed2de..42f59f8 100644 --- a/VintageStorage/VintageStorage.csproj +++ b/VintageStorage/VintageStorage.csproj @@ -8,23 +8,23 @@ - game/VintagestoryAPI.dll + ../game/VintagestoryAPI.dll false - game/Mods/VSSurvivalMod.dll + ../game/Mods/VSSurvivalMod.dll False - game/Mods/VSEssentials.dll + ../game/Mods/VSEssentials.dll False - game/Mods/VSCreativeMod.dll + ../game/Mods/VSCreativeMod.dll False - game/Lib/Newtonsoft.Json.dll + ../game/Lib/Newtonsoft.Json.dll False diff --git a/VintageStorage/assets/mymodid/lang/en.json b/VintageStorage/assets/mymodid/lang/en.json deleted file mode 100644 index ed900d8..0000000 --- a/VintageStorage/assets/mymodid/lang/en.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "hello": "hello world!" -} \ No newline at end of file diff --git a/VintageStorage/assets/vintagestorage/lang/en.json b/VintageStorage/assets/vintagestorage/lang/en.json new file mode 100644 index 0000000..87d76ef --- /dev/null +++ b/VintageStorage/assets/vintagestorage/lang/en.json @@ -0,0 +1,4 @@ +{ + "start": "Vintage Storage is now starting up...", + "cobalt-electric": "Commonly used in electronics" +} \ No newline at end of file diff --git a/VintageStorage/assets/vintagestorage/textures/block/stone/ore/cobalt1.png b/VintageStorage/assets/vintagestorage/textures/block/stone/ore/cobalt1.png new file mode 100644 index 0000000..0aa2026 Binary files /dev/null and b/VintageStorage/assets/vintagestorage/textures/block/stone/ore/cobalt1.png differ diff --git a/VintageStorage/assets/vintagestorage/textures/item/resource/nugget/cobalt.png b/VintageStorage/assets/vintagestorage/textures/item/resource/nugget/cobalt.png new file mode 100644 index 0000000..edb5bd3 Binary files /dev/null and b/VintageStorage/assets/vintagestorage/textures/item/resource/nugget/cobalt.png differ diff --git a/runTest b/runTest new file mode 100755 index 0000000..206d354 --- /dev/null +++ b/runTest @@ -0,0 +1,7 @@ +#!/bin/bash + +rm -rf Releases +./build.sh +vsleep 2 +rm -rf Releases/vintagestorage +game/Vintagestory --tracelog --addModPath "$(pwd)/Releases" -o modtest