Skip to content

Commit d7273e0

Browse files
authored
Merge pull request #3 from Balint66/main
Added the pull-request of balint66 (: - thanks for your help man!
2 parents bffab1f + 086bfb3 commit d7273e0

25 files changed

Lines changed: 469 additions & 205 deletions

AdditionalMapSizesPlugin/AdditionalMapSizesPlugin.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class AdditionalMapSizesPlugin : IPlugin
1111
{
1212
public string Name => "Additional Map Sizes";
1313
public string Description => "Adds map sizes to the new-game map-selection screen.";
14+
public string ID => "AdditionalMapSize";
1415
public string Version => "v0.0.1";
1516
public bool activeState { get; set; }
1617
public void initialize()

AdditionalMapSizesPlugin/AdditionalMapSizesPlugin.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<Import Project="$(MSBuildProjectDirectory)\..\Props\common.props"
5+
Condition="Exists('$(MSBuildProjectDirectory)\..\Props\common.props')" />
46
<PropertyGroup>
57
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
68
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,7 +19,7 @@
1719
<DebugSymbols>true</DebugSymbols>
1820
<DebugType>full</DebugType>
1921
<Optimize>false</Optimize>
20-
<OutputPath>C:\dev\steam\steamapps\common\Going Medieval\Mods\</OutputPath>
22+
<OutputPath>$(GameDir)\mods\</OutputPath>
2123
<DefineConstants>DEBUG;TRACE</DefineConstants>
2224
<ErrorReport>prompt</ErrorReport>
2325
<WarningLevel>4</WarningLevel>
@@ -37,12 +39,12 @@
3739
<Private>False</Private>
3840
</Reference>
3941
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
40-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath>
42+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath>
4143
<Private>False</Private>
4244
</Reference>
4345
<Reference Include="System" />
4446
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
45-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
47+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
4648
<Private>False</Private>
4749
</Reference>
4850
</ItemGroup>

BugReportDisablerPlugin/BugReportDisablerPlugin.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class BugReportDisablerPlugin : IPlugin
1515
public string Name => "Bug-Report Disabler";
1616

1717
public string Description => "Disables the sending of error-reports.";
18+
public string ID => "bugreport_begone";
1819
public string Version => "v0.0.2";
1920
public bool activeState { get; set; }
2021

@@ -30,7 +31,7 @@ public void start(MonoBehaviour root)
3031
try
3132
{
3233
// disable the bug reporter
33-
Logger.getInstance().info("Disabling error reports ...");
34+
Logger.Instance.info("Disabling error reports ...");
3435

3536
var bugReporterManager = UnityEngine.GameObject.FindObjectOfType<BugReporterManager>();
3637
Traverse.Create(bugReporterManager).Field("exceptionCaught").SetValue(true);
@@ -39,7 +40,7 @@ public void start(MonoBehaviour root)
3940
}
4041
catch (Exception e)
4142
{
42-
Logger.getInstance().info(e.ToString());
43+
Logger.Instance.info(e.ToString());
4344
throw;
4445
}
4546

@@ -56,7 +57,7 @@ public void disable(MonoBehaviour root)
5657
try
5758
{
5859
// disable the bug reporter
59-
Logger.getInstance().info("Disabling error reports ...");
60+
Logger.Instance.info("Disabling error reports ...");
6061

6162
var bugReporterManager = UnityEngine.GameObject.FindObjectOfType<BugReporterManager>();
6263
Traverse.Create(bugReporterManager).Field("exceptionCaught").SetValue(false);
@@ -65,7 +66,7 @@ public void disable(MonoBehaviour root)
6566
}
6667
catch (Exception e)
6768
{
68-
Logger.getInstance().info(e.ToString());
69+
Logger.Instance.info(e.ToString());
6970
throw;
7071
}
7172
}

BugReportDisablerPlugin/BugReportDisablerPlugin.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<Import Project="$(MSBuildProjectDirectory)\..\Props\common.props"
5+
Condition="Exists('$(MSBuildProjectDirectory)\..\Props\common.props')" />
46
<PropertyGroup>
57
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
68
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,7 +19,7 @@
1719
<DebugSymbols>false</DebugSymbols>
1820
<DebugType>none</DebugType>
1921
<Optimize>false</Optimize>
20-
<OutputPath>C:\dev\steam\steamapps\common\Going Medieval\Mods\</OutputPath>
22+
<OutputPath>$(GameDir)\mods\</OutputPath>
2123
<DefineConstants>DEBUG;TRACE</DefineConstants>
2224
<ErrorReport>prompt</ErrorReport>
2325
<WarningLevel>4</WarningLevel>
@@ -26,7 +28,7 @@
2628
<PlatformTarget>AnyCPU</PlatformTarget>
2729
<DebugType>pdbonly</DebugType>
2830
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
31+
<OutputPath>$(GameDir)\mods\</OutputPath>
3032
<DefineConstants>TRACE</DefineConstants>
3133
<ErrorReport>prompt</ErrorReport>
3234
<WarningLevel>4</WarningLevel>
@@ -37,16 +39,14 @@
3739
<Private>False</Private>
3840
</Reference>
3941
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
40-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath>
41-
<Private>False</Private>
42+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath>
4243
</Reference>
4344
<Reference Include="System" />
4445
<Reference Include="System.Core" />
4546
<Reference Include="System.Data" />
4647
<Reference Include="System.Xml" />
4748
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
48-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
49-
<Private>False</Private>
49+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
5050
</Reference>
5151
</ItemGroup>
5252
<ItemGroup>

CameraSettingsPlusPlusPlugin/CameraSettingsPlusPlus.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public class CameraSettingsPlusPlus : IPlugin
1313
public string Name => "Camera-Settings";
1414

1515
public string Description => "Increases rendering-, zoom- & shadow-distance - may slow down performance.";
16+
public string ID => "cameraPlusPlus";
1617
public string Version => "v0.0.2";
1718

1819
public bool activeState { get; set; }
@@ -59,7 +60,7 @@ public void update(MonoBehaviour root)
5960
}
6061
catch (Exception e)
6162
{
62-
Logger.getInstance().info(e.ToString());
63+
Logger.Instance.info(e.ToString());
6364
throw;
6465
}
6566

