Skip to content

Commit 1242703

Browse files
committed
Updated to KSP 1.8.1
Mod adopted by TheDarkBadger
1 parent 6a6c58b commit 1242703

File tree

7 files changed

+34
-12
lines changed

7 files changed

+34
-12
lines changed

.vs/DistantObject/v16/Server/sqlite3/db.lock

Whitespace-only changes.
1.71 MB
Binary file not shown.

DistantObject.csproj

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>DistantObject</RootNamespace>
1111
<AssemblyName>DistantObject</AssemblyName>
12-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
1515
</PropertyGroup>
@@ -22,6 +22,7 @@
2222
<DefineConstants>DEBUG;TRACE</DefineConstants>
2323
<ErrorReport>prompt</ErrorReport>
2424
<WarningLevel>4</WarningLevel>
25+
<Prefer32Bit>false</Prefer32Bit>
2526
</PropertyGroup>
2627
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2728
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -31,20 +32,39 @@
3132
<DefineConstants>TRACE</DefineConstants>
3233
<ErrorReport>prompt</ErrorReport>
3334
<WarningLevel>4</WarningLevel>
35+
<Prefer32Bit>false</Prefer32Bit>
3436
</PropertyGroup>
3537
<PropertyGroup>
3638
<StartupObject />
3739
</PropertyGroup>
3840
<ItemGroup>
3941
<Reference Include="Assembly-CSharp">
40-
<HintPath>..\..\..\Games\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
42+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
43+
</Reference>
44+
<Reference Include="Assembly-CSharp-firstpass">
45+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
4146
</Reference>
4247
<Reference Include="System" />
4348
<Reference Include="UnityEngine">
44-
<HintPath>..\..\..\Games\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
49+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
50+
</Reference>
51+
<Reference Include="UnityEngine.AnimationModule">
52+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.AnimationModule.dll</HintPath>
53+
</Reference>
54+
<Reference Include="UnityEngine.CoreModule">
55+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
56+
</Reference>
57+
<Reference Include="UnityEngine.IMGUIModule">
58+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
59+
</Reference>
60+
<Reference Include="UnityEngine.InputLegacyModule">
61+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.InputLegacyModule.dll</HintPath>
62+
</Reference>
63+
<Reference Include="UnityEngine.PhysicsModule">
64+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
4565
</Reference>
4666
<Reference Include="UnityEngine.UI">
47-
<HintPath>..\..\..\Games\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
67+
<HintPath>..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
4868
</Reference>
4969
</ItemGroup>
5070
<ItemGroup>

README.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
Distant Object Enhancement bis
1+
Distant Object Enhancement Continued
22
=============
33

4-
This plugin renders effects for distant objects in Kerbal Space Program v1.1 and later.
4+
This plugin renders effects for distant objects in Kerbal Space Program v1.8.1 and later.
55

66
Original plugin by duckytopia (Rubber Ducky on the KSP forum).
77

88
Distant Object Enhancement bis update by MOARdV.
99

10-
This release's forum thread:
10+
Distant Object Enhancement Continued by TheDarkBadger
11+
12+
MOARdV release's forum thread:
1113
http://forum.kerbalspaceprogram.com/index.php?/topic/89214-105-distant-object-enhancement-bis-v164-21-november-2015/
1214

1315
Original Forum thread:

SharedAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
[assembly: AssemblyProduct("Distant Object Enhancement")]
77
[assembly: AssemblyDescription("KSP Plugin to render distant planets and spacecraft")]
88
[assembly: AssemblyConfiguration("")]
9-
[assembly: AssemblyCompany("Duckytopia / MOARdV")]
10-
[assembly: AssemblyCopyright("Copyright © 2014-2017")]
9+
[assembly: AssemblyCompany("Duckytopia / MOARdV / TheDarkBadger")]
10+
[assembly: AssemblyCopyright("Copyright © 2014-2019")]
1111
[assembly: AssemblyTrademark("")]
1212
[assembly: AssemblyCulture("")]
1313

Source-Code/FlareDraw.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private void AddVesselFlare(Vessel referenceShip)
181181
GameObject flare = GameDatabase.Instance.GetModel("DistantObject/Flare/model");
182182
GameObject flareMesh = Mesh.Instantiate(flare) as GameObject;
183183
Destroy(flareMesh.GetComponent<Collider>());
184-
DestroyObject(flare);
184+
flare.DestroyGameObject();
185185

186186
flareMesh.name = referenceShip.vesselName;
187187
flareMesh.SetActive(true);
@@ -331,7 +331,7 @@ private void GenerateBodyFlares()
331331
}
332332
BodyFlare.bodyFlareDistanceScalar = BodyFlare.FlareDistanceRange / largestSMA;
333333

334-
DestroyObject(flare);
334+
flare.DestroyGameObject();
335335
}
336336

337337
//--------------------------------------------------------------------

Source-Code/VesselDraw.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static void DrawVessel(Vessel shipToDraw)
7777
continue;
7878
}
7979
GameObject cloneMesh = Mesh.Instantiate(clone) as GameObject;
80-
DestroyObject(clone);
80+
clone.DestroyGameObject();
8181
cloneMesh.transform.SetParent(shipToDraw.transform);
8282
cloneMesh.transform.localPosition = a.position;
8383
cloneMesh.transform.localRotation = a.rotation;

0 commit comments

Comments
 (0)