Skip to content

Commit a06b9ac

Browse files
committed
update plugin for ksp 1.2.2
1 parent aa2f9ab commit a06b9ac

6 files changed

Lines changed: 55 additions & 23 deletions

File tree

AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
1818
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
1919

20-
[assembly: AssemblyVersion("1.3.*")]
21-
20+
[assembly: AssemblyVersion("2.1.0.0")]
21+
[assembly: AssemblyFileVersion("2.1.0.0")]
2222
// The following attributes are used to specify the signing key for the assembly,
2323
// if desired. See the Mono documentation for more information about signing.
2424

1.5 KB
Binary file not shown.
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"NAME":"Reflection Plugin Continued",
3-
"URL":"https://raw.githubusercontent.com/Starwaster/Reflection-Plugin-Continued/master/ReflectionPlugin.version",
4-
"DOWNLOAD":"https://github.com/Starwaster/Reflection-Plugin-Continued/releases",
3+
"URL":"https://raw.githubusercontent.com/raidernick/Reflection-Plugin-Continued/master/GameData/Hubs/ReflectionPlugin.version",
4+
"DOWNLOAD":"https://github.com/raidernick/Reflection-Plugin-Continued/releases",
55
"GITHUB":
66
{
77
"USERNAME":"Starwaster",
@@ -11,26 +11,26 @@
1111
"VERSION":
1212
{
1313
"MAJOR":2,
14-
"MINOR":0,
14+
"MINOR":1,
1515
"PATCH":0,
1616
"BUILD":0
1717
},
1818
"KSP_VERSION":
1919
{
2020
"MAJOR":1,
21-
"MINOR":0,
22-
"PATCH":5
21+
"MINOR":2,
22+
"PATCH":2
2323
},
2424
"KSP_VERSION_MIN":
2525
{
2626
"MAJOR":1,
27-
"MINOR":0,
28-
"PATCH":0
27+
"MINOR":2,
28+
"PATCH":2
2929
},
3030
"KSP_VERSION_MAX":
3131
{
3232
"MAJOR":1,
33-
"MINOR":0,
34-
"PATCH":5
33+
"MINOR":2,
34+
"PATCH":2
3535
}
3636
}

GameData/Hubs/license.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org>

ReflectionPlugin.csproj

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -30,22 +30,13 @@
3030
<WarningLevel>4</WarningLevel>
3131
<ConsolePause>False</ConsolePause>
3232
</PropertyGroup>
33-
<ItemGroup>
34-
<Reference Include="System" />
35-
<Reference Include="System.Core" />
36-
<Reference Include="UnityEngine">
37-
<HintPath>..\..\..\..\..\Games\KSP_win_1.0.5\KSP_Data\Managed\UnityEngine.dll</HintPath>
38-
</Reference>
39-
</ItemGroup>
4033
<ItemGroup>
4134
<Compile Include="AssemblyInfo.cs" />
4235
<Compile Include="ReflectiveScript.cs" />
4336
<Compile Include="ReflectiveShaderModule.cs" />
4437
</ItemGroup>
4538
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
46-
<ItemGroup>
47-
<Folder Include="Resources\" />
48-
</ItemGroup>
39+
<ItemGroup />
4940
<ItemGroup>
5041
<EmbeddedResource Include="Resources\Reflective.Bumped_Diffuse.shader" />
5142
<EmbeddedResource Include="Resources\Reflective.Bumped_Specular.shader" />
@@ -58,4 +49,21 @@
5849
<EmbeddedResource Include="Resources\Reflective.Bumped_VertexLit.shader" />
5950
<EmbeddedResource Include="Resources\Starwaster.Bumped_Specular.shader" />
6051
</ItemGroup>
52+
<ItemGroup>
53+
<Reference Include="Assembly-CSharp">
54+
<HintPath>E:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program DEV\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
55+
</Reference>
56+
<Reference Include="Assembly-CSharp-firstpass">
57+
<HintPath>E:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program DEV\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
58+
</Reference>
59+
<Reference Include="System">
60+
<HintPath>E:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program DEV\KSP_x64_Data\Managed\System.dll</HintPath>
61+
</Reference>
62+
<Reference Include="UnityEngine">
63+
<HintPath>E:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program DEV\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
64+
</Reference>
65+
<Reference Include="UnityEngine.UI">
66+
<HintPath>E:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program DEV\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
67+
</Reference>
68+
</ItemGroup>
6169
</Project>

ReflectiveShaderModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public override void OnStart(PartModule.StartState state)
143143
{
144144
Debug.Log((object)"RP: Applying changes to meshes ..");
145145
List<string> meshNamesList = Enumerable.ToList<string>((IEnumerable<string>)MeshesToChange.Split(new char[1] { ',' }));
146-
MeshFilter[] modelComponents = part.FindModelComponents<MeshFilter>();
146+
MeshFilter[] modelComponents = part.FindModelComponents<MeshFilter>().ToArray();
147147
if (MeshesToChange == "all")
148148
{
149149
foreach (MeshFilter meshFilter in modelComponents)

0 commit comments

Comments
 (0)