diff --git a/Changelog.txt b/Changelog.txt index 997e4cf..9681cbb 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -99,4 +99,8 @@ Thanks to @4x4cheesecake for the following: Did localization work Added German translation - Added Chinese translation from @sosoxia \ No newline at end of file + Added Chinese translation from @sosoxia + +0.1.13 + Updated AssemblyVersion.tt + Deleted old commented out code \ No newline at end of file diff --git a/HullCamera/AssemblyVersion.tt b/HullCamera/AssemblyVersion.tt index 6a02b89..1774531 100644 --- a/HullCamera/AssemblyVersion.tt +++ b/HullCamera/AssemblyVersion.tt @@ -28,7 +28,15 @@ int i2 = 0; string s; - string versionfile = @"D:\Users\jbb\github\HullcamVDSContinued\HullcamVDSContinued.version"; + + // For Visual Studio / MSBuild Build-Time Template Resolution + string RootDirectory = System.IO.Path.GetDirectoryName(Host.TemplateFile) + @"\..\"; + + // + // Update the following with the name of the .version file which is in the root directory + // + string versionfile = RootDirectory + "HullcamVDSContinued.version"; + if (!File.Exists(versionfile)) { Write("File: " + versionfile + " missing\n"); diff --git a/HullCamera/HullCamera.csproj b/HullCamera/HullCamera.csproj index ff24f20..3142d83 100644 --- a/HullCamera/HullCamera.csproj +++ b/HullCamera/HullCamera.csproj @@ -116,20 +116,20 @@ set textTemplatingPath="%25ProgramFiles(x86)%25\Microsoft Visual Studio\2017\Com False - R:\KSP_1.6.1_dev\KSP_x64_Data\Managed\Assembly-CSharp.dll + R:\KSP_1.7.2_dev\KSP_x64_Data\Managed\Assembly-CSharp.dll False - R:\KSP_1.6.1_dev\KSP_x64_Data\Managed\KSPAssets.dll + R:\KSP_1.7.2_dev\KSP_x64_Data\Managed\KSPAssets.dll False - R:\KSP_1.6.1_dev\KSP_x64_Data\Managed\UnityEngine.dll + R:\KSP_1.7.2_dev\KSP_x64_Data\Managed\UnityEngine.dll False - R:\KSP_1.6.1_dev\KSP_x64_Data\Managed\UnityEngine.UI.dll + R:\KSP_1.7.2_dev\KSP_x64_Data\Managed\UnityEngine.UI.dll \ No newline at end of file diff --git a/HullCamera/MuMechModuleHullCamera.cs b/HullCamera/MuMechModuleHullCamera.cs index f9b61d4..7094637 100644 --- a/HullCamera/MuMechModuleHullCamera.cs +++ b/HullCamera/MuMechModuleHullCamera.cs @@ -326,17 +326,6 @@ protected static void RestoreMainCamera() { if (GameSettings.MODIFIER_KEY.GetKey(false)) { -#if false - ModuleDockingNode mdn = sOrigVesselTransformPart.FindModuleImplementing(); - if (mdn != null) - { - sOrigVesselTransformPart.SetReferenceTransform(mdn.controlTransform); - } else -#endif - { - // sOrigVesselTransformPart.SetReferenceTransform(sOrigVesselTransformPart.GetReferenceTransform()); - } - FlightGlobals.ActiveVessel.SetReferenceTransform(sOrigVesselTransformPart, true); ScreenMessages.PostScreenMessage(locControlPointRestored + " " + sOrigVesselTransformPart.partInfo.title); sOrigVesselTransformPart = null; @@ -631,23 +620,6 @@ public void LateUpdate() sCurrentHandler = this; } -#if false - if (Input.GetKeyDown(KeyCode.Y) ) { - - print (sCameras.Count); - print ("sCurrentCamera: " + sCurrentCamera); - print ("This: " + this); - print ("sCurrentHandler: " + sCurrentHandler); - print ("sCurrentCamera.vessel: " + sCurrentCamera.vessel); - print ("FlightGlobals.ActiveVessel: " + FlightGlobals.ActiveVessel); - print (sCameras.Count); - print (sOrigParent); - print (sActionFlags.nextCamera); - print (sCycleToMainCamera); - print (sCameras.IndexOf(sCurrentCamera)); - DebugList (); - } -#endif if (sCurrentCamera != null) { diff --git a/HullCameraAssets/HullCameraAssets.csproj b/HullCameraAssets/HullCameraAssets.csproj index 2958e5a..a67fbc9 100644 --- a/HullCameraAssets/HullCameraAssets.csproj +++ b/HullCameraAssets/HullCameraAssets.csproj @@ -5,7 +5,7 @@ AnyCPU 10.0.20506 2.0 - {9917D8AF-D347-9FE6-D8BB-E55E56A1E720} + {9917D8AF-D347-9FE6-D8BB-E55E56A1.7.2} Library Assembly-CSharp 512 diff --git a/HullcamVDSContinued.version b/HullcamVDSContinued.version index ec0542e..b973c35 100644 --- a/HullcamVDSContinued.version +++ b/HullcamVDSContinued.version @@ -9,14 +9,9 @@ "VERSION": { "MAJOR": 0, "MINOR": 1, - "PATCH": 12, + "PATCH": 13, "BUILD": 0 }, - "KSP_VERSION": { - "MAJOR": 1, - "MINOR": 5, - "PATCH": 1 - }, "KSP_VERSION_MIN": { "MAJOR": 1, "MINOR": 5, diff --git a/HullcamVDSContinued.version.old b/HullcamVDSContinued.version.old deleted file mode 100644 index 366a18b..0000000 --- a/HullcamVDSContinued.version.old +++ /dev/null @@ -1,25 +0,0 @@ -{ - "NAME": "HullcamVDSContinued", - "URL": "http://ksp.spacetux.net/avc/HullcamVDSContinued", - "DOWNLOAD": "https://github.com/linuxgurugamer/HullcamVDSContinued/releases", - "GITHUB": { - "USERNAME": "linuxgurugamer", - "REPOSITORY": "HullcamVDSContinued" - }, - "VERSION": { - "MAJOR": 0, - "MINOR": 1, - "PATCH": 9, - "BUILD": 12 - }, - "KSP_VERSION": { - "MAJOR": 1, - "MINOR": 5, - "PATCH": 1 - }, - "KSP_VERSION_MIN": { - "MAJOR": 1, - "MINOR": 5, - "PATCH": 1 - } -} diff --git a/deploy.bat b/deploy.bat index 0f9b932..3f04157 100644 --- a/deploy.bat +++ b/deploy.bat @@ -7,7 +7,7 @@ rem GAMEDATA is the name of the local GameData rem VERSIONFILE is the name of the version file, usually the same as GAMEDATA, rem but not always -set H=R:\KSP_1.6.1_dev +set H=R:\KSP_1.7.2_dev set GAMEDIR=HullCameraVDS set GAMEDATA="GameData\" set VERSIONFILE=%GAMEDIR%.version