Skip to content

Commit

Permalink
1.1.8.1 for KSP 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbudda committed Dec 30, 2020
1 parent 00038f6 commit 9bd31dc
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 30 deletions.
Binary file modified Assets/Plugins/KerbalEngineer.Unity.dll
Binary file not shown.
7 changes: 7 additions & 0 deletions Documents/CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
1.1.8.1, 2020-12-29, KSP 1.11.0 #3045
- Update to 1.11
- Remove kerbal crew mass hacks now that calculation is correct in stock.
- Fix units on gravity readout
- Fix assembly binding errors
- Fix ignoreForIsp propellants mass calc. Thanks RCrockford.

1.1.7.2, 2020-7-1, KSP 1.10.0 #2917
- Update to 1.10
- Fix incorrect caluclations if default pressure of Kerbin is changed. Thanks Sigma88
Expand Down
5 changes: 3 additions & 2 deletions KerbalEngineer.Unity/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

[assembly: AssemblyTitle("KerbalEngineer.Unity")]
[assembly: AssemblyProduct("KerbalEngineer.Unity")]
[assembly: AssemblyCopyright("Copyright © CYBUTEK/jrbudda 2019")]
[assembly: AssemblyCopyright("Copyright © CYBUTEK/jrbudda 2020")]
[assembly: ComVisible(false)]
[assembly: Guid("5387bb1e-32b1-4bac-b03f-100570b9554c")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: KSPAssembly("KerbalEngineer.Unity",1,0)]
2 changes: 1 addition & 1 deletion KerbalEngineer/EngineerGlobals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static class EngineerGlobals
/// <summary>
/// Current version of the Kerbal Engineer assembly.
/// </summary>
public const string ASSEMBLY_VERSION = "1.1.7.2";
public const string ASSEMBLY_VERSION = "1.1.8.1";

private static string assemblyFile;
private static string assemblyName;
Expand Down
46 changes: 23 additions & 23 deletions KerbalEngineer/Extensions/PartExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,37 +123,37 @@ public static double GetDryMass(this Part part)

public static double getCrewAdjustment(this Part part)
{
if (HighLogic.LoadedSceneIsEditor && PhysicsGlobals.KerbalCrewMass != 0 && ShipConstruction.ShipManifest != null)
{ //fix weird stock behavior with this physics setting.
//if (HighLogic.LoadedSceneIsEditor && PhysicsGlobals.KerbalCrewMass != 0 && ShipConstruction.ShipManifest != null)
//{ //fix weird stock behavior with this physics setting.

var crewlist = ShipConstruction.ShipManifest.GetAllCrew(false);
// var crewlist = ShipConstruction.ShipManifest.GetAllCrew(false);

int crew = 0;
// int crew = 0;

foreach (var crewmem in crewlist)
{
if (crewmem != null) crew++;
}
// foreach (var crewmem in crewlist)
// {
// if (crewmem != null) crew++;
// }

if (crew > 0)
{
var pcm = ShipConstruction.ShipManifest.GetPartCrewManifest(part.craftID);
// if (crew > 0)
// {
// var pcm = ShipConstruction.ShipManifest.GetPartCrewManifest(part.craftID);

int actualCrew = 0;
// int actualCrew = 0;

foreach (var crewmem in pcm.GetPartCrew())
{
if (crewmem != null)
actualCrew++;
}
// foreach (var crewmem in pcm.GetPartCrew())
// {
// if (crewmem != null)
// actualCrew++;
// }

if (actualCrew < crew)
{
return -PhysicsGlobals.KerbalCrewMass * (crew - actualCrew);
}
// if (actualCrew < crew)
// {
// return -PhysicsGlobals.KerbalCrewMass * (crew - actualCrew);
// }

}
}
// }
//}

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion KerbalEngineer/Flight/Readouts/Vessel/Gravity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public override void Draw(Unity.Flight.ISectionModule section)
{
if (SimulationProcessor.ShowDetails)
{
this.DrawLine(Units.ToSpeed(SimManager.Gravity), section.IsHud);
this.DrawLine(Units.ToAcceleration(SimManager.Gravity), section.IsHud);
}
}

Expand Down
3 changes: 2 additions & 1 deletion KerbalEngineer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("CYBUTEK")]
[assembly: AssemblyProduct("KerbalEngineer")]
[assembly: AssemblyCopyright("Copyright © CYBUTEK/jrbudda 2019")]
[assembly: AssemblyCopyright("Copyright © CYBUTEK/jrbudda 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -33,3 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion(KerbalEngineer.EngineerGlobals.ASSEMBLY_VERSION)]
[assembly: KSPAssemblyDependency("KerbalEngineer.Unity", 1, 0)]
Binary file modified Output/KerbalEngineer/KerbalEngineer.Unity.dll
Binary file not shown.
Binary file modified Output/KerbalEngineer/KerbalEngineer.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Output/KerbalEngineer/KerbalEngineer.version
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"KSP_VERSION":
{
"MAJOR":1,
"MINOR":8,
"MINOR":11,
"PATCH":0
},
"KSP_VERSION_MIN":
Expand All @@ -24,7 +24,7 @@
"KSP_VERSION_MAX":
{
"MAJOR":1,
"MINOR":10,
"MINOR":11,
"PATCH":9
}
}

0 comments on commit 9bd31dc

Please sign in to comment.