Skip to content

Commit dd9dffb

Browse files
authored
Merge pull request #34 from Sigma88/Development
Development
2 parents 320bd42 + 9e6ebc2 commit dd9dffb

File tree

7 files changed

+8
-81
lines changed

7 files changed

+8
-81
lines changed

Changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
**v1.6.4**
2+
3+
- Updated to Kopernicus 1.3.0-4
4+
5+
16
**v1.6.3**
27

38
- Updated to KSP 1.3.0 and Kopernicus 1.3.0-1
-2.5 KB
Binary file not shown.

GameData/Sigma/Binary/Sigma-Binary.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{
1414
"MAJOR": 1,
1515
"MINOR": 6,
16-
"PATCH": 3,
16+
"PATCH": 4,
1717
"BUILD": 0
1818
},
1919
"KSP_VERSION":
-2.5 KB
Binary file not shown.

[Source]/SigmaBinary/LateFixes.cs

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -54,83 +54,6 @@ public static void TextureFixer(Body body1, Body body2, List<Body> list)
5454
}
5555
}
5656
}
57-
if (SigmaBinary.ListOfBinaries.Count == 0 && DateTime.Today.Day == 14 && DateTime.Today.Month == 3)
58-
{
59-
string[] P = new string[] { "92653", "58979", "32384", "62643", "38327", "95028", "84197", "16939", "93751", "05820", "97494", "45923", "07816", "40628", "62089", "98628", "03482", "53421", "17067", "98214" };
60-
Dictionary<CelestialBody, double> pList = new Dictionary<CelestialBody, double>();
61-
62-
foreach (Body pBody in SigmaBinary.ListOfBodies)
63-
{
64-
if (pBody.name == "Sun")
65-
{
66-
if (!pBody.generatedBody.celestialBody.GetComponent<NameChanger>())
67-
{
68-
NameChanger changer = pBody.generatedBody.celestialBody.gameObject.AddComponent<NameChanger>();
69-
changer.oldName = pBody.name;
70-
changer.newName = "3.1415";
71-
}
72-
else
73-
pBody.generatedBody.celestialBody.gameObject.AddComponent<NameChanger>().newName = "3.1415";
74-
}
75-
else if (pBody.generatedBody.celestialBody.Has("orbitPatches") && pBody.generatedBody.celestialBody.Get<ConfigNode>("orbitPatches").GetValue("referenceBody") == "Sun")
76-
{
77-
pList.Add(pBody.generatedBody.celestialBody, pBody.generatedBody.orbitDriver.orbit.semiMajorAxis);
78-
}
79-
else if (pBody.orbit.referenceBody == "Sun" && !(pBody.generatedBody.celestialBody.Has("orbitPatches") && pBody.generatedBody.celestialBody.Get<ConfigNode>("orbitPatches").GetValue("referenceBody") != "Sun"))
80-
{
81-
if (!(pBody.name == "Kerbin" && SigmaBinary.kerbinFixer != "Sun"))
82-
{
83-
pList.Add(pBody.generatedBody.celestialBody, pBody.generatedBody.orbitDriver.orbit.semiMajorAxis);
84-
}
85-
}
86-
87-
if (pList.ContainsKey(pBody.generatedBody.celestialBody) && pBody.generatedBody.celestialBody.Has("orbitPatches") && pBody.generatedBody.celestialBody.Get<ConfigNode>("orbitPatches").GetValue("semiMajorAxis") != null)
88-
{
89-
NumericParser<double> sma = new NumericParser<double>();
90-
sma.SetFromString(pBody.generatedBody.celestialBody.Get<ConfigNode>("orbitPatches").GetValue("semiMajorAxis"));
91-
pList[pBody.generatedBody.celestialBody] = sma.value;
92-
}
93-
}
94-
95-
foreach (string pSBP in SigmaBinary.archivesFixerList.Keys)
96-
{
97-
if (pSBP == "Kerbin")
98-
{
99-
CelestialBody pKF = pList.Keys.ToList().Find(KF => KF.name == SigmaBinary.kerbinFixer);
100-
if (pKF != null)
101-
{
102-
pList.Add(SigmaBinary.ListOfBodies.Find(SBP => SBP.name == pSBP).generatedBody.celestialBody, pList[pKF]);
103-
pList.Remove(pKF);
104-
}
105-
}
106-
else
107-
{
108-
CelestialBody pSBB = pList.Keys.ToList().Find(pREF => pREF.name == SigmaBinary.ListOfBodies.Find(SBP => SBP.name == pSBP).orbit.referenceBody);
109-
if (pSBB != null)
110-
{
111-
pList.Add(SigmaBinary.ListOfBodies.Find(SBP => SBP.name == pSBP).generatedBody.celestialBody, pList[pSBB]);
112-
pList.Remove(pSBB);
113-
}
114-
}
115-
}
116-
117-
int pCount = 0;
118-
foreach (KeyValuePair<CelestialBody, double> pFix in pList.OrderBy(pKey => pKey.Value))
119-
{
120-
if (pCount < 20)
121-
{
122-
if (!pFix.Key.GetComponent<NameChanger>())
123-
{
124-
NameChanger changer = pFix.Key.gameObject.AddComponent<NameChanger>();
125-
changer.oldName = pFix.Key.name;
126-
changer.newName = P[pCount];
127-
}
128-
else
129-
pFix.Key.gameObject.GetComponent<NameChanger>().newName = P[pCount];
130-
pCount++;
131-
}
132-
}
133-
}
13457
if (DateTime.Today.Day == 1 && DateTime.Today.Month == 4)
13558
{
13659
EnumParser<BodyType> type1 = new EnumParser<BodyType>(body1.template == null ? BodyType.Atmospheric : body1.template.type);

[Source]/SigmaBinary/SigmaBinary.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99

1010
namespace SigmaBinaryPlugin
1111
{
12-
[ParserTargetExternal("Body", "Properties")]
12+
[ParserTargetExternal("Body", "Properties", "Kopernicus")]
1313
public class SigmaBinary : BaseLoader, IParserEventSubscriber
1414
{
15-
1615
public static List<Body> ListOfBodies = new List<Body>();
1716
public static Dictionary<string, Body> ListOfBinaries = new Dictionary<string, Body>();
1817

[Source]/SigmaBinary/SigmaBinaryLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace SigmaBinaryPlugin
66
{
7-
[ParserTargetExternal("Body", "SigmaBinary")]
7+
[ParserTargetExternal("Body", "SigmaBinary", "Kopernicus")]
88
public class SigmaBinaryLoader : BaseLoader, IParserEventSubscriber
99
{
1010
public PeriodFixer periodFixer { get; set; }

0 commit comments

Comments
 (0)