@@ -82,7 +83,7 @@ public void disable(MonoBehaviour root)
8283
}
8384
catch (Exception e)
8485
{
85-
Logger.getInstance().info(e.ToString());
86+
Logger.Instance.info(e.ToString());
8687
throw;
8788
}
8889

CameraSettingsPlusPlusPlugin/CameraSettingsPlusPlusPlugin.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<Import Project="$(MSBuildProjectDirectory)\..\Props\common.props"
5+
Condition="Exists('$(MSBuildProjectDirectory)\..\Props\common.props')" />
46
<PropertyGroup>
57
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
68
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,7 +19,7 @@
1719
<DebugSymbols>true</DebugSymbols>
1820
<DebugType>full</DebugType>
1921
<Optimize>false</Optimize>
20-
<OutputPath>C:\dev\steam\steamapps\common\Going Medieval\Mods\</OutputPath>
22+
<OutputPath>$(GameDir)\mods\</OutputPath>
2123
<DefineConstants>DEBUG;TRACE</DefineConstants>
2224
<ErrorReport>prompt</ErrorReport>
2325
<WarningLevel>4</WarningLevel>
@@ -37,19 +39,19 @@
3739
<Private>False</Private>
3840
</Reference>
3941
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
40-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath>
42+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath>
4143
<Private>False</Private>
4244
</Reference>
4345
<Reference Include="System" />
4446
<Reference Include="System.Core" />
4547
<Reference Include="System.Data" />
4648
<Reference Include="System.Xml" />
4749
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
48-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
50+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
4951
<Private>False</Private>
5052
</Reference>
5153
<Reference Include="UnityEngine.InputLegacyModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
52-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
54+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
5355
</Reference>
5456
</ItemGroup>
5557
<ItemGroup>

DeveloperConsoleEnablerPlugin/DeveloperConsoleEnablerPlugin.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class DeveloperConsoleEnablerPlugin : IPlugin
1212

1313
public string Name => "Developer-Console enabler";
1414
public string Description => "Enables the developer console.";
15+
public string ID => "DevConsoleEnabler";
1516

1617
public string Version => "v0.0.2";
1718

DeveloperConsoleEnablerPlugin/DeveloperConsoleEnablerPlugin.csproj

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<Import Project="$(MSBuildProjectDirectory)\..\Props\common.props"
5+
Condition="Exists('$(MSBuildProjectDirectory)\..\Props\common.props')" />
46
<PropertyGroup>
57
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
68
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,7 +19,7 @@
1719
<DebugSymbols>true</DebugSymbols>
1820
<DebugType>full</DebugType>
1921
<Optimize>false</Optimize>
20-
<OutputPath>C:\dev\steam\steamapps\common\Going Medieval\Mods\</OutputPath>
22+
<OutputPath>$(GameDir)\mods\</OutputPath>
2123
<DefineConstants>DEBUG;TRACE</DefineConstants>
2224
<ErrorReport>prompt</ErrorReport>
2325
<WarningLevel>4</WarningLevel>
@@ -37,20 +39,20 @@
3739
<Private>False</Private>
3840
</Reference>
3941
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
40-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath>
41-
<Private>False</Private>
42+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\Assembly-CSharp.dll</HintPath>
4243
</Reference>
4344
<Reference Include="System" />
4445
<Reference Include="System.Core" />
4546
<Reference Include="System.Data" />
4647
<Reference Include="System.Xml" />
4748
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
48-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
49-
<Private>False</Private>
49+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
5050
</Reference>
5151
<Reference Include="UnityEngine.InputLegacyModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
52-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
53-
<Private>False</Private>
52+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
53+
</Reference>
54+
<Reference Include="UnityEngine.InputModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
55+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.InputModule.dll</HintPath>
5456
</Reference>
5557
</ItemGroup>
5658
<ItemGroup>

DummyPlugin/DummyPlugin.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public class DummyPlugin : IPlugin
88

99
public string Name => "Dummy-Plugin";
1010
public string Description => "This plugin is for testing purposes and doesn't do anything except having a ridiculous long description.";
11+
public string ID => "dummy";
1112
public string Version => "v0.0.1";
1213
public bool activeState { get; set; }
1314
public void initialize()

DummyPlugin/DummyPlugin.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<Import Project="$(MSBuildProjectDirectory)\..\Props\common.props"
5+
Condition="Exists('$(MSBuildProjectDirectory)\..\Props\common.props')" />
46
<PropertyGroup>
57
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
68
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -17,7 +19,7 @@
1719
<DebugSymbols>true</DebugSymbols>
1820
<DebugType>full</DebugType>
1921
<Optimize>false</Optimize>
20-
<OutputPath>C:\dev\steam\steamapps\common\Going Medieval\Mods\</OutputPath>
22+
<OutputPath>$(GameDir)\mods\</OutputPath>
2123
<DefineConstants>DEBUG;TRACE</DefineConstants>
2224
<ErrorReport>prompt</ErrorReport>
2325
<WarningLevel>4</WarningLevel>
@@ -37,7 +39,7 @@
3739
<Reference Include="System.Data" />
3840
<Reference Include="System.Xml" />
3941
<Reference Include="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
40-
<HintPath>C:\dev\steam\steamapps\common\Going Medieval\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
42+
<HintPath>$(GameDir)\Going Medieval_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
4143
<Private>False</Private>
4244
</Reference>
4345
</ItemGroup>

0 commit comments

Comments
 (0)