generated from AriasCreations/vsmodtemplate
Get cobalt to generate!
This commit is contained in:
parent
d41fb9046d
commit
f47eb80677
9 changed files with 26 additions and 16 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<Reference Include="VintagestoryAPI">
|
||||
<HintPath>game/VintagestoryAPI.dll</HintPath>
|
||||
<HintPath>../game/VintagestoryAPI.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"hello": "hello world!"
|
||||
}
|
4
VintageStorage/assets/vintagestorage/lang/en.json
Normal file
4
VintageStorage/assets/vintagestorage/lang/en.json
Normal 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
7
runTest
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue