Get cobalt to generate!

This commit is contained in:
zontreck 2024-12-22 17:58:55 -07:00
parent d41fb9046d
commit f47eb80677
9 changed files with 26 additions and 16 deletions

View file

@ -13,7 +13,7 @@
<ItemGroup>
<Reference Include="VintagestoryAPI">
<HintPath>game/VintagestoryAPI.dll</HintPath>
<HintPath>../game/VintagestoryAPI.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
</Project>

View file

@ -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"
}
}
}

View file

@ -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)

View file

@ -8,23 +8,23 @@
<ItemGroup>
<Reference Include="VintagestoryAPI">
<HintPath>game/VintagestoryAPI.dll</HintPath>
<HintPath>../game/VintagestoryAPI.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="VSSurvivalMod">
<HintPath>game/Mods/VSSurvivalMod.dll</HintPath>
<HintPath>../game/Mods/VSSurvivalMod.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VSEssentials">
<HintPath>game/Mods/VSEssentials.dll</HintPath>
<HintPath>../game/Mods/VSEssentials.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VSCreativeMod">
<HintPath>game/Mods/VSCreativeMod.dll</HintPath>
<HintPath>../game/Mods/VSCreativeMod.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>game/Lib/Newtonsoft.Json.dll</HintPath>
<HintPath>../game/Lib/Newtonsoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>

View file

@ -1,3 +0,0 @@
{
"hello": "hello world!"
}

View file

@ -0,0 +1,4 @@
{
"start": "Vintage Storage is now starting up...",
"cobalt-electric": "Commonly used in electronics"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

7
runTest Executable file
View file

@ -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