Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Kopernicus/Kopernicus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b4b2073d04d7
Choose a base ref
...
head repository: Kopernicus/Kopernicus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fd4eef120a09
Choose a head ref
  • 3 commits
  • 5 files changed
  • 1 contributor

Commits on Jan 1, 2019

  1. Add a way of forcing the orbits to use 3D rendering all the time

    It is a crude hack but it might fix some bugs.
    StollD committed Jan 1, 2019
    Copy the full SHA
    113aed6 View commit details
  2. Copy the full SHA
    1bf1ef2 View commit details
  3. Copy the full SHA
    fd4eef1 View commit details
Binary file modified build/GameData/ModularFlightIntegrator/ModularFlightIntegrator.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"NAME": "ModularFlightIntegrator",
"URL": "https://ksp.sarbian.com/jenkins/job/ModularFlightIntegrator/lastSuccessfulBuild/artifact/ModularFlightIntegrator/ModularFlightIntegrator.version",
"DOWNLOAD": "http://forum.kerbalspaceprogram.com/threads/118088",
"DOWNLOAD": "https://forum.kerbalspaceprogram.com/index.php?/topic/106369-x",
"VERSION":{
"MAJOR": 1,
"MINOR": 2,
"PATCH": 5,
"PATCH": 6,
"BUILD": 0
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 4,
"MINOR": 5,
"PATCH": 0
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 4,
"MINOR": 5,
"PATCH": 0
},
"KSP_VERSION_MAX": {
"MAJOR": 1,
"MINOR": 4,
"MINOR": 6,
"PATCH": 90
}
}
}
8 changes: 8 additions & 0 deletions src/Kopernicus/Configuration/Loader.cs
Original file line number Diff line number Diff line change
@@ -154,6 +154,14 @@ public NumericParser<Double> scaledSpaceFaderMult
set { ScaledSpaceFader.faderMult = value; }
}

// Whether to force enable 3D rendering of orbit lines
[ParserTarget("force3DOrbits")]
public NumericParser<Boolean> force3DOrbits
{
get { return Templates.force3DOrbits; }
set { Templates.force3DOrbits = value; }
}

// Remove Launch Sites added by DLCs
// * Island_Airfield
// * Woomerang_Launch_Site
12 changes: 9 additions & 3 deletions src/Kopernicus/RuntimeUtility/RuntimeUtility.cs
Original file line number Diff line number Diff line change
@@ -129,7 +129,7 @@ void Awake()
});
GameEvents.onProtoVesselLoad.Add(TransformBodyReferencesOnLoad);
GameEvents.onProtoVesselSave.Add(TransformBodyReferencesOnSave);

// Update Music Logic
if (MusicLogic.fetch != null && FlightGlobals.fetch != null && FlightGlobals.GetHomeBody() != null)
MusicLogic.fetch.flightMusicSpaceAltitude = FlightGlobals.GetHomeBody().atmosphereDepth;
@@ -353,10 +353,9 @@ void LateUpdate()

// Prevent the orbit lines from flickering
PlanetariumCamera.Camera.farClipPlane = 1e14f;

// Remove buttons in map view for barycenters
if (MapView.MapIsEnabled)
{
// Remove buttons in map view for barycenters
if (fields == null)
{
FieldInfo mode_f = typeof(OrbitTargeter).GetFields(BindingFlags.NonPublic | BindingFlags.Instance).FirstOrDefault(f => f.FieldType.IsEnum && f.FieldType.IsNested);
@@ -395,6 +394,13 @@ void LateUpdate()
}
}
}

// If 3D rendering of orbits is forced, enable it
if (Templates.force3DOrbits)
{
MapView.fetch.max3DlineDrawDist = Single.MaxValue;
GameSettings.MAP_MAX_ORBIT_BEFORE_FORCE2D = Int32.MaxValue;
}
}

foreach (CelestialBody body in PSystemManager.Instance.localBodies)
3 changes: 3 additions & 0 deletions src/Kopernicus/Templates.cs
Original file line number Diff line number Diff line change
@@ -60,6 +60,9 @@ public class Templates

// The launch sites that should get removed
public static List<String> RemoveLaunchSites { get; set; }

// Whether to force 3D rendering on orbits.
public static Boolean force3DOrbits = false;

// Initialisation
static Templates()