Renamed solution and project

Removed example mod
Updated to VintageStory 1.5.3
This commit is contained in:
CreativeMD 2018-05-03 13:27:10 +02:00
parent daf267d3f1
commit 23905479ab
11 changed files with 13 additions and 175 deletions

View file

@ -1,16 +1,17 @@
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Vintagestory.API.Common;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("ServerModWorldEdit")] [assembly: AssemblyTitle("VSModLauncher")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ServerModWorldEdit")] [assembly: AssemblyProduct("VSModLauncher")]
[assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -34,3 +35,7 @@ using System.Runtime.InteropServices;
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: ModDependency("game")]
[assembly: ModInfo("RedirectLogs", "redirectlogs", Version = "1.0", Authors = new string[] { "Tyron" },
Website = "https://github.com/anegostudios/vsmodtemplate", Description = "Redirecting logs to VS", RequiredOnClient = false)]

View file

@ -3,25 +3,13 @@ using Vintagestory.API.Client;
using Vintagestory.API.Common; using Vintagestory.API.Common;
using Vintagestory.API.Server; using Vintagestory.API.Server;
namespace VSExampleMods namespace VSModLauncher
{ {
/// <summary> /// <summary>
/// Redirects all log entries into the visual studio output window. Only for your convenience during development and testing. /// Redirects all log entries into the visual studio output window. Only for your convenience during development and testing.
/// </summary> /// </summary>
public class RedirectLogs : ModBase public class RedirectLogs : ModSystem
{ {
public override ModInfo GetModInfo()
{
return new ModInfo()
{
Name = "RedirectLogs",
Version = "1.0",
GameVersions = new string[] { "1.5+" },
Description = "Redirecting logs to VS",
Author = "Tyron",
Website = "https://github.com/anegostudios/vsmodtemplate"
};
}
public override bool ShouldLoad(EnumAppSide side) public override bool ShouldLoad(EnumAppSide side)
{ {

View file

@ -7,8 +7,8 @@
<ProjectGuid>{203DFBF1-3599-43FD-8487-E1C79C2B788F}</ProjectGuid> <ProjectGuid>{203DFBF1-3599-43FD-8487-E1C79C2B788F}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>VSExampleMods</RootNamespace> <RootNamespace>VSMods</RootNamespace>
<AssemblyName>VSExampleMods</AssemblyName> <AssemblyName>VSModLauncher</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<TargetFrameworkProfile /> <TargetFrameworkProfile />

View file

@ -3,12 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.25420.1 VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSExampleMods", "VSExampleMods.csproj", "{203DFBF1-3599-43FD-8487-E1C79C2B788F}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSModLauncher", "VSModLauncher.csproj", "{203DFBF1-3599-43FD-8487-E1C79C2B788F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyGoldBlockMod", "mods\ClassLibrary1\MyGoldBlockMod.csproj", "{1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}"
ProjectSection(ProjectDependencies) = postProject
{203DFBF1-3599-43FD-8487-E1C79C2B788F} = {203DFBF1-3599-43FD-8487-E1C79C2B788F}
EndProjectSection
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -23,12 +18,6 @@ Global
{203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release x64|Any CPU.Build.0 = Release|Any CPU {203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release x64|Any CPU.Build.0 = Release|Any CPU
{203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release|Any CPU.ActiveCfg = Release|Any CPU {203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release|Any CPU.Build.0 = Release|Any CPU {203DFBF1-3599-43FD-8487-E1C79C2B788F}.Release|Any CPU.Build.0 = Release|Any CPU
{1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Release x64|Any CPU.ActiveCfg = Release|Any CPU
{1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Release x64|Any CPU.Build.0 = Release|Any CPU
{1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E84F46A-B6F4-4590-A93E-FF50FCEDCB8B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View file

@ -1,17 +0,0 @@
using System;
using Vintagestory.API.Common;
namespace ClassLibrary1
{
public class MyTestMod : ModBase
{
public override void Start(ICoreAPI api)
{
base.Start(api);
Console.Write("It works and can be debugged!");
}
}
}

View file

@ -1,65 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{19149F15-726C-4B58-8F69-0A7A03940521}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MyGoldBlockName</RootNamespace>
<AssemblyName>MyGoldBlockName</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="VintagestoryAPI">
<HintPath>..\..\..\game\bin\Debug\VintagestoryAPI.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="assets\mygoldblock\blocktypes\mygoldblock.json" />
<None Include="assets\mygoldblock\lang\en.json" />
<None Include="modinfo.json" />
</ItemGroup>
<ItemGroup>
<Content Include="assets\mygoldblock\textures\block\mygoldtexture.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View file

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MyGoldBlockName")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MyGoldBlockName")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("19149f15-726c-4b58-8f69-0a7a03940521")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View file

@ -1,14 +0,0 @@
{
code: "mygoldblock",
creativeinventory: { "general": ["*"] },
blockmaterial: "Stone",
drawtype: "Cube",
textures: {
all: { base: "block/mygoldtexture" }
},
resistance: 3.5,
sounds: {
"place": "game:block/anvil",
"walk": "game:walk/stone"
}
}

View file

@ -1,3 +0,0 @@
{
"block-mygoldblock": "Block of Gold"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -1,9 +0,0 @@
{
"type": "code",
"name": "MyGoldBlockMod",
"description" : "Adds cool looking gold blocks",
"author": "CreativeMD",
"version": "1.0",
"gameversions": [ "1.5.0.3+" ],
"website": "http://example.com"
